14 |
14 |
15 class GitUserConfigDataDialog(QDialog, Ui_GitUserConfigDataDialog): |
15 class GitUserConfigDataDialog(QDialog, Ui_GitUserConfigDataDialog): |
16 """ |
16 """ |
17 Class implementing a dialog to enter some user data. |
17 Class implementing a dialog to enter some user data. |
18 """ |
18 """ |
|
19 |
19 def __init__(self, version=(0, 0), parent=None): |
20 def __init__(self, version=(0, 0), parent=None): |
20 """ |
21 """ |
21 Constructor |
22 Constructor |
22 |
23 |
23 @param version Git version info (tuple of two integers) |
24 @param version Git version info (tuple of two integers) |
24 @param parent reference to the parent widget (QWidget) |
25 @param parent reference to the parent widget (QWidget) |
25 """ |
26 """ |
26 super().__init__(parent) |
27 super().__init__(parent) |
27 self.setupUi(self) |
28 self.setupUi(self) |
28 |
29 |
29 msh = self.minimumSizeHint() |
30 msh = self.minimumSizeHint() |
30 self.resize(max(self.width(), msh.width()), msh.height()) |
31 self.resize(max(self.width(), msh.width()), msh.height()) |
31 |
32 |
32 def getData(self): |
33 def getData(self): |
33 """ |
34 """ |
34 Public method to retrieve the entered data. |
35 Public method to retrieve the entered data. |
35 |
36 |
36 @return tuple with user's first name, last name and email address |
37 @return tuple with user's first name, last name and email address |
37 (tuple of three strings) |
38 (tuple of three strings) |
38 """ |
39 """ |
39 return ( |
40 return ( |
40 self.firstNameEdit.text(), |
41 self.firstNameEdit.text(), |