14 |
14 |
15 class ClearPrivateDataDialog(QDialog, Ui_ClearPrivateDataDialog): |
15 class ClearPrivateDataDialog(QDialog, Ui_ClearPrivateDataDialog): |
16 """ |
16 """ |
17 Class implementing a dialog to select which private data to clear. |
17 Class implementing a dialog to select which private data to clear. |
18 """ |
18 """ |
|
19 |
19 def __init__(self, parent=None): |
20 def __init__(self, parent=None): |
20 """ |
21 """ |
21 Constructor |
22 Constructor |
22 |
23 |
23 @param parent reference to the parent widget |
24 @param parent reference to the parent widget |
24 @type QWidget |
25 @type 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 get the data from the dialog. |
35 Public method to get the data from the dialog. |
35 |
36 |
36 @return flags indicating which data to clear |
37 @return flags indicating which data to clear |
37 (recent files, recent projects, recent multi projects, |
38 (recent files, recent projects, recent multi projects, |
38 debug histories, shell histories, test histories, |
39 debug histories, shell histories, test histories, |
39 VCS histories, private data of plugins) |
40 VCS histories, private data of plugins) |
40 @rtype tuple of bool |
41 @rtype tuple of bool |