QAdvanced Item View  0.4
The QAIV (Qt Advanced Item Views) library provides GUI and utility classes extending the capabilities of the Qt item views.
 All Classes Functions Variables Enumerations Enumerator Properties Groups Pages
qfiltereditorwidget.h
1 /******************************************************************************
2 ** This file is part of qadvanceditemviews.
3 **
4 ** Copyright (c) 2011-2012 Martin Hoppe martin@2x2hoppe.de
5 **
6 ** qadvanceditemviews is free software: you can redistribute it
7 ** and/or modify it under the terms of the GNU Lesser General
8 ** Public License as published by the Free Software Foundation,
9 ** either version 3 of the License, or (at your option) any
10 ** later version.
11 **
12 ** qadvanceditemviews is distributed in the hope that it will be
13 ** useful, but WITHOUT ANY WARRANTY; without even the implied
14 ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 ** See the GNU General Public License for more details.
16 **
17 ** You should have received a copy of the GNU Lesser General Public
18 ** License along with qadvanceditemviews.
19 ** If not, see <http://www.gnu.org/licenses/>.
20 ******************************************************************************/
21 #ifndef QFILTEREDITORWIDGET_H
22 #define QFILTEREDITORWIDGET_H
23 
24 #include <QWidget>
25 #include <QAbstractItemDelegate>
26 
28 
30 class QFilterEditorWidget : public QWidget
31 {
32  Q_OBJECT
33 public:
37  QFilterEditorWidget(QWidget *parent);
51  void setPopup(QFilterEditorPopupWidget* widget);
52 signals:
56  void commit();
65  void commitAndClose(QAbstractItemDelegate::EndEditHint hint = QAbstractItemDelegate::NoHint);
69  void cancelAndClose(QAbstractItemDelegate::EndEditHint hint = QAbstractItemDelegate::NoHint);
70 public slots:
74  void showPopup(bool visible = true);
75 protected:
79  virtual bool eventFilter(QObject* object, QEvent *event);
83  void moveEvent(QMoveEvent* e);
84 private:
85  void movePopup();
86 
87  QFilterEditorPopupWidget* m_popup;
88 };
89 
90 #endif // QFILTEREDITORWIDGET_H
void setPopup(QFilterEditorPopupWidget *widget)
Definition: qfiltereditorwidget.cpp:83
void commitAndClose(QAbstractItemDelegate::EndEditHint hint=QAbstractItemDelegate::NoHint)
The QFilterEditorPopupWidget class provides a base class for filter editor popup widgets.
Definition: qfiltereditorpopupwidget.h:27
void cancelAndClose(QAbstractItemDelegate::EndEditHint hint=QAbstractItemDelegate::NoHint)
QFilterEditorPopupWidget * popup() const
Definition: qfiltereditorwidget.cpp:78
void moveEvent(QMoveEvent *e)
Definition: qfiltereditorwidget.cpp:56
~QFilterEditorWidget()
Definition: qfiltereditorwidget.cpp:31
void showPopup(bool visible=true)
Definition: qfiltereditorwidget.cpp:88
The class QFilterEditorBase provides the base class for implenting a filter editor.
Definition: qfiltereditorwidget.h:30
virtual bool eventFilter(QObject *object, QEvent *event)
Definition: qfiltereditorwidget.cpp:35
QFilterEditorWidget(QWidget *parent)
Definition: qfiltereditorwidget.cpp:25