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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 17 May 2015 16:55:30 +0200
changeset 4263
7c7cb5188773
parent 4261
f05726488802
child 4266
17c215c416ba

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

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