PluginManager/PluginInstallDialog.py

changeset 2101
5bac7dee9e1a
parent 1509
c0b5e693b0eb
child 2302
f29e9405c851
diff -r fb16f4650860 -r 5bac7dee9e1a PluginManager/PluginInstallDialog.py
--- a/PluginManager/PluginInstallDialog.py	Wed Oct 03 20:07:50 2012 +0200
+++ b/PluginManager/PluginInstallDialog.py	Thu Oct 04 19:28:49 2012 +0200
@@ -16,9 +16,10 @@
 
 from PyQt4.QtCore import pyqtSlot, Qt, QDir, QFileInfo
 from PyQt4.QtGui import QWidget, QDialogButtonBox, QAbstractButton, QApplication, \
-    QDialog, QVBoxLayout, QMainWindow
+    QDialog, QVBoxLayout
 
 from E5Gui import E5FileDialog
+from E5Gui.E5MainWindow import E5MainWindow
 
 from .PluginManager import PluginManager
 from .Ui_PluginInstallDialog import Ui_PluginInstallDialog
@@ -544,7 +545,7 @@
         return self.cw.restartNeeded()
 
 
-class PluginInstallWindow(QMainWindow):
+class PluginInstallWindow(E5MainWindow):
     """
     Main window class for the standalone dialog.
     """
@@ -562,5 +563,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