KDEUI
Go to the documentation of this file.
22 #ifndef KVIEWSTATEMAINTAINER_H
23 #define KVIEWSTATEMAINTAINER_H
27 #include <QtGui/QItemSelectionModel>
28 #include <QtGui/QAbstractItemView>
33 class KViewStateMaintainerBasePrivate;
45 void setView(QAbstractItemView *view);
46 QAbstractItemView *view()
const;
48 virtual void saveState() = 0;
49 virtual void restoreState() = 0;
56 KViewStateMaintainerBasePrivate *
const d_ptr;
58 Q_PRIVATE_SLOT( d_func(),
void _k_modelAboutToBeReset() )
59 Q_PRIVATE_SLOT( d_func(),
void _k_modelReset() )
75 template<
typename StateSaver>
78 typedef StateSaver StateRestorer;
89 saver.setView(
view());
98 StateRestorer *restorer =
new StateRestorer;
99 restorer->setView(
view());
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Mon Jul 15 2013 13:04:44 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.