Plugins/VcsPlugins/vcsMercurial/BookmarksExtension/HgBookmarkRenameDialog.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3408
b6e6a7062d12
equal deleted inserted replaced
3456:96232974dcdb 3484:645c12de6b0c
30 self.setupUi(self) 30 self.setupUi(self)
31 31
32 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) 32 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False)
33 33
34 self.bookmarkCombo.addItems(sorted(bookmarksList)) 34 self.bookmarkCombo.addItems(sorted(bookmarksList))
35
36 msh = self.minimumSizeHint()
37 self.resize(max(self.width(), msh.width()), msh.height())
35 38
36 def __updateUI(self): 39 def __updateUI(self):
37 """ 40 """
38 Private slot to update the UI. 41 Private slot to update the UI.
39 """ 42 """
65 Public method to retrieve the entered data. 68 Public method to retrieve the entered data.
66 69
67 @return tuple naming the new and old bookmark names 70 @return tuple naming the new and old bookmark names
68 (string, string) 71 (string, string)
69 """ 72 """
70 return self.nameEdit.text(), self.bookmarkCombo.currentText() 73 return (
74 self.nameEdit.text().replace(" ", "_"),
75 self.bookmarkCombo.currentText().replace(" ", "_")
76 )

eric ide

mercurial