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:
Sebastian Wehling-Benatelli 2015-06-24 09:24:21 +02:00
parent 123634924b
commit ac99ec8a76

View File

@ -978,6 +978,13 @@ class FilterOptionsDialog(QDialog):
def getFilterOptions(self): def getFilterOptions(self):
return self.filterOptions return self.filterOptions
@staticmethod
def getFilterObject():
dlg = FilterOptionsDialog()
if dlg.exec_():
return dlg.getFilterOptions()
return None
def accept(self): def accept(self):
self.updateUi() self.updateUi()
QDialog.accept(self) QDialog.accept(self)