--- 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)