Icons_display_fix.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. commit aef348d8629411063c3a290078aea80cca8b1493
  2. Author: 4fury-c3440d8 <uglyside@yandex.ru>
  3. Date: Sun Nov 28 06:42:35 2021 +0300
  4. Icons_display_fix
  5. diff --git a/src/service-manager.py b/src/service-manager.py
  6. index f1b4ba0..ec89402 100755
  7. --- a/src/service-manager.py
  8. +++ b/src/service-manager.py
  9. @@ -15,6 +15,8 @@
  10. import sys
  11. import dbus
  12. +from PyQt5.QtGui import QIcon
  13. +
  14. # Application Stuff
  15. import servicemanager.about as about
  16. # Application Stuff
  17. @@ -22,7 +24,7 @@ from servicemanager.base import MainManager
  18. # Pds Stuff
  19. from pds.quniqueapp import QUniqueApplication
  20. -from servicemanager.context import KIcon, i18n
  21. +from servicemanager.context import i18n
  22. # Create a QUniqueApllication instance
  23. app = QUniqueApplication(sys.argv, catalog=about.appName)
  24. @@ -40,7 +42,7 @@ if __name__ == '__main__':
  25. mainWindow.show()
  26. mainWindow.resize(640, 480)
  27. mainWindow.setWindowTitle(i18n(about.PACKAGE))
  28. - mainWindow.setWindowIcon(KIcon(about.icon))
  29. + mainWindow.setWindowIcon(QIcon(about.icon))
  30. # Create connection for lastWindowClosed signal to quit app
  31. app.lastWindowClosed.connect(app.quit)
  32. diff --git a/src/servicemanager/widgets.py b/src/servicemanager/widgets.py
  33. index 4aec556..496c82f 100755
  34. --- a/src/servicemanager/widgets.py
  35. +++ b/src/servicemanager/widgets.py
  36. @@ -95,7 +95,7 @@ class ServiceItemWidget(QtWidgets.QWidget):
  37. self.ui.buttonStop.setEnabled(self.running)
  38. self.ui.buttonReload.setEnabled(self.running)
  39. - self.ui.labelStatus.setPixmap(KIcon(icon).pixmap(32, 32))
  40. + self.ui.labelStatus.setPixmap(QIcon(icon).pixmap(32, 32))
  41. self.showStatus()
  42. self.runningAtStart = False
  43. if state in ('on', 'stopped'):