Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesQueueManagementDialog.py

changeset 2962
d6c9d1ca2da4
parent 2771
281c9b30dd91
child 3008
7848489bcb92
equal deleted inserted replaced
2961:e4e2efb4846a 2962:d6c9d1ca2da4
35 @param suppressActive flag indicating to not show the name of the active 35 @param suppressActive flag indicating to not show the name of the active
36 queue (boolean) 36 queue (boolean)
37 @param repodir name of the repository directory (string) 37 @param repodir name of the repository directory (string)
38 @param vcs reference to the vcs object 38 @param vcs reference to the vcs object
39 @param parent reference to the parent widget (QWidget) 39 @param parent reference to the parent widget (QWidget)
40 @exception ValueError raised to indicate an invalid dialog mode
40 """ 41 """
41 super().__init__(parent) 42 super().__init__(parent)
42 self.setupUi(self) 43 self.setupUi(self)
43 44
44 if mode not in (HgQueuesQueueManagementDialog.NO_INPUT, 45 if mode not in (HgQueuesQueueManagementDialog.NO_INPUT,
120 121
121 @pyqtSlot(str) 122 @pyqtSlot(str)
122 def on_nameEdit_textChanged(self, txt): 123 def on_nameEdit_textChanged(self, txt):
123 """ 124 """
124 Private slot to handle changes of the entered queue name. 125 Private slot to handle changes of the entered queue name.
126
127 @param txt text of the edit (string)
125 """ 128 """
126 if self.__mode == HgQueuesQueueManagementDialog.NAME_INPUT: 129 if self.__mode == HgQueuesQueueManagementDialog.NAME_INPUT:
127 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(txt != "") 130 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(txt != "")
128 131
129 @pyqtSlot() 132 @pyqtSlot()

eric ide

mercurial