libkdepim
KPIM::UiStateSaver Namespace Reference
Functions | |
KDEPIM_EXPORT void | restoreState (QWidget *widget, const KConfigGroup &config) |
KDEPIM_EXPORT void | saveState (QWidget *widget, KConfigGroup &config) |
Detailed Description
Methods to save and restore the UI state of an application.
This namespace provides methods that automatically save and restore the state of various UI elements to/from a configuration group.
The following widgets are supported so far:
- Note
- The widgets need to have set an objectName, otherwise they are ignored on processing.
- Since
- 4.5
Function Documentation
void KPIM::UiStateSaver::restoreState | ( | QWidget * | widget, |
const KConfigGroup & | config | ||
) |
Restores the UI state of widget
and all its sub-widgets from config
.
- Parameters
-
widget The top-level widget which state should be restored. config The config gorup the settings should be read from.
Definition at line 116 of file uistatesaver.cpp.
void KPIM::UiStateSaver::saveState | ( | QWidget * | widget, |
KConfigGroup & | config | ||
) |
Saves the state of widget
and all its sub-widgets to config
.
- Parameters
-
widget The top-level widget which state should be saved. config The config group the settings should be written to.
Definition at line 111 of file uistatesaver.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.