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 ) |