KWidgetsAddons
kviewstateserializer.h
247 virtual QModelIndex indexFromConfigString(const QAbstractItemModel *model, const QString &key) const = 0;
QStringList selectionKeys() const
Returns a QStringList describing the selection in the selectionModel.
Definition kviewstateserializer.cpp:326
QPair< int, int > scrollState() const
Returns the vertical and horizontal scroll of the QAbstractScrollArea.
Definition kviewstateserializer.cpp:343
virtual QString indexToConfigString(const QModelIndex &index) const =0
Reimplement to return a unique string for the index.
void restoreSelection(const QStringList &indexStrings)
Select the indexes described by indexStrings.
Definition kviewstateserializer.cpp:287
QString currentIndexKey() const
Returns a QString describing the current index in the selection model.
Definition kviewstateserializer.cpp:307
void restoreCurrentItem(const QString &indexString)
Make the index described by indexString the currentIndex in the selectionModel.
Definition kviewstateserializer.cpp:202
void restoreExpanded(const QStringList &indexStrings)
Expand the indexes described by indexStrings in the QTreeView.
Definition kviewstateserializer.cpp:236
void restoreScrollState(int verticalScoll, int horizontalScroll)
Restores the scroll state of the QAbstractScrollArea to the verticalScoll and horizontalScroll.
Definition kviewstateserializer.cpp:255
QStringList expansionKeys() const
Returns a QStringList representing the expanded indexes in the QTreeView.
Definition kviewstateserializer.cpp:316
QAbstractItemView * view() const
The view whose state is persisted.
Definition kviewstateserializer.cpp:120
QItemSelectionModel * selectionModel() const
The QItemSelectionModel whose state is persisted.
Definition kviewstateserializer.cpp:126
virtual QModelIndex indexFromConfigString(const QAbstractItemModel *model, const QString &key) const =0
Reimplement to return an index in the model described by the unique key key.
void setSelectionModel(QItemSelectionModel *selectionModel)
Sets the QItemSelectionModel whose state is persisted.
Definition kviewstateserializer.cpp:132
void setView(QAbstractItemView *view)
Sets the view whose state is persisted.
Definition kviewstateserializer.cpp:106
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:52:02 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:52:02 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.