KConfigGui Namespace Reference


KCONFIGGUI_EXPORT bool hasSessionConfig ()
KCONFIGGUI_EXPORT KConfigsessionConfig ()
KCONFIGGUI_EXPORT void setSessionConfig (const QString &id, const QString &key)

Detailed Description

Interface-related functions.

Function Documentation

◆ hasSessionConfig()

bool KConfigGui::hasSessionConfig ( )

Indicates if a session config has been created for that application (i.e. if sessionConfig() got called at least once)

true if a sessionConfig object was created, false otherwise

Definition at line 48 of file kconfiggui.cpp.

◆ sessionConfig()

KConfig * KConfigGui::sessionConfig ( )

Returns the current application session config object.

If Qt is built without session manager support, i.e. QT_NO_SESSIONMANAGER is defined, this by default will return nullptr, unless a custom config has been set via setSessionConfig.
A pointer to the application's instance specific KConfig object.
See also

Definition at line 22 of file kconfiggui.cpp.

◆ setSessionConfig()

void KConfigGui::setSessionConfig ( const QString & id,
const QString & key )

Replaces the current application session config object.

idnew session id
keynew session key

Definition at line 37 of file kconfiggui.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 12 2024 12:04:15 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.