akonadi
#include <entityorderproxymodel.h>
Inherits QSortFilterProxyModel.
Public Member Functions | |
EntityOrderProxyModel (QObject *parent=0) | |
virtual | ~EntityOrderProxyModel () |
void | clearOrder (const QModelIndex &index) |
void | clearTreeOrder () |
virtual bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
virtual bool | lessThan (const QModelIndex &left, const QModelIndex &right) const |
virtual QModelIndexList | match (const QModelIndex &start, int role, const QVariant &value, int hits=1, Qt::MatchFlags flags=Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const |
void | saveOrder () |
void | setOrderConfig (KConfigGroup &group) |
Protected Member Functions | |
virtual QString | configString (const QModelIndex &index) const |
virtual QString | parentConfigString (const QModelIndex &index) const |
Protected Attributes | |
EntityOrderProxyModelPrivate *const | d_ptr |
Detailed Description
A model that keeps the order of entities persistent.
This proxy maintains the order of entities in a tree. The user can re-order items and the new order will be persisted restored on reset or restart.
- Since:
- 4.6
Definition at line 44 of file entityorderproxymodel.h.
Constructor & Destructor Documentation
EntityOrderProxyModel::EntityOrderProxyModel | ( | QObject * | parent = 0 | ) |
Creates a new entity order proxy model.
- Parameters:
-
parent The parent object.
Definition at line 58 of file entityorderproxymodel.cpp.
EntityOrderProxyModel::~EntityOrderProxyModel | ( | ) | [virtual] |
Destroys the entity order proxy model.
Definition at line 65 of file entityorderproxymodel.cpp.
Member Function Documentation
bool EntityOrderProxyModel::dropMimeData | ( | const QMimeData * | data, |
Qt::DropAction | action, | ||
int | row, | ||
int | column, | ||
const QModelIndex & | parent | ||
) | [virtual] |
Definition at line 107 of file entityorderproxymodel.cpp.
bool EntityOrderProxyModel::lessThan | ( | const QModelIndex & | left, |
const QModelIndex & | right | ||
) | const [virtual] |
Definition at line 78 of file entityorderproxymodel.cpp.
QModelIndexList EntityOrderProxyModel::match | ( | const QModelIndex & | start, |
int | role, | ||
const QVariant & | value, | ||
int | hits = 1 , |
||
Qt::MatchFlags | flags = Qt::MatchFlags( Qt::MatchStartsWith | Qt::MatchWrap ) |
||
) | const [virtual] |
Definition at line 200 of file entityorderproxymodel.cpp.
void EntityOrderProxyModel::saveOrder | ( | ) |
Saves the order.
Definition at line 274 of file entityorderproxymodel.cpp.
void EntityOrderProxyModel::setOrderConfig | ( | KConfigGroup & | group | ) |
Sets the config group
that will be used for storing the order.
Definition at line 70 of file entityorderproxymodel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 22:18:40 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.