KConfig
kwindowconfig.cpp
61 returnString = QStringLiteral("%1x%2 screen: %3").arg(QString::number(screenGeometry.width()), QString::number(screenGeometry.height()), key);
101void KWindowConfig::saveWindowSize(const QWindow *window, KConfigGroup &config, KConfigGroup::WriteConfigFlags options)
117 if (!sizeValid || (defaultSize != sizeToSave || defaultScreenSize != screen->geometry().size())) {
148 const QString screenName = config.readEntry(windowScreenPositionString(), window->screen()->name());
152 const bool isMaximized = config.readEntry(configFileString(QStringLiteral("Window-Maximized")), false);
172void KWindowConfig::saveWindowPosition(const QWindow *window, KConfigGroup &config, KConfigGroup::WriteConfigFlags options)
210 const bool isMaximized = config.readEntry(configFileString(QStringLiteral("Window-Maximized")), false);
230void KWindowConfig::restoreWindowScreenPosition(QWindow *window, const QScreen *screen, const KConfigGroup &config)
T readEntry(const QString &key, const T &aDefault) const
Reads the value of an entry specified by pKey in the current group.
Definition kconfiggroup.h:223
bool hasDefault(const QString &key) const
Whether a default is specified for an entry in either the system wide configuration file or the globa...
Definition kconfiggroup.cpp:1114
bool hasKey(const QString &key) const
Checks whether the key has an entry in this group.
Definition kconfiggroup.cpp:1131
void revertToDefault(const QString &key, WriteConfigFlags pFlag=WriteConfigFlags())
Reverts an entry to the default settings.
Definition kconfiggroup.cpp:1100
void writeEntry(const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal)
Writes a value to the configuration object.
Definition kconfiggroup.cpp:1014
void deleteEntry(const QString &pKey, WriteConfigFlags pFlags=Normal)
Deletes the entry specified by pKey in the current group.
Definition kconfiggroup.cpp:1087
QWidget * window(QObject *job)
KCONFIGGUI_EXPORT void saveWindowSize(const QWindow *window, KConfigGroup &config, KConfigGroup::WriteConfigFlags options=KConfigGroup::Normal)
Saves the window's size dependent on the screen dimension either to the global or application config ...
Definition kwindowconfig.cpp:101
KCONFIGGUI_EXPORT bool hasSavedWindowSize(KConfigGroup &config)
Returns whether a given KConfig group has any saved window size data.
Definition kwindowconfig.cpp:137
KCONFIGGUI_EXPORT void restoreWindowScreenPosition(QWindow *window, const QScreen *screen, const KConfigGroup &config)
Restores the window's position on provided screen from the configuration.
Definition kwindowconfig.cpp:230
KCONFIGGUI_EXPORT bool hasSavedWindowPosition(KConfigGroup &config)
Returns whether a given KConfig group has any saved window position data.
Definition kwindowconfig.cpp:191
KCONFIGGUI_EXPORT void saveWindowPosition(const QWindow *window, KConfigGroup &config, KConfigGroup::WriteConfigFlags options=KConfigGroup::Normal)
Saves the window's position either to the global or application config file.
Definition kwindowconfig.cpp:172
KCONFIGGUI_EXPORT void restoreWindowSize(QWindow *window, const KConfigGroup &config)
Restores the dialog's size from the configuration according to the screen size.
Definition kwindowconfig.cpp:142
KCONFIGGUI_EXPORT void restoreWindowPosition(QWindow *window, const KConfigGroup &config)
Restores the window's screen position from the configuration and calls restoreWindowScreenPosition.
Definition kwindowconfig.cpp:202
platformName
primaryScreen
QList< QScreen * > screens()
void reserve(qsizetype size)
QVariant property(const char *name) const const
bool setProperty(const char *name, QVariant &&value)
int height() const const
int width() const const
geometry
name
QList< QScreen * > virtualSiblings() const const
int height() const const
bool isValid() const const
int width() const const
QString arg(Args &&... args) const const
qsizetype length() const const
QString number(double n, char format, int precision)
QString join(QChar separator) const const
void sort(Qt::CaseSensitivity cs)
WindowMaximized
QSize toSize() const const
QScreen * screen() const const
void setScreen(QScreen *screen)
void setWindowState(Qt::WindowStates windowState)
size
Qt::WindowStates windowState() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.