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
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
QFilterEditorWidget Class Reference

The class QFilterEditorBase provides the base class for implenting a filter editor. More...

#include <qfiltereditorwidget.h>

Inheritance diagram for QFilterEditorWidget:

Public Slots

void showPopup (bool visible=true)
 

Signals

void commit ()
 
void commitAndClose (QAbstractItemDelegate::EndEditHint hint=QAbstractItemDelegate::NoHint)
 
void cancelAndClose (QAbstractItemDelegate::EndEditHint hint=QAbstractItemDelegate::NoHint)
 

Public Member Functions

 QFilterEditorWidget (QWidget *parent)
 
 ~QFilterEditorWidget ()
 
QFilterEditorPopupWidgetpopup () const
 
void setPopup (QFilterEditorPopupWidget *widget)
 

Protected Member Functions

virtual bool eventFilter (QObject *object, QEvent *event)
 
void moveEvent (QMoveEvent *e)
 

Detailed Description

The class QFilterEditorBase provides the base class for implenting a filter editor.

Constructor & Destructor Documentation

QFilterEditorWidget::QFilterEditorWidget ( QWidget *  parent)

Constructs a QFilterEditorBase which is a child of parent.

QFilterEditorWidget::~QFilterEditorWidget ( )

Destroys the QFilterEditorBase.

Member Function Documentation

void QFilterEditorWidget::cancelAndClose ( QAbstractItemDelegate::EndEditHint  hint = QAbstractItemDelegate::NoHint)
signal

This signal must be emitted when editing shall be canceled and to close the editor.

void QFilterEditorWidget::commit ( )
signal

This signal must be emitted when the editor widget has completed editing the data, wants to write it back into the model.

void QFilterEditorWidget::commitAndClose ( QAbstractItemDelegate::EndEditHint  hint = QAbstractItemDelegate::NoHint)
signal

This signal must be emitted when the editor widget has completed editing the data, wants to write it back into the model and to close the editor.

The hint provides a way for the delegate to influence how the model and view behave after editing is completed. It indicates to these components what action should be performed next to provide a comfortable editing experience for the user. For example, if EditNextItem is specified, the view should use a delegate to open an editor on the next item in the model.

bool QFilterEditorWidget::eventFilter ( QObject *  object,
QEvent *  event 
)
protectedvirtual

QWidget::eventFilter()

void QFilterEditorWidget::moveEvent ( QMoveEvent *  e)
protected

QWidget::moveEvent()

QFilterEditorPopupWidget * QFilterEditorWidget::popup ( ) const

Returns the popup widget, or 0 if the editor does not have a popup widget.

See also
setPopup()
void QFilterEditorWidget::setPopup ( QFilterEditorPopupWidget widget)

Sets the popup widget to widget.

See also
popup();
void QFilterEditorWidget::showPopup ( bool  visible = true)
slot

If visible is true, the popop widget is shown.


The documentation for this class was generated from the following files: