QtPass 2.0.0
Developer documentation
Loading...
Searching...
No Matches
windowstatestore.h File Reference

WindowStateStore: saves and restores top-level window geometry through QtPassSettings, for the main window and every dialog. More...

#include <QString>
Include dependency graph for windowstatestore.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  WindowStateStore
 Persist and restore a top-level window's geometry, one way for the main window and every dialog.

Functions

auto WindowStateStore::restore (QWidget &window, const QString &key) -> bool
 Restore window's geometry saved under key.
void WindowStateStore::save (const QWidget &window, const QString &key)
 Save window's geometry under key.
void WindowStateStore::attach (QDialog &dialog, const QString &key)
 restore() now, save() whenever the dialog finishes.
void WindowStateStore::centreOnCursorScreen (QWidget &window)
 Move window so its frame is centred on the screen under the mouse pointer (the primary screen when there is none). No-op on Wayland.

Detailed Description

WindowStateStore: saves and restores top-level window geometry through QtPassSettings, for the main window and every dialog.

Definition in file windowstatestore.h.