7#ifndef _CBRICKSDATABASEPROXYMODEL_H
8#define _CBRICKSDATABASEPROXYMODEL_H
13#include <QSortFilterProxyModel>
27 QComboBox* filteroperator;
28 QComboBox* filtercombobox1;
29 QComboBox* filtercomparatorcombobox1;
30 QLineEdit* filterline1;
31 QComboBox* filtercombobox2;
32 QComboBox* filtercomparatorcombobox2;
33 QLineEdit* filterline2;
56 void initialize(QComboBox* rowsfilteroperator, QComboBox* rowsfiltercombobox1, QComboBox* rowsfiltercomparatorcombobox1, QLineEdit* rowsfilterline1, QComboBox* rowsfiltercombobox2, QComboBox* rowsfiltercomparatorcombobox2, QLineEdit* rowsfilterline2);
75 bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent)
const Q_DECL_OVERRIDE;
84 bool lessThan(
const QModelIndex &left,
const QModelIndex &right)
const Q_DECL_OVERRIDE;
A proxy model for editor of database of building blocks.
Definition: cBricksDatabaseProxyModel.h:21
cBricksDatabaseProxyModel(QObject *parent=0)
The constructor.
Definition: cBricksDatabaseProxyModel.cpp:4
bool lessThan(const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE
Reimplementation of lessThan.
Definition: cBricksDatabaseProxyModel.cpp:82
void setWholeWord(bool wholeword)
Set whole word option.
Definition: cBricksDatabaseProxyModel.cpp:20
void initialize(QComboBox *rowsfilteroperator, QComboBox *rowsfiltercombobox1, QComboBox *rowsfiltercomparatorcombobox1, QLineEdit *rowsfilterline1, QComboBox *rowsfiltercombobox2, QComboBox *rowsfiltercomparatorcombobox2, QLineEdit *rowsfilterline2)
Initialize the model.
Definition: cBricksDatabaseProxyModel.cpp:9
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const Q_DECL_OVERRIDE
Reimplementation of filterAcceptsRow.
Definition: cBricksDatabaseProxyModel.cpp:25
Auxiliary funtions and structures.