31 def __init__(self, dialogVariant, parent=None): |
31 def __init__(self, dialogVariant, parent=None): |
32 """ |
32 """ |
33 Constructor |
33 Constructor |
34 |
34 |
35 @param dialogVariant variant of the file dialog to be generated |
35 @param dialogVariant variant of the file dialog to be generated |
36 (-1 = EricFileDialog, 0 = unknown, 5 = PyQt5) |
36 (-1 = EricFileDialog, 0 = unknown, 5 = PyQt5, 6 = PyQt6) |
37 @type int |
37 @type int |
38 @param parent parent widget |
38 @param parent parent widget |
39 @type QWidget |
39 @type QWidget |
40 """ |
40 """ |
41 super().__init__(parent) |
41 super().__init__(parent) |
144 elif txt == "PyQt5": |
144 elif txt == "PyQt5": |
145 self.__dialogVariant = 5 |
145 self.__dialogVariant = 5 |
146 elif txt == "PyQt6": |
146 elif txt == "PyQt6": |
147 self.__dialogVariant = 6 |
147 self.__dialogVariant = 6 |
148 else: |
148 else: |
149 # default is PyQt5 |
149 # default is PyQt6 |
150 self.__dialogVariant = 5 |
150 self.__dialogVariant = 6 |
151 |
151 |
152 self.__toggleInitialFilterAndResult( |
152 self.__toggleInitialFilterAndResult( |
153 self.__typeButtonsGroup.checkedId()) |
153 self.__typeButtonsGroup.checkedId()) |
154 |
154 |
155 def on_buttonBox_clicked(self, button): |
155 def on_buttonBox_clicked(self, button): |