aboutsummaryrefslogtreecommitdiff
path: root/src/gui/kwindowconfig.h
diff options
context:
space:
mode:
authorNate Graham <nate@kde.org>2020-08-20 12:04:34 -0600
committerNate Graham <nate@kde.org>2020-08-25 15:39:23 +0000
commit803b9f16e0b9133ddfef40dd16a368c39fa1b0a6 (patch)
tree0166968082ee609218f7589dd67cdb84e9c53e6b /src/gui/kwindowconfig.h
parenta3d55917068c99fc343ad4163be2ed52d25fc691 (diff)
downloadkconfig-803b9f16e0b9133ddfef40dd16a368c39fa1b0a6.tar.gz
kconfig-803b9f16e0b9133ddfef40dd16a368c39fa1b0a6.tar.bz2
Extract code to get list of connected screens into a re-usable function
Right now it's duplicated twice, and once we add per-screen-arrangement memory for window sizes as well, it will be duplicated four times unless we put it into a function.
Diffstat (limited to 'src/gui/kwindowconfig.h')
-rw-r--r--src/gui/kwindowconfig.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/kwindowconfig.h b/src/gui/kwindowconfig.h
index 04af27d1..0d36fa48 100644
--- a/src/gui/kwindowconfig.h
+++ b/src/gui/kwindowconfig.h
@@ -82,6 +82,12 @@ KCONFIGGUI_EXPORT void saveWindowPosition(const QWindow *window, KConfigGroup &c
* @since 5.74
*/
KCONFIGGUI_EXPORT void restoreWindowPosition(QWindow *window, const KConfigGroup &config);
-}
+/**
+ * Convenience function to get a space-separated list of all connected screens.
+ *
+ * @since 5.75
+ */
+QString allConnectedScreens();
+}
#endif // KWINDOWCONFIG_H