64 self.__menu.addAction(self.trUtf8("Switch off"), self.__switchOff) |
64 self.__menu.addAction(self.trUtf8("Switch off"), self.__switchOff) |
65 self.__checkActions() |
65 self.__checkActions() |
66 |
66 |
67 # connect signals to our slots |
67 # connect signals to our slots |
68 self.setContextMenuPolicy(Qt.CustomContextMenu) |
68 self.setContextMenuPolicy(Qt.CustomContextMenu) |
69 self.connect(self, SIGNAL("customContextMenuRequested(const QPoint &)"), |
69 self.customContextMenuRequested.connect(self._showContextMenu) |
70 self._showContextMenu) |
|
71 self.connect(self.project, SIGNAL('vcsStatusMonitorStatus(QString, QString)'), |
70 self.connect(self.project, SIGNAL('vcsStatusMonitorStatus(QString, QString)'), |
72 self.__projectVcsMonitorStatus) |
71 self.__projectVcsMonitorStatus) |
73 |
72 |
74 def __checkActions(self): |
73 def __checkActions(self): |
75 """ |
74 """ |