7 Module implementing an 'About Eric' dialog. |
7 Module implementing an 'About Eric' dialog. |
8 """ |
8 """ |
9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
12 from PyQt5.QtCore import QCoreApplication |
12 from PyQt5.QtCore import Qt, QCoreApplication |
13 from PyQt5.QtWidgets import QDialog |
13 from PyQt5.QtWidgets import QDialog |
14 |
14 |
15 from .Ui_AboutDialog import Ui_AboutDialog |
15 from .Ui_AboutDialog import Ui_AboutDialog |
16 |
16 |
17 import Preferences |
17 import Preferences |
746 |
746 |
747 @param parent reference to the parent widget (QWidget) |
747 @param parent reference to the parent widget (QWidget) |
748 """ |
748 """ |
749 super(AboutDialog, self).__init__(parent) |
749 super(AboutDialog, self).__init__(parent) |
750 self.setupUi(self) |
750 self.setupUi(self) |
|
751 self.setWindowFlags(Qt.Window) |
751 |
752 |
752 self.ericLabel.setText(titleText) |
753 self.ericLabel.setText(titleText) |
753 self.ericPixmap.setPixmap( |
754 self.ericPixmap.setPixmap( |
754 UI.PixmapCache.getPixmap("eric.png").scaled(48, 48)) |
755 UI.PixmapCache.getPixmap("eric.png").scaled(48, 48)) |
755 |
756 |