8 """ |
8 """ |
9 |
9 |
10 from PyQt4.QtCore import * |
10 from PyQt4.QtCore import * |
11 from PyQt4.QtGui import * |
11 from PyQt4.QtGui import * |
12 |
12 |
13 from E4Gui.E4Led import E4Led, E4LedRectangular |
13 from E5Gui.E5Led import E5Led, E5LedRectangular |
14 |
14 |
15 import Preferences |
15 import Preferences |
16 |
16 |
17 class StatusMonitorLed(E4Led): |
17 class StatusMonitorLed(E5Led): |
18 """ |
18 """ |
19 Class implementing a LED to indicate the status of the VCS status monitor thread. |
19 Class implementing a LED to indicate the status of the VCS status monitor thread. |
20 """ |
20 """ |
21 def __init__(self, project, parent): |
21 def __init__(self, project, parent): |
22 """ |
22 """ |
23 Constructor |
23 Constructor |
24 |
24 |
25 @param project reference to the project object (Project.Project) |
25 @param project reference to the project object (Project.Project) |
26 @param parent reference to the parent object (QWidget) |
26 @param parent reference to the parent object (QWidget) |
27 """ |
27 """ |
28 E4Led.__init__(self, parent, shape = E4LedRectangular, rectRatio = 1.0) |
28 E5Led.__init__(self, parent, shape = E5LedRectangular, rectRatio = 1.0) |
29 |
29 |
30 self.project = project |
30 self.project = project |
31 self.vcsMonitorLedColors = { |
31 self.vcsMonitorLedColors = { |
32 "off" : QColor(Qt.lightGray), |
32 "off" : QColor(Qt.lightGray), |
33 "ok" : QColor(Qt.green), |
33 "ok" : QColor(Qt.green), |