comparison src/filterwidget.h @ 14:315e6988952a

Only add entries that do not start with # to filter
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 14 Apr 2015 17:25:15 +0200
parents e4748da7140b
children 64a51a42c01f
comparison
equal deleted inserted replaced
13:06c9b37d1e1b 14:315e6988952a
5 * This file is Free Software under the GNU GPL (v>=2) 5 * This file is Free Software under the GNU GPL (v>=2)
6 * and comes with ABSOLUTELY NO WARRANTY! 6 * and comes with ABSOLUTELY NO WARRANTY!
7 * See LICENSE.txt for details. 7 * See LICENSE.txt for details.
8 */ 8 */
9 #include <QWidget> 9 #include <QWidget>
10 #include <QMap>
10 11
11 class QSortFilterProxyModel; 12 class QSortFilterProxyModel;
12 class QComboBox; 13 class QComboBox;
13 class QLineEdit; 14 class QLineEdit;
14 class FilterWidget: public QWidget 15 class FilterWidget: public QWidget
30 31
31 private: 32 private:
32 QSortFilterProxyModel *mModel; 33 QSortFilterProxyModel *mModel;
33 QComboBox *mCombo; 34 QComboBox *mCombo;
34 QLineEdit *mEditLine; 35 QLineEdit *mEditLine;
36 /* Maps the combo index to the model col index */
37 QMap<int, int> mColFilterMap;
35 }; 38 };
36 #endif // FILTERWIDGET_H 39 #endif // FILTERWIDGET_H
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)