Open Source Snapmatic picture and Savegame viewer/editor for GTA V https://gta5view.syping.de/

IconLoader.cpp 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*****************************************************************************
  2. * gta5view Grand Theft Auto V Profile Viewer
  3. * Copyright (C) 2016-2017 Syping
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. *****************************************************************************/
  18. #include "IconLoader.h"
  19. #include <QIcon>
  20. IconLoader::IconLoader()
  21. {
  22. }
  23. QIcon IconLoader::loadingAppIcon()
  24. {
  25. QIcon appIcon;
  26. appIcon.addFile(":/img/5sync-16.png", QSize(16, 16));
  27. appIcon.addFile(":/img/5sync-24.png", QSize(24, 24));
  28. appIcon.addFile(":/img/5sync-32.png", QSize(32, 32));
  29. appIcon.addFile(":/img/5sync-40.png", QSize(40, 40));
  30. appIcon.addFile(":/img/5sync-48.png", QSize(48, 48));
  31. appIcon.addFile(":/img/5sync-64.png", QSize(64, 64));
  32. appIcon.addFile(":/img/5sync-96.png", QSize(96, 96));
  33. appIcon.addFile(":/img/5sync-128.png", QSize(128, 128));
  34. appIcon.addFile(":/img/5sync-256.png", QSize(256, 256));
  35. return appIcon;
  36. }
  37. QIcon IconLoader::loadingPointmakerIcon()
  38. {
  39. QIcon pointmakerIcon;
  40. pointmakerIcon.addFile(":/img/pointmaker-8.png", QSize(8, 8));
  41. pointmakerIcon.addFile(":/img/pointmaker-16.png", QSize(16, 16));
  42. pointmakerIcon.addFile(":/img/pointmaker-24.png", QSize(24, 24));
  43. pointmakerIcon.addFile(":/img/pointmaker-32.png", QSize(32, 32));
  44. return pointmakerIcon;
  45. }