14 |
14 |
15 class DjangoTestDataDialog(QDialog, Ui_DjangoTestDataDialog): |
15 class DjangoTestDataDialog(QDialog, Ui_DjangoTestDataDialog): |
16 """ |
16 """ |
17 Class implementing a dialog to enter some data for running tests. |
17 Class implementing a dialog to enter some data for running tests. |
18 """ |
18 """ |
19 def __init__(self, project, parent=None): |
19 def __init__(self, project, keepDatabases, parent=None): |
20 """ |
20 """ |
21 Constructor |
21 Constructor |
22 |
22 |
23 @param project reference to the Django project object |
23 @param project reference to the Django project object |
24 @type Project |
24 @type Project |
|
25 @param keepDatabases flag indicating to set the keep databases |
|
26 check box |
|
27 @type bool |
25 @param parent reference to the parent widget |
28 @param parent reference to the parent widget |
26 @type QWidget |
29 @type QWidget |
27 """ |
30 """ |
28 super(DjangoTestDataDialog, self).__init__(parent) |
31 super(DjangoTestDataDialog, self).__init__(parent) |
29 self.setupUi(self) |
32 self.setupUi(self) |
38 self.__project.getRecentTestData("RecentTestExcludeTags")) |
41 self.__project.getRecentTestData("RecentTestExcludeTags")) |
39 |
42 |
40 if self.__project.getDjangoVersion() < (1, 10, 0): |
43 if self.__project.getDjangoVersion() < (1, 10, 0): |
41 self.tagsComboBox.setEnabled(False) |
44 self.tagsComboBox.setEnabled(False) |
42 self.excludeTagsComboBox.setEnabled(False) |
45 self.excludeTagsComboBox.setEnabled(False) |
|
46 |
|
47 self.keepCheckBox.setChecked(keepDatabases) |
43 |
48 |
44 msh = self.minimumSizeHint() |
49 msh = self.minimumSizeHint() |
45 self.resize(max(self.width(), msh.width()), msh.height()) |
50 self.resize(max(self.width(), msh.width()), msh.height()) |
46 |
51 |
47 def getData(self): |
52 def getData(self): |