diff -r fb16f4650860 -r 5bac7dee9e1a Preferences/ConfigurationDialog.py --- a/Preferences/ConfigurationDialog.py Wed Oct 03 20:07:50 2012 +0200 +++ b/Preferences/ConfigurationDialog.py Thu Oct 04 19:28:49 2012 +0200 @@ -13,12 +13,13 @@ from PyQt4.QtCore import QMetaObject, pyqtSignal, Qt, QRect, pyqtSlot from PyQt4.QtGui import QSizePolicy, QSpacerItem, QWidget, QPixmap, QTreeWidget, \ QStackedWidget, QDialog, QSplitter, QScrollArea, QApplication, QDialogButtonBox, \ - QFrame, QMainWindow, QVBoxLayout, QTreeWidgetItem, QLabel + QFrame, QVBoxLayout, QTreeWidgetItem, QLabel from E5Gui.E5Application import e5App from E5Gui.E5LineEdit import E5LineEdit from E5Gui.E5LineEditButton import E5LineEditButton from E5Gui import E5MessageBox +from E5Gui.E5MainWindow import E5MainWindow import QScintilla.Lexers @@ -806,7 +807,7 @@ super().accept() -class ConfigurationWindow(QMainWindow): +class ConfigurationWindow(E5MainWindow): """ Main window class for the standalone dialog. """ @@ -823,6 +824,8 @@ self.setCentralWidget(self.cw) self.resize(size) + self.setStyle(Preferences.getUI("Style"), Preferences.getUI("StyleSheet")) + self.cw.accepted[()].connect(self.accept) self.cw.rejected[()].connect(self.close)