KConfig

kwindowconfig.h
1 /*
2  This file is part of the KDE libraries
3  SPDX-FileCopyrightText: 2012 Benjamin Port <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6 */
7 
8 #ifndef KWINDOWCONFIG_H
9 #define KWINDOWCONFIG_H
10 
11 #include <kconfiggroup.h>
12 #include <kconfiggui_export.h>
13 
14 class QWindow;
15 
19 namespace KWindowConfig
20 {
32 KCONFIGGUI_EXPORT void saveWindowSize(const QWindow *window, KConfigGroup &config, KConfigGroup::WriteConfigFlags options = KConfigGroup::Normal);
33 
57 KCONFIGGUI_EXPORT void restoreWindowSize(QWindow *window, const KConfigGroup &config);
58 
71 KCONFIGGUI_EXPORT void saveWindowPosition(const QWindow *window, KConfigGroup &config, KConfigGroup::WriteConfigFlags options = KConfigGroup::Normal);
72 
84 KCONFIGGUI_EXPORT void restoreWindowPosition(QWindow *window, const KConfigGroup &config);
85 }
86 
87 #endif // KWINDOWCONFIG_H
KCONFIGGUI_EXPORT void restoreWindowPosition(QWindow *window, const KConfigGroup &config)
Restores the window&#39;s position from the configuration.
Save the entry to the application specific config file without a locale tag.
Definition: kconfigbase.h:57
KCONFIGGUI_EXPORT void saveWindowPosition(const QWindow *window, KConfigGroup &config, KConfigGroup::WriteConfigFlags options=KConfigGroup::Normal)
Saves the window&#39;s position either to the global or application config file.
A class for one specific group in a KConfig object.
Definition: kconfiggroup.h:38
KCONFIGGUI_EXPORT void restoreWindowSize(QWindow *window, const KConfigGroup &config)
Restores the dialog&#39;s size from the configuration according to the screen size.
Save and load window sizes into a config.
Definition: kwindowconfig.h:19
KCONFIGGUI_EXPORT void saveWindowSize(const QWindow *window, KConfigGroup &config, KConfigGroup::WriteConfigFlags options=KConfigGroup::Normal)
Saves the window&#39;s size dependent on the screen dimension either to the global or application config ...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Aug 5 2020 22:46:15 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.