eric6/Project/ProjectBrowser.py

changeset 8143
2c730d5fd177
parent 7960
e8fc383322f7
child 8207
d359172d11be
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
48 self.setWindowIcon(UI.PixmapCache.getIcon("eric")) 48 self.setWindowIcon(UI.PixmapCache.getIcon("eric"))
49 49
50 self.setUsesScrollButtons(True) 50 self.setUsesScrollButtons(True)
51 51
52 self.vcsStatusIndicator = E5ClickableLed(self) 52 self.vcsStatusIndicator = E5ClickableLed(self)
53 self.setCornerWidget(self.vcsStatusIndicator, Qt.TopLeftCorner) 53 self.setCornerWidget(self.vcsStatusIndicator, Qt.Corner.TopLeftCorner)
54 self.vcsStatusIndicator.clicked.connect( 54 self.vcsStatusIndicator.clicked.connect(
55 self.__vcsStatusIndicatorClicked) 55 self.__vcsStatusIndicatorClicked)
56 self.vcsStatusColorNames = { 56 self.vcsStatusColorNames = {
57 "A": "VcsAdded", 57 "A": "VcsAdded",
58 "M": "VcsModified", 58 "M": "VcsModified",
390 390
391 @param state new vcs state (string) 391 @param state new vcs state (string)
392 """ 392 """
393 self.currentVcsStatus = state 393 self.currentVcsStatus = state
394 if state == " " or state not in self.vcsStatusColorNames: 394 if state == " " or state not in self.vcsStatusColorNames:
395 self.vcsStatusIndicator.setColor(QColor(Qt.lightGray)) 395 self.vcsStatusIndicator.setColor(QColor(Qt.GlobalColor.lightGray))
396 else: 396 else:
397 self.vcsStatusIndicator.setColor( 397 self.vcsStatusIndicator.setColor(
398 Preferences.getProjectBrowserColour( 398 Preferences.getProjectBrowserColour(
399 self.vcsStatusColorNames[state])) 399 self.vcsStatusColorNames[state]))
400 if state not in self.vcsStatusText: 400 if state not in self.vcsStatusText:

eric ide

mercurial