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