akonadi
entityorderproxymodel.cpp
111 bool EntityOrderProxyModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
160 if (!containsMove && list.first().data(EntityTreeModel::ParentCollectionRole).value<Collection>().id() != parentCol.id()) {
171 if (!containsMove && idx.data(EntityTreeModel::ParentCollectionRole).value<Collection>().id() != parentCol.id()) {
209 QModelIndexList EntityOrderProxyModel::match(const QModelIndex &start, int role, const QVariant &value, int hits, Qt::MatchFlags flags) const
217 foreach (const QModelIndex &idx, sourceModel()->match(mapToSource(start), role, value, hits, flags)) {
qlonglong toLongLong(bool *ok) const
virtual bool lessThan(const QModelIndex &left, const QModelIndex &right) const
virtual bool hasFormat(const QString &mimeType) const
virtual QModelIndexList match(const QModelIndex &start, int role, const QVariant &value, int hits, QFlags< Qt::MatchFlag > flags) const
const T & at(int i) const
void removeAt(int i)
typedef MatchFlags
T value() const
void setOrderConfig(KConfigGroup &group)
Sets the config group that will be used for storing the order.
Definition: entityorderproxymodel.cpp:71
virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
Definition: entityorderproxymodel.cpp:111
virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
int size() const
bool isValid() const
QString number(int n, int base)
void append(const T &value)
A model that keeps the order of entities persistent.
Definition: entityorderproxymodel.h:44
virtual QModelIndexList match(const QModelIndex &start, int role, const QVariant &value, int hits=1, Qt::MatchFlags flags=Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const
Definition: entityorderproxymodel.cpp:209
bool isEmpty() const
bool isEmpty() const
The parent collection of the entity.
Definition: entitytreemodel.h:341
static QModelIndex modelIndexForCollection(const QAbstractItemModel *model, const Collection &collection)
Returns a QModelIndex in model which points to collection.
Definition: entitytreemodel.cpp:1238
QVariant data(int role) const
void insert(int i, const T &value)
virtual bool lessThan(const QModelIndex &left, const QModelIndex &right) const
Definition: entityorderproxymodel.cpp:79
QString fromLatin1(const char *str, int size)
virtual ~EntityOrderProxyModel()
Destroys the entity order proxy model.
Definition: entityorderproxymodel.cpp:66
int indexOf(const QRegExp &rx, int from) const
static QModelIndexList modelIndexesForItem(const QAbstractItemModel *model, const Item &item)
Returns a QModelIndex in model which points to item.
Definition: entitytreemodel.cpp:1247
static Collection fromUrl(const KUrl &url)
Creates a collection from the given url.
Definition: collection.cpp:172
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.