Model-class for performing a name-based search of profiles. This is supposed to act as an underlying data-container for an user-interface view (QListView etc.)
More...
#include <profilesearchmodel.h>
Model-class for performing a name-based search of profiles. This is supposed to act as an underlying data-container for an user-interface view (QListView etc.)
◆ ProfileSearchModel()
ProfileSearchModel::ProfileSearchModel |
( |
Model & |
aModel | ) |
|
◆ ~ProfileSearchModel()
ProfileSearchModel::~ProfileSearchModel |
( |
| ) |
|
◆ data()
virtual QVariant ProfileSearchModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
re-implemented from QAbstractListModel
- Returns
- data to display in list
◆ error
◆ performSearch()
void ProfileSearchModel::performSearch |
( |
| ) |
|
|
private |
◆ rowCount()
virtual int ProfileSearchModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
re-implemented from QAbstractListModel
- Returns
- number of rows in list
◆ setSearchString()
void ProfileSearchModel::setSearchString |
( |
const QString & |
aSearch | ) |
|
◆ iModel
Model& ProfileSearchModel::iModel |
|
private |
◆ iProfiles
QList<QPair<Hash,QString> > ProfileSearchModel::iProfiles |
|
private |
◆ iSearchString
QString ProfileSearchModel::iSearchString |
|
private |
The documentation for this class was generated from the following file: