comparison 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
comparison
equal deleted inserted replaced
3:248d5d1cdb38 4:e4748da7140b
1 #ifndef FILTERWIDGET_H
2 #define FILTERWIDGET_H
3 /* Copyright (C) 2014 by Intevation GmbH
4 *
5 * This file is Free Software under the GNU GPL (v>=2)
6 * and comes with ABSOLUTELY NO WARRANTY!
7 * See LICENSE.txt for details.
8 */
9 #include <QWidget>
10
11 class QSortFilterProxyModel;
12 class QComboBox;
13 class QLineEdit;
14 class FilterWidget: public QWidget
15 {
16 Q_OBJECT
17
18 public:
19 /**@brief construct a filterwidget for the model model.*/
20 FilterWidget (QSortFilterProxyModel *model,
21 QWidget * parent = 0, Qt::WindowFlags f = 0);
22
23 protected:
24 void setupGUI();
25
26 protected slots:
27 void headersChanged();
28
29 void filterChanged();
30
31 private:
32 QSortFilterProxyModel *mModel;
33 QComboBox *mCombo;
34 QLineEdit *mEditLine;
35 };
36 #endif // FILTERWIDGET_H
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)