view src/filterwidget.h @ 21:fbe6b5b115de

Added tag 0.0.1 for changeset 6b5e7d6bf4a2
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 14 Apr 2015 18:57:05 +0200
parents 315e6988952a
children 64a51a42c01f
line wrap: on
line source
#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>
#include <QMap>

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;
    /* Maps the combo index to the model col index */
    QMap<int, int> mColFilterMap;
};
#endif // FILTERWIDGET_H
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)