25 #ifndef DIGIKAM_SEARCH_RESULT_MODEL_H
26 #define DIGIKAM_SEARCH_RESULT_MODEL_H
30 #include <QAbstractItemModel>
31 #include <QItemSelectionModel>
42 class SearchResultItem;
67 QPixmap*
const pixmap,
68 QUrl*
const url)
const;
77 const QVariant&
value,
80 int role = Qt::DisplayRole)
const override;
81 QModelIndex
index(
int row,
83 const QModelIndex&
parent = QModelIndex())
const override;
84 QModelIndex
parent(
const QModelIndex&
index)
const override;
85 int rowCount(
const QModelIndex&
parent = QModelIndex())
const override;
88 const QVariant&
value,
int role)
override;
91 int role)
const override;
92 Qt::ItemFlags
flags(
const QModelIndex&
index)
const override;
Definition: searchbackend.h:50
Definition: searchresultmodel.h:51
SearchBackend::SearchResult result
Definition: searchresultmodel.h:54
Definition: searchresultmodel.h:45
void setSelectionModel(QItemSelectionModel *const selectionModel)
Definition: searchresultmodel.cpp:297
SearchResultModel(QObject *const parent=nullptr)
Definition: searchresultmodel.cpp:72
bool getMarkerIcon(const QModelIndex &index, QPoint *const offset, QSize *const size, QPixmap *const pixmap, QUrl *const url) const
Definition: searchresultmodel.cpp:252
~SearchResultModel() override
Definition: searchresultmodel.cpp:78
QVariant headerData(int section, Qt::Orientation orientation, int role) const override
Definition: searchresultmodel.cpp:182
void clearResults()
Definition: searchresultmodel.cpp:302
QModelIndex parent(const QModelIndex &index) const override
Definition: searchresultmodel.cpp:153
Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: searchresultmodel.cpp:194
void removeRowsByIndexes(const QModelIndexList &rowsList)
Definition: searchresultmodel.cpp:309
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition: searchresultmodel.cpp:162
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
Definition: searchresultmodel.cpp:136
int columnCount(const QModelIndex &parent=QModelIndex()) const override
Definition: searchresultmodel.cpp:83
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Definition: searchresultmodel.cpp:99
bool setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role) override
Definition: searchresultmodel.cpp:172
void removeRowsBySelection(const QItemSelection &selection)
Definition: searchresultmodel.cpp:344
SearchResultItem resultItem(const QModelIndex &index) const
Definition: searchresultmodel.cpp:242
void addResults(const SearchBackend::SearchResult::List &results)
Definition: searchresultmodel.cpp:199
bool setData(const QModelIndex &index, const QVariant &value, int role) override
Definition: searchresultmodel.cpp:90
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: geolocationedit.cpp:97
@ Orientation
Definition: coredbfields.h:86