20 #ifndef PROFILESEARCHMODEL_H
21 #define PROFILESEARCHMODEL_H
23 #include <QAbstractListModel>
24 #include "../util/hash.h"
25 #include "../mcontroller.h"
44 virtual int rowCount(
const QModelIndex & parent = QModelIndex())
const ;
49 virtual QVariant
data(
const QModelIndex & index,
int role = Qt::DisplayRole)
const ;
52 const QString& aExplanation) ;
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
void setSearchString(const QString &aSearch)
ProfileSearchModel(Model &aModel)
Model & iModel
Definition: profilesearchmodel.h:56
CAErrorSituation
Definition: mcontroller.h:48
void error(MController::CAErrorSituation aError, const QString &aExplanation)
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
QString iSearchString
Definition: profilesearchmodel.h:58
M of the MVC pattern. Handles permanent storage.
Definition: model.h:47
Model-class for performing a name-based search of profiles. This is supposed to act as an underlying ...
Definition: profilesearchmodel.h:33
QList< QPair< Hash, QString > > iProfiles
Definition: profilesearchmodel.h:57