diff src/filterwidget.h @ 4:e4748da7140b

Add filter functionalty to metadataview
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 25 Mar 2015 14:23:46 +0100
parents
children 315e6988952a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/filterwidget.h	Wed Mar 25 14:23:46 2015 +0100
@@ -0,0 +1,36 @@
+#ifndef FILTERWIDGET_H
+#define FILTERWIDGET_H
+/* Copyright (C) 2014 by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=2)
+ * and comes with ABSOLUTELY NO WARRANTY!
+ * See LICENSE.txt for details.
+ */
+#include <QWidget>
+
+class QSortFilterProxyModel;
+class QComboBox;
+class QLineEdit;
+class FilterWidget: public QWidget
+{
+    Q_OBJECT
+
+public:
+    /**@brief construct a filterwidget for the model model.*/
+    FilterWidget (QSortFilterProxyModel *model,
+            QWidget * parent = 0, Qt::WindowFlags f = 0);
+
+protected:
+    void setupGUI();
+
+protected slots:
+    void headersChanged();
+
+    void filterChanged();
+
+private:
+    QSortFilterProxyModel *mModel;
+    QComboBox *mCombo;
+    QLineEdit *mEditLine;
+};
+#endif // FILTERWIDGET_H
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)