Changeset View
Changeset View
Standalone View
Standalone View
src/core/models/entityorderproxymodel.h
Show All 16 Lines | 1 | /* | |||
---|---|---|---|---|---|
17 | along with this library; see the file COPYING.LIB. If not, write to the | 17 | along with this library; see the file COPYING.LIB. If not, write to the | ||
18 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | 18 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
19 | 02110-1301, USA. | 19 | 02110-1301, USA. | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | #ifndef AKONADI_ENTITYORDERPROXYMODEL_H | 22 | #ifndef AKONADI_ENTITYORDERPROXYMODEL_H | ||
23 | #define AKONADI_ENTITYORDERPROXYMODEL_H | 23 | #define AKONADI_ENTITYORDERPROXYMODEL_H | ||
24 | 24 | | |||
25 | #include <KRecursiveFilterProxyModel> | 25 | #include "akonadicore_export.h" | ||
26 | #include "collection.h" | 26 | #include "collection.h" | ||
27 | 27 | | |||
28 | #include "akonadicore_export.h" | 28 | #include <QSortFilterProxyModel> | ||
29 | 29 | | |||
30 | class KConfigGroup; | 30 | class KConfigGroup; | ||
31 | 31 | | |||
32 | namespace Akonadi | 32 | namespace Akonadi | ||
33 | { | 33 | { | ||
34 | class EntityOrderProxyModelPrivate; | 34 | class EntityOrderProxyModelPrivate; | ||
35 | 35 | | |||
36 | /** | 36 | /** | ||
37 | * @short A model that keeps the order of entities persistent. | 37 | * @short A model that keeps the order of entities persistent. | ||
38 | * | 38 | * | ||
39 | * This proxy maintains the order of entities in a tree. The user can re-order | 39 | * This proxy maintains the order of entities in a tree. The user can re-order | ||
40 | * items and the new order will be persisted restored on reset or restart. | 40 | * items and the new order will be persisted restored on reset or restart. | ||
41 | * | 41 | * | ||
42 | * @author Stephen Kelly <stephen@kdab.com> | 42 | * @author Stephen Kelly <stephen@kdab.com> | ||
43 | * @since 4.6 | 43 | * @since 4.6 | ||
44 | */ | 44 | */ | ||
45 | class AKONADICORE_EXPORT EntityOrderProxyModel : public KRecursiveFilterProxyModel | 45 | class AKONADICORE_EXPORT EntityOrderProxyModel : public QSortFilterProxyModel | ||
46 | { | 46 | { | ||
47 | Q_OBJECT | 47 | Q_OBJECT | ||
48 | 48 | | |||
49 | public: | 49 | public: | ||
50 | /** | 50 | /** | ||
51 | * Creates a new entity order proxy model. | 51 | * Creates a new entity order proxy model. | ||
52 | * | 52 | * | ||
53 | * @param parent The parent object. | 53 | * @param parent The parent object. | ||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |