163 |
163 |
164 def on_buttonBox_clicked(self, button): |
164 def on_buttonBox_clicked(self, button): |
165 """ |
165 """ |
166 Private slot called by a button of the button box clicked. |
166 Private slot called by a button of the button box clicked. |
167 |
167 |
168 @param button button that was clicked (QAbstractButton) |
168 @param button button that was clicked |
|
169 @type QAbstractButton |
169 """ |
170 """ |
170 if button == self.bTest: |
171 if button == self.bTest: |
171 self.on_bTest_clicked() |
172 self.on_bTest_clicked() |
172 |
173 |
173 @pyqtSlot() |
174 @pyqtSlot() |
311 def __toggleInitialFilterAndResult(self, checkedId): |
312 def __toggleInitialFilterAndResult(self, checkedId): |
312 """ |
313 """ |
313 Private slot to enable/disable the initial filter elements and the |
314 Private slot to enable/disable the initial filter elements and the |
314 results entries. |
315 results entries. |
315 |
316 |
316 @param checkedId id of the clicked button (integer) |
317 @param checkedId id of the clicked button |
|
318 @type int |
317 """ |
319 """ |
318 enable = (self.__dialogVariant in (-1, -2) and checkedId in [11, 12, 13]) or ( |
320 enable = (self.__dialogVariant in (-1, -2) and checkedId in [11, 12, 13]) or ( |
319 self.__dialogVariant in (5, 6) and checkedId in [1, 2, 3, 21, 22, 23] |
321 self.__dialogVariant in (5, 6) and checkedId in [1, 2, 3, 21, 22, 23] |
320 ) |
322 ) |
321 |
323 |
330 |
332 |
331 def getCode(self, indLevel, indString): |
333 def getCode(self, indLevel, indString): |
332 """ |
334 """ |
333 Public method to get the source code for Qt6. |
335 Public method to get the source code for Qt6. |
334 |
336 |
335 @param indLevel indentation level (int) |
337 @param indLevel indentation level |
336 @param indString string used for indentation (space or tab) (string) |
338 @type int |
337 @return generated code (string) |
339 @param indString string used for indentation (space or tab) |
|
340 @type str |
|
341 @return generated code |
|
342 @rtype str |
338 """ |
343 """ |
339 # calculate our indentation level and the indentation string |
344 # calculate our indentation level and the indentation string |
340 il = indLevel + 1 |
345 il = indLevel + 1 |
341 istring = il * indString |
346 istring = il * indString |
342 estring = os.linesep + indLevel * indString |
347 estring = os.linesep + indLevel * indString |