ProjectDjango/DjangoSquashMigrationSelectionDialog.py

changeset 148
4cb7aa43845d
parent 145
104b14713e9e
child 161
208fced62e00
diff -r 17a08bd37c2b -r 4cb7aa43845d ProjectDjango/DjangoSquashMigrationSelectionDialog.py
--- a/ProjectDjango/DjangoSquashMigrationSelectionDialog.py	Sun Feb 16 14:38:21 2020 +0100
+++ b/ProjectDjango/DjangoSquashMigrationSelectionDialog.py	Wed Apr 08 19:58:27 2020 +0200
@@ -24,7 +24,7 @@
     """
     Class implementing a dialog to enter data needed to squash migrations.
     """
-    def __init__(self, migrations, django, parent=None):
+    def __init__(self, migrations, django, suffix, parent=None):
         """
         Constructor
         
@@ -32,6 +32,8 @@
         @type dict
         @param django reference to the Django project object
         @type Project
+        @param suffix icon suffix
+        @type str
         @param parent reference to the parent widget
         @type QWidget
         """
@@ -39,7 +41,8 @@
         self.setupUi(self)
         
         self.__appliedIcon = QIcon(os.path.join(
-            os.path.dirname(__file__), "icons", "applied.png"))
+            os.path.dirname(__file__), "icons", "applied-{0}".format(suffix)
+        ))
         
         self.__version = django.getDjangoVersion()
         self.startMigrationComboBox.setEnabled(self.__version >= (1, 9, 0))

eric ide

mercurial