eric6/Tools/UIPreviewer.py

changeset 8151
8c1445825e7b
parent 8143
2c730d5fd177
child 8205
4a0f1f896341
--- a/eric6/Tools/UIPreviewer.py	Thu Mar 04 17:44:41 2021 +0100
+++ b/eric6/Tools/UIPreviewer.py	Thu Mar 04 17:48:09 2021 +0100
@@ -100,7 +100,7 @@
 
         self.setCentralWidget(self.cw)
         
-        self.styleCombo.activated[str].connect(self.__guiStyleSelected)
+        self.styleCombo.activated[int].connect(self.__guiStyleSelected)
         
         self.__initActions()
         self.__initMenus()
@@ -289,12 +289,14 @@
         """
         QWhatsThis.enterWhatsThisMode()
         
-    def __guiStyleSelected(self, selectedStyle):
+    def __guiStyleSelected(self, index):
         """
         Private slot to handle the selection of a GUI style.
         
-        @param selectedStyle name of the selected style (string)
+        @param index index of the selected entry
+        @type int
         """
+        selectedStyle = self.styleCombo.itemText(index)
         if self.mainWidget:
             self.__updateChildren(selectedStyle)
     

eric ide

mercurial