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 | Properties | List of all members
QFilterView Class Reference

The QFilterView class provides a widget that is used to view and edit filter definitions. More...

#include <qfilterview.h>

Inheritance diagram for QFilterView:

Public Slots

void addFilter ()
 
void changeColor ()
 
void changeProperties ()
 
void disableSelectedFilters ()
 
void enableSelectedFilters ()
 
void removeFilter ()
 
void setFilterVisible (bool visible)
 
void toggleSelectedFilters ()
 

Signals

void calcGeometryRequested ()
 
void cornerButtonClicked ()
 
void focusReceived ()
 
void visibilityChanged (bool visible)
 
void removeColumnFilter (int row, int column)
 

Public Member Functions

 QFilterView (QWidget *parent=0)
 
 ~QFilterView ()
 
void connectToView (QAbstractItemView *view)
 
int defaultFilterType () const
 
QFilterViewConnectorfilterViewConnector () const
 
bool filterVisible () const
 
int maxVisibileFilterSets () const
 
void setAllowedFilterTypes (int types)
 
void setDefaultFilterType (int type)
 
void setMaxVisibileFilterSets (int rows)
 
void setModel (QAbstractItemModel *model)
 
void toggleFilter (const QModelIndex &index)
 

Protected Member Functions

void contextMenuEvent (QContextMenuEvent *event)
 
void focusInEvent (QFocusEvent *event)
 
void mousePressEvent (QMouseEvent *event)
 

Properties

int maxVisibileFilterSets
 

Detailed Description

The QFilterView class provides a widget that is used to view and edit filter definitions.

qfilterview01.png

Constructor & Destructor Documentation

QFilterView::QFilterView ( QWidget *  parent = 0)

Constructs a QFilterView with the given parent.

QFilterView::~QFilterView ( )

Destroys the filter view.

Member Function Documentation

void QFilterView::changeColor ( )
slot

Opens the color selection dialog for the current index.

int QFilterView::defaultFilterType ( ) const

Returns the default filter type or -1 is no default type is set.

See also
setDefaultFilterType()
void QFilterView::disableSelectedFilters ( )
slot

Disables the selected filter definitions.

See also
enableSelectedFilters()
void QFilterView::enableSelectedFilters ( )
slot

Enables the selected filter definitions.

See also
disableSelectedFilters()
void QFilterView::removeFilter ( )
slot

Removes the current filter.

void QFilterView::setFilterVisible ( bool  visible)
slot

If visible the filters in the filter model are shown. Otherwise the size of this is reduced to show the header view only.

void QFilterView::setMaxVisibileFilterSets ( int  rows)

Sets the maximum number of filter definition visible in this view to rows.

See also
maxVisibileFilterSets()
void QFilterView::toggleFilter ( const QModelIndex &  index)

Toggles the state (enabled/disabled) of the filter specified by the given index.

void QFilterView::toggleSelectedFilters ( )
slot

Toggles the state (enabled/disabled) of the filter selection.

See also
toggleFilter()
void QFilterView::visibilityChanged ( bool  visible)
signal

This signal is emitted if the visility of the filter sets has been changed.

Property Documentation

int QFilterView::maxVisibileFilterSets
readwrite
See also
maxVisibileFilterSets() setMaxVisibileFilterSets()

Returns the maximum number of visible filter sets.

See also
setMaxVisibileFilterSets()

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