Little change to the dialog code generation dialog to not show internal widgets (i.e. those starting with 'qt_'). 6_0_x

Sun, 17 May 2015 16:55:30 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 17 May 2015 16:55:30 +0200
branch
6_0_x
changeset 4264
eb874caf019d
parent 4262
59904313af24
child 4265
9d69e24d0279

Little change to the dialog code generation dialog to not show internal widgets (i.e. those starting with 'qt_').
(grafted from 7c7cb51887737707eba9172fd3eaf9cab1d463dd)

Project/CreateDialogCodeDialog.py file | annotate | diff | comparison | revisions
--- a/Project/CreateDialogCodeDialog.py	Sat May 16 16:23:54 2015 +0200
+++ b/Project/CreateDialogCodeDialog.py	Sun May 17 16:55:30 2015 +0200
@@ -244,7 +244,8 @@
             self.slotsModel.setHorizontalHeaderLabels([""])
             for obj in objects:
                 name = obj.objectName()
-                if not name:
+                if not name or name.startswith("qt_"):
+                    # ignore un-named or internal objects
                     continue
                 
                 metaObject = obj.metaObject()

eric ide

mercurial