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:
parent
123634924b
commit
ac99ec8a76
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user