644 Private slot called to enter the data for a new dialog class. |
644 Private slot called to enter the data for a new dialog class. |
645 """ |
645 """ |
646 path, file = os.path.split(self.srcFile) |
646 path, file = os.path.split(self.srcFile) |
647 objName = self.__objectName() |
647 objName = self.__objectName() |
648 if objName: |
648 if objName: |
649 dlg = NewDialogClassDialog(objName, file, path, self) |
649 dlg = NewDialogClassDialog(objName, file, path, parent=self) |
650 if dlg.exec() == QDialog.DialogCode.Accepted: |
650 if dlg.exec() == QDialog.DialogCode.Accepted: |
651 className, fileName = dlg.getData() |
651 className, fileName = dlg.getData() |
652 |
652 |
653 self.classNameCombo.clear() |
653 self.classNameCombo.clear() |
654 self.classNameCombo.addItem(className) |
654 self.classNameCombo.addItem(className) |