started to implement a filter Widget

This commit is contained in:
Sebastian Wehling-Benatelli 2014-02-07 05:40:49 +01:00
parent d016a80a72
commit 738f280abe

View File

@ -28,7 +28,10 @@ class MainWindow(QMainWindow):
def __init__(self, parent=None): def __init__(self, parent=None):
super(MainWindow, self).__init__(parent) super(MainWindow, self).__init__(parent)
filterDockWidget = QDockWidget("Filter Options", self) filterDefaults
self.filterOptions = FilterOptions(filterDefaults)
filterDockWidget = FilterOptionsDock("Filter Options", self)
class PickWindow(QDialog): class PickWindow(QDialog):
@ -45,7 +48,7 @@ class PropertiesWindow(QDialog):
class FilterOptionsDock(QDockWidget): class FilterOptionsDock(QDockWidget):
def __init__(self, filterOptions=None): def __init__(self, titleString="Filter options", filterOptions=None):
super(FilterOptionsDock, self).__init__() super(FilterOptionsDock, self).__init__()
if filterOptions and not isinstance(filterOptions, FilterOptions): if filterOptions and not isinstance(filterOptions, FilterOptions):