added static method to the FilterOptionsDialog in order to be able to directly get an filter object without having to create an dialog object in advance explicitly
This commit is contained in:
@@ -978,6 +978,13 @@ class FilterOptionsDialog(QDialog):
|
||||
def getFilterOptions(self):
|
||||
return self.filterOptions
|
||||
|
||||
@staticmethod
|
||||
def getFilterObject():
|
||||
dlg = FilterOptionsDialog()
|
||||
if dlg.exec_():
|
||||
return dlg.getFilterOptions()
|
||||
return None
|
||||
|
||||
def accept(self):
|
||||
self.updateUi()
|
||||
QDialog.accept(self)
|
||||
|
||||
Reference in New Issue
Block a user