A table proxy model.
More...
#include <cSummaryPeaksTableProxyModel.h>
|
| cSummaryPeaksTableProxyModel (QObject *parent=0) |
| The constructor. More...
|
|
void | initialize (eModeType mode, ePeakListFileFormat peaklistfileformat, bool generateisotopepattern, QComboBox *rowsfilteroperator, QComboBox *rowsfiltercombobox1, QComboBox *rowsfiltercomparatorcombobox1, QLineEdit *rowsfilterline1, QComboBox *rowsfiltercombobox2, QComboBox *rowsfiltercomparatorcombobox2, QLineEdit *rowsfilterline2) |
| Initialize the model. More...
|
|
void | setRegion (int xmin, int xmax, int ymin, int ymax) |
| Set the region for filtering. More...
|
|
void | setWholeWord (bool wholeword) |
| Set whole word option. More...
|
|
|
int | xmin |
| The minimum X coordinate.
|
|
int | xmax |
| The maximum X coordinate.
|
|
int | ymin |
| The minimum Y coordinate.
|
|
int | ymax |
| The maximum Y coordinate.
|
|
|
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...
|
|
◆ cSummaryPeaksTableProxyModel()
cSummaryPeaksTableProxyModel::cSummaryPeaksTableProxyModel |
( |
QObject * |
parent = 0 | ) |
|
The constructor.
- Parameters
-
parent | pointer to a parent widget |
◆ filterAcceptsRow()
bool cSummaryPeaksTableProxyModel::filterAcceptsRow |
( |
int |
sourceRow, |
|
|
const QModelIndex & |
sourceParent |
|
) |
| const |
|
protected |
Reimplementation of filterAcceptsRow.
- Parameters
-
sourceRow | int |
sourceParent | QModelIndex |
- Return values
-
◆ initialize()
void cSummaryPeaksTableProxyModel::initialize |
( |
eModeType |
mode, |
|
|
ePeakListFileFormat |
peaklistfileformat, |
|
|
bool |
generateisotopepattern, |
|
|
QComboBox * |
rowsfilteroperator, |
|
|
QComboBox * |
rowsfiltercombobox1, |
|
|
QComboBox * |
rowsfiltercomparatorcombobox1, |
|
|
QLineEdit * |
rowsfilterline1, |
|
|
QComboBox * |
rowsfiltercombobox2, |
|
|
QComboBox * |
rowsfiltercomparatorcombobox2, |
|
|
QLineEdit * |
rowsfilterline2 |
|
) |
| |
Initialize the model.
- Parameters
-
mode | program mode |
peaklistfileformat | peaklist format |
generateisotopepattern | true if full isotope patterns are generated; false otherwise |
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 cSummaryPeaksTableProxyModel::lessThan |
( |
const QModelIndex & |
left, |
|
|
const QModelIndex & |
right |
|
) |
| const |
|
protected |
Reimplementation of lessThan.
- Parameters
-
left | QModelIndex |
right | QModelIndex |
- Return values
-
◆ setRegion()
void cSummaryPeaksTableProxyModel::setRegion |
( |
int |
xmin, |
|
|
int |
xmax, |
|
|
int |
ymin, |
|
|
int |
ymax |
|
) |
| |
Set the region for filtering.
- Parameters
-
xmin | minimum x coordinate |
xmax | maximum x coordinate |
ymin | minimum y coordinate |
ymax | maximum y coordinate |
◆ setWholeWord()
void cSummaryPeaksTableProxyModel::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: