A proxy model for editor of database of modifications.
More...
#include <cModificationsProxyModel.h>
|
| 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...
|
|
|
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...
|
|
A proxy model for editor of database of modifications.
◆ cModificationsProxyModel()
cModificationsProxyModel::cModificationsProxyModel |
( |
QObject * |
parent = 0 | ) |
|
The constructor.
- Parameters
-
parent | pointer to a parent widget |
◆ filterAcceptsRow()
bool cModificationsProxyModel::filterAcceptsRow |
( |
int |
sourceRow, |
|
|
const QModelIndex & |
sourceParent |
|
) |
| const |
|
protected |
Reimplementation of filterAcceptsRow.
- Parameters
-
sourceRow | int |
sourceParent | QModelIndex |
- Return values
-
◆ initialize()
void cModificationsProxyModel::initialize |
( |
QComboBox * |
rowsfilteroperator, |
|
|
QComboBox * |
rowsfiltercombobox1, |
|
|
QComboBox * |
rowsfiltercomparatorcombobox1, |
|
|
QLineEdit * |
rowsfilterline1, |
|
|
QComboBox * |
rowsfiltercombobox2, |
|
|
QComboBox * |
rowsfiltercomparatorcombobox2, |
|
|
QLineEdit * |
rowsfilterline2 |
|
) |
| |
Initialize the model.
- Parameters
-
rowsfilteroperator | reference to the combobox with operator selection |
rowsfiltercombobox1 | reference to the combobox with selection of columns |
rowsfiltercomparatorcombobox1 | reference to the combobox with selection of comparator |
rowsfilterline1 | reference to a text field |
rowsfiltercombobox2 | reference to the combobox with selection of columns |
rowsfiltercomparatorcombobox2 | reference to the combobox with selection of comparator |
rowsfilterline2 | reference to a text field |
◆ lessThan()
bool cModificationsProxyModel::lessThan |
( |
const QModelIndex & |
left, |
|
|
const QModelIndex & |
right |
|
) |
| const |
|
protected |
Reimplementation of lessThan.
- Parameters
-
left | QModelIndex |
right | QModelIndex |
- Return values
-
◆ setWholeWord()
void cModificationsProxyModel::setWholeWord |
( |
bool |
wholeword | ) |
|
Set whole word option.
- Parameters
-
wholeword | true if whole words are matched, false otherwise |
The documentation for this class was generated from the following files: