KDEUI
KViewStateMaintainer< StateSaver > Class Template Reference
#include <kviewstatemaintainer.h>
Inheritance diagram for KViewStateMaintainer< StateSaver >:
Public Member Functions | |
KViewStateMaintainer (KConfigGroup configGroup, QObject *parent=0) | |
void | restoreState () |
void | saveState () |
Public Member Functions inherited from KViewStateMaintainerBase | |
KViewStateMaintainerBase (KConfigGroup configGroup, QObject *parent=0) | |
~KViewStateMaintainerBase () | |
QItemSelectionModel * | selectionModel () const |
void | setSelectionModel (QItemSelectionModel *selectionModel) |
void | setView (QAbstractItemView *view) |
QAbstractItemView * | view () const |
Additional Inherited Members | |
Protected Member Functions inherited from KViewStateMaintainerBase | |
KConfigGroup | configGroup () const |
Detailed Description
template<typename StateSaver>
class KViewStateMaintainer< StateSaver >
Encapsulates the maintenance of state between resets of QAbstractItemModel.
m_collectionViewStateMaintainer = new KViewStateMaintainer<Akonadi::ETMViewStateSaver>(KGlobal::config()->group("collectionView"));
m_collectionViewStateMaintainer->setView(m_collectionView);
m_collectionCheckStateMaintainer = new KViewStateMaintainer<Akonadi::ETMViewStateSaver>(KGlobal::config()->group("collectionCheckState"));
m_collectionCheckStateMaintainer->setSelectionModel(m_checkableProxy->selectionModel());
- See also
- KViewStateSaver
Definition at line 76 of file kviewstatemaintainer.h.
Constructor & Destructor Documentation
template<typename StateSaver >
|
inline |
Definition at line 80 of file kviewstatemaintainer.h.
Member Function Documentation
template<typename StateSaver >
|
inlinevirtual |
Implements KViewStateMaintainerBase.
Definition at line 96 of file kviewstatemaintainer.h.
template<typename StateSaver >
|
inlinevirtual |
Implements KViewStateMaintainerBase.
Definition at line 86 of file kviewstatemaintainer.h.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.