• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

libkdepim

  • KPIM
  • UiStateSaver
Functions
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:

  • QSplitter
  • QTabWidget
  • QTreeView
  • QComboBox
Note
The widgets need to have set an objectName, otherwise they are ignored on processing.
Author
Volker Krause vkrau.nosp@m.se@k.nosp@m.de.or.nosp@m.g
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
widgetThe top-level widget which state should be restored.
configThe 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
widgetThe top-level widget which state should be saved.
configThe 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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdepim

Skip menu "libkdepim"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



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