• Skip to content
  • Skip to link menu
KDE 4.7 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

akonadi

  • Akonadi
  • EntityOrderProxyModel
Public Member Functions | Protected Member Functions | Protected Attributes
Akonadi::EntityOrderProxyModel Class Reference

#include <entityorderproxymodel.h>

Inherits QSortFilterProxyModel.

List of all members.

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.

Author:
Stephen Kelly <stephen@kdab.com>
Since:
4.6

Constructor & Destructor Documentation

EntityOrderProxyModel::EntityOrderProxyModel ( QObject *  parent = 0)

Creates a new entity order proxy model.

Parameters:
parentThe parent object.

Definition at line 58 of file entityorderproxymodel.cpp.

EntityOrderProxyModel::~EntityOrderProxyModel ( ) [virtual]

Destroys the entity order proxy model.

Definition at line 64 of file entityorderproxymodel.cpp.


Member Function Documentation

virtual bool Akonadi::EntityOrderProxyModel::dropMimeData ( const QMimeData *  data,
Qt::DropAction  action,
int  row,
int  column,
const QModelIndex &  parent 
) [virtual]

bool EntityOrderProxyModel::lessThan ( const QModelIndex &  left,
const QModelIndex &  right 
) const [virtual]

Definition at line 77 of file entityorderproxymodel.cpp.

virtual QModelIndexList Akonadi::EntityOrderProxyModel::match ( const QModelIndex &  start,
int  role,
const QVariant &  value,
int  hits = 1,
Qt::MatchFlags  flags = Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap) 
) const [virtual]

void EntityOrderProxyModel::saveOrder ( )

Saves the order.

Definition at line 216 of file entityorderproxymodel.cpp.

void EntityOrderProxyModel::setOrderConfig ( KConfigGroup &  group)

Sets the config group that will be used for storing the order.

Definition at line 69 of file entityorderproxymodel.cpp.


The documentation for this class was generated from the following files:
  • entityorderproxymodel.h
  • entityorderproxymodel.cpp

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal