Plugins/VcsPlugins/vcsMercurial/ShelveExtension/HgShelveBrowserDialog.py

changeset 3591
2f2a4a76dd22
parent 3484
645c12de6b0c
child 3656
441956d8fce5
equal deleted inserted replaced
3590:5280e37405b8 3591:2f2a4a76dd22
76 self.__contextMenu.addAction( 76 self.__contextMenu.addAction(
77 self.tr("Delete all shelves"), self.__cleanupShelves) 77 self.tr("Delete all shelves"), self.__cleanupShelves)
78 78
79 def closeEvent(self, e): 79 def closeEvent(self, e):
80 """ 80 """
81 Private slot implementing a close event handler. 81 Protected slot implementing a close event handler.
82 82
83 @param e close event (QCloseEvent) 83 @param e close event (QCloseEvent)
84 """ 84 """
85 if self.__hgClient: 85 if self.__hgClient:
86 if self.__hgClient.isExecuting(): 86 if self.__hgClient.isExecuting():
376 self.deletionsLabel.setText("") 376 self.deletionsLabel.setText("")
377 377
378 @pyqtSlot(QPoint) 378 @pyqtSlot(QPoint)
379 def on_shelveList_customContextMenuRequested(self, pos): 379 def on_shelveList_customContextMenuRequested(self, pos):
380 """ 380 """
381 Protected slot to show the context menu of the shelve list. 381 Private slot to show the context menu of the shelve list.
382 382
383 @param pos position of the mouse pointer (QPoint) 383 @param pos position of the mouse pointer (QPoint)
384 """ 384 """
385 selectedItemsCount = len(self.shelveList.selectedItems()) 385 selectedItemsCount = len(self.shelveList.selectedItems())
386 self.__unshelveAct.setEnabled(selectedItemsCount == 1) 386 self.__unshelveAct.setEnabled(selectedItemsCount == 1)

eric ide

mercurial