CycloBranch
cModificationsProxyModel Class Reference

A proxy model for editor of database of modifications. More...

#include <cModificationsProxyModel.h>

Inheritance diagram for cModificationsProxyModel:

Public Member Functions

 cModificationsProxyModel (QObject *parent=0)
 The constructor. More...
 
void initialize (QComboBox *rowsfilteroperator, QComboBox *rowsfiltercombobox1, QComboBox *rowsfiltercomparatorcombobox1, QLineEdit *rowsfilterline1, QComboBox *rowsfiltercombobox2, QComboBox *rowsfiltercomparatorcombobox2, QLineEdit *rowsfilterline2)
 Initialize the model. More...
 
void setWholeWord (bool wholeword)
 Set whole word option. More...
 

Protected Member Functions

bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const Q_DECL_OVERRIDE
 Reimplementation of filterAcceptsRow. More...
 
bool lessThan (const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE
 Reimplementation of lessThan. More...
 

Detailed Description

A proxy model for editor of database of modifications.

Constructor & Destructor Documentation

◆ cModificationsProxyModel()

cModificationsProxyModel::cModificationsProxyModel ( QObject *  parent = 0)

The constructor.

Parameters
parentpointer to a parent widget

Member Function Documentation

◆ filterAcceptsRow()

bool cModificationsProxyModel::filterAcceptsRow ( int  sourceRow,
const QModelIndex &  sourceParent 
) const
protected

Reimplementation of filterAcceptsRow.

Parameters
sourceRowint
sourceParentQModelIndex
Return values
boolbool

◆ initialize()

void cModificationsProxyModel::initialize ( QComboBox *  rowsfilteroperator,
QComboBox *  rowsfiltercombobox1,
QComboBox *  rowsfiltercomparatorcombobox1,
QLineEdit *  rowsfilterline1,
QComboBox *  rowsfiltercombobox2,
QComboBox *  rowsfiltercomparatorcombobox2,
QLineEdit *  rowsfilterline2 
)

Initialize the model.

Parameters
rowsfilteroperatorreference to the combobox with operator selection
rowsfiltercombobox1reference to the combobox with selection of columns
rowsfiltercomparatorcombobox1reference to the combobox with selection of comparator
rowsfilterline1reference to a text field
rowsfiltercombobox2reference to the combobox with selection of columns
rowsfiltercomparatorcombobox2reference to the combobox with selection of comparator
rowsfilterline2reference to a text field

◆ lessThan()

bool cModificationsProxyModel::lessThan ( const QModelIndex &  left,
const QModelIndex &  right 
) const
protected

Reimplementation of lessThan.

Parameters
leftQModelIndex
rightQModelIndex
Return values
boolbool

◆ setWholeWord()

void cModificationsProxyModel::setWholeWord ( bool  wholeword)

Set whole word option.

Parameters
wholewordtrue if whole words are matched, false otherwise

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