• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • Akonadi
  • EntityOrderProxyModel
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Akonadi::EntityOrderProxyModel Class Reference

#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.

Author
Stephen Kelly steph.nosp@m.en@k.nosp@m.dab.c.nosp@m.om
Since
4.6

Definition at line 44 of file entityorderproxymodel.h.

Constructor & Destructor Documentation

◆ EntityOrderProxyModel()

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::~EntityOrderProxyModel ( )
virtual

Destroys the entity order proxy model.

Definition at line 66 of file entityorderproxymodel.cpp.

Member Function Documentation

◆ clearOrder()

void EntityOrderProxyModel::clearOrder ( const QModelIndex & index)

Definition at line 292 of file entityorderproxymodel.cpp.

◆ clearTreeOrder()

void EntityOrderProxyModel::clearTreeOrder ( )

Definition at line 306 of file entityorderproxymodel.cpp.

◆ configString()

QString EntityOrderProxyModel::configString ( const QModelIndex & index) const
protectedvirtual

Definition at line 271 of file entityorderproxymodel.cpp.

◆ dropMimeData()

bool EntityOrderProxyModel::dropMimeData ( const QMimeData * data,
Qt::DropAction action,
int row,
int column,
const QModelIndex & parent )
virtual
Reimplemented from superclass.

Definition at line 111 of file entityorderproxymodel.cpp.

◆ lessThan()

bool EntityOrderProxyModel::lessThan ( const QModelIndex & left,
const QModelIndex & right ) const
virtual
Reimplemented from superclass.

Definition at line 79 of file entityorderproxymodel.cpp.

◆ match()

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
Reimplemented from superclass.

Definition at line 209 of file entityorderproxymodel.cpp.

◆ parentConfigString()

QString EntityOrderProxyModel::parentConfigString ( const QModelIndex & index) const
protectedvirtual

Definition at line 259 of file entityorderproxymodel.cpp.

◆ saveOrder()

void EntityOrderProxyModel::saveOrder ( )

Saves the order.

Definition at line 285 of file entityorderproxymodel.cpp.

◆ setOrderConfig()

void EntityOrderProxyModel::setOrderConfig ( KConfigGroup & group)

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

Definition at line 71 of file entityorderproxymodel.cpp.

Member Data Documentation

◆ d_ptr

EntityOrderProxyModelPrivate* const Akonadi::EntityOrderProxyModel::d_ptr
protected

Definition at line 91 of file entityorderproxymodel.h.


The documentation for this class was generated from the following files:
  • entityorderproxymodel.h
  • entityorderproxymodel.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

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

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal