--- a/Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py Wed Oct 03 20:07:50 2012 +0200 +++ b/Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py Thu Oct 04 19:28:49 2012 +0200 @@ -11,9 +11,10 @@ from PyQt4.QtCore import QFileInfo, QRegExp, Qt, pyqtSlot, qVersion from PyQt4.QtGui import QWidget, QDialog, QApplication, QClipboard, QTextCursor, \ - QDialogButtonBox, QMainWindow, QVBoxLayout, QTableWidgetItem + QDialogButtonBox, QVBoxLayout, QTableWidgetItem from E5Gui import E5MessageBox, E5FileDialog +from E5Gui.E5MainWindow import E5MainWindow from .Ui_QRegExpWizardDialog import Ui_QRegExpWizardWidget @@ -23,6 +24,7 @@ import UI.PixmapCache import Utilities +import Preferences class QRegExpWizardWidget(QWidget, Ui_QRegExpWizardWidget): @@ -648,7 +650,7 @@ return self.cw.getCode(indLevel, indString) -class QRegExpWizardWindow(QMainWindow): +class QRegExpWizardWindow(E5MainWindow): """ Main window class for the standalone dialog. """ @@ -664,5 +666,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)