--- a/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py Wed Oct 03 20:07:50 2012 +0200 +++ b/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py Thu Oct 04 19:28:49 2012 +0200 @@ -12,9 +12,10 @@ from PyQt4.QtCore import QFileInfo, pyqtSlot from PyQt4.QtGui import QWidget, QDialog, QInputDialog, QApplication, QClipboard, \ - QTextCursor, QDialogButtonBox, QMainWindow, QVBoxLayout, QTableWidgetItem + QTextCursor, QDialogButtonBox, QVBoxLayout, QTableWidgetItem from E5Gui import E5MessageBox, E5FileDialog +from E5Gui.E5MainWindow import E5MainWindow from .Ui_PyRegExpWizardDialog import Ui_PyRegExpWizardDialog @@ -24,6 +25,7 @@ import UI.PixmapCache import Utilities +import Preferences class PyRegExpWizardWidget(QWidget, Ui_PyRegExpWizardDialog): @@ -664,7 +666,7 @@ return self.cw.getCode(indLevel, indString) -class PyRegExpWizardWindow(QMainWindow): +class PyRegExpWizardWindow(E5MainWindow): """ Main window class for the standalone dialog. """ @@ -680,5 +682,7 @@ self.setCentralWidget(self.cw) self.resize(size) + self.setStyle(Preferences.getUI("Style"), Preferences.getUI("StyleSheet")) + self.cw.buttonBox.accepted[()].connect(self.close) self.cw.buttonBox.rejected[()].connect(self.close)