diff options
| author | Salanto <62221668+Salanto@users.noreply.github.com> | 2024-07-11 15:52:34 +0200 |
|---|---|---|
| committer | Salanto <62221668+Salanto@users.noreply.github.com> | 2024-07-11 15:52:34 +0200 |
| commit | d9aada29009c66c6d146d88b20ab43f967653566 (patch) | |
| tree | d3d93edb4d4ff93b3fda493f0e0e1a68bcdb3a78 /src/options.h | |
| parent | efd2571459924f40718130f7edd28a72a76b12d7 (diff) | |
Add Courtroom position restore
Diffstat (limited to 'src/options.h')
| -rw-r--r-- | src/options.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/options.h b/src/options.h index 4ccc3016..65501774 100644 --- a/src/options.h +++ b/src/options.h @@ -5,6 +5,8 @@ #include <QCoreApplication> #include <QSettings> +#include <QPoint> + class Options { public: @@ -269,6 +271,12 @@ public: // Theming Nonesense! QString getUIAsset(QString f_asset_name); + void setWindowPosition(QString widget, QPoint position); + std::optional<QPoint> windowPosition(QString widget); + + bool restoreWindowPositionEnabled() const; + void setRestoreWindowPositionEnabled(bool state); + private: /** * @brief QSettings object for config.ini @@ -280,6 +288,8 @@ private: */ QSettings favorite; + QSettings windows; + void migrateCallwords(); /** |
