Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py

changeset 2101
5bac7dee9e1a
parent 1509
c0b5e693b0eb
child 2302
f29e9405c851
diff -r fb16f4650860 -r 5bac7dee9e1a Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py
--- 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)

eric ide

mercurial