Tools/TRPreviewer.py

changeset 7
c679fb30c8f3
parent 0
de9c2efb9d02
child 8
0ae9bd4d2993
--- a/Tools/TRPreviewer.py	Mon Dec 28 18:31:37 2009 +0000
+++ b/Tools/TRPreviewer.py	Wed Dec 30 15:40:33 2009 +0000
@@ -826,7 +826,7 @@
         idx = 0
         for wid in self.widgets:
             act = windowMenu.addAction(wid.windowTitle())
-            act.setData(QVariant(idx))
+            act.setData(idx)
             act.setCheckable(True)
             act.setChecked(not wid.isHidden())
             idx = idx + 1
@@ -837,7 +837,7 @@
         
         @param act reference to the action that triggered (QAction)
         """
-        idx, ok = act.data().toInt()
+        idx, ok = act.data()
         if ok:
             self.__toggleWidget(self.widgets[idx])
     

eric ide

mercurial