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 | Public Member Functions | List of all members
QFixedRowsFilterProxyModel Class Reference

The QFixedRowsFilterProxyModel class implements a proxy model supporting fixed (pinned) rows. More...

#include <qfixedrowstableview.h>

Inheritance diagram for QFixedRowsFilterProxyModel:

Public Slots

void setEnabled (bool on)
void sourceModelReset ()
void toggleRow (const QModelIndex &index)
void setRowFixed (const QModelIndex &index, bool fixed)

Public Member Functions

 QFixedRowsFilterProxyModel (QObject *parent=0)
 ~QFixedRowsFilterProxyModel ()
void clear ()
bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const
QVariant headerData (int section, Qt::Orientation orientation, int role) const
bool isEnabled () const
bool isRowPinned (int row) const

Detailed Description

The QFixedRowsFilterProxyModel class implements a proxy model supporting fixed (pinned) rows.

Constructor & Destructor Documentation

QFixedRowsFilterProxyModel::QFixedRowsFilterProxyModel ( QObject *  parent = 0)

Constructs a fixed rows filter proxy model with the given parent.

QFixedRowsFilterProxyModel::~QFixedRowsFilterProxyModel ( )

Destroys the fixed rows proxy model.

Member Function Documentation

void QFixedRowsFilterProxyModel::clear ( )

Clears the current selection of fixed rows.

bool QFixedRowsFilterProxyModel::filterAcceptsRow ( int  source_row,
const QModelIndex &  source_parent 
) const


QVariant QFixedRowsFilterProxyModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const


bool QFixedRowsFilterProxyModel::isEnabled ( ) const

Returns true if the fixed rows mode is enabled. Otherwise false.

bool QFixedRowsFilterProxyModel::isRowPinned ( int  row) const

Returns true if the specified (source) model row is pinned (fixed).

void QFixedRowsFilterProxyModel::setEnabled ( bool  on)

If on is true fixed rows mode is enabled.

void QFixedRowsFilterProxyModel::setRowFixed ( const QModelIndex &  index,
bool  fixed 

If fixed is true the row specified by the given index is added to the list of fixed rows.

void QFixedRowsFilterProxyModel::sourceModelReset ( )
should not be public
slot sourceModelReset() should not be public
void QFixedRowsFilterProxyModel::toggleRow ( const QModelIndex &  index)

Toggles the state of the row specified by the given index.

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