24 #ifndef DIGIKAM_TAG_MNGR_LIST_MODEL_H
25 #define DIGIKAM_TAG_MNGR_LIST_MODEL_H
29 #include <QAbstractItemModel>
30 #include <QModelIndex>
66 QVariant
data(
const QModelIndex&
index,
int role)
const override;
68 Qt::ItemFlags
flags(
const QModelIndex&
index)
const override;
72 QModelIndex
index(
int row,
int column,
const QModelIndex&
parent = QModelIndex())
const override;
74 QModelIndex
parent(
const QModelIndex&
index)
const override;
76 int rowCount(
const QModelIndex&
parent = QModelIndex())
const override;
88 QMimeData*
mimeData(
const QModelIndexList& indexes)
const override;
90 int column,
const QModelIndex&
parent)
override;
Definition: tagmngrlistitem.h:36
Definition: tagmngrlistmodel.h:39
bool setData(const QModelIndex &index, const QVariant &value, int role) override
Definition: tagmngrlistmodel.cpp:143
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
Definition: tagmngrlistmodel.cpp:292
QModelIndex parent(const QModelIndex &index) const override
Definition: tagmngrlistmodel.cpp:332
QList< ListItem * > allItems() const
allItems - return all items from List, usually to be saved in KConfig
Definition: tagmngrlistmodel.cpp:100
Qt::DropActions supportedDropActions() const override
Definition: tagmngrlistmodel.cpp:130
TagMngrListModel(QObject *const parent=nullptr)
Definition: tagmngrlistmodel.cpp:59
ListItem * addItem(QList< QVariant > values)
addItem - add new item to list
Definition: tagmngrlistmodel.cpp:74
Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: tagmngrlistmodel.cpp:277
~TagMngrListModel() override
Definition: tagmngrlistmodel.cpp:68
QStringList mimeTypes() const override
Definition: tagmngrlistmodel.cpp:135
QMimeData * mimeData(const QModelIndexList &indexes) const override
Definition: tagmngrlistmodel.cpp:161
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition: tagmngrlistmodel.cpp:350
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
Definition: tagmngrlistmodel.cpp:302
int columnCount(const QModelIndex &parent=QModelIndex()) const override
Definition: tagmngrlistmodel.cpp:123
QVariant data(const QModelIndex &index, int role) const override
Definition: tagmngrlistmodel.cpp:255
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override
Definition: tagmngrlistmodel.cpp:181
void deleteItem(ListItem *const item)
Definition: tagmngrlistmodel.cpp:110
QList< int > getDragNewSelection() const
Definition: tagmngrlistmodel.cpp:105
qulonglong value
Definition: itemviewutilities.cpp:592
@ Orientation
Definition: coredbfields.h:86
Definition: datefolderview.cpp:43
DropAction
Definition: itemdragdrop.cpp:60