2523:139f182b72f6 | 2525:8b507a9a2d40 |
---|---|
4 # | 4 # |
5 | 5 |
6 """ | 6 """ |
7 Module implementing a dialog to generate code for a Qt4/Qt5 dialog. | 7 Module implementing a dialog to generate code for a Qt4/Qt5 dialog. |
8 """ | 8 """ |
9 | |
10 from __future__ import unicode_literals # __IGNORE_WARNING__ | |
9 | 11 |
10 import os | 12 import os |
11 | 13 |
12 from PyQt4.QtCore import QMetaObject, QByteArray, QRegExp, Qt, pyqtSlot, QMetaMethod, \ | 14 from PyQt4.QtCore import QMetaObject, QByteArray, QRegExp, Qt, pyqtSlot, QMetaMethod, \ |
13 qVersion | 15 qVersion |
42 | 44 |
43 @param formName name of the file containing the form (string) | 45 @param formName name of the file containing the form (string) |
44 @param project reference to the project object | 46 @param project reference to the project object |
45 @param parent parent widget if the dialog (QWidget) | 47 @param parent parent widget if the dialog (QWidget) |
46 """ | 48 """ |
47 super().__init__(parent) | 49 super(CreateDialogCodeDialog, self).__init__(parent) |
48 self.setupUi(self) | 50 self.setupUi(self) |
49 | 51 |
50 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) | 52 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
51 | 53 |
52 self.slotsView.header().hide() | 54 self.slotsView.header().hide() |