diff options
author | Saturn&Eric <[email protected]> | 2024-01-31 13:13:53 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-01-31 13:13:53 +0000 |
commit | b79cb4ecb942b0c4fb8fe7955d1c6a777f13bef6 (patch) | |
tree | be0c854dbd2c64a980003e91fa843718346635d6 /src/ui/main_window/GeneralMainWindow.h | |
parent | Merge pull request #127 from saturneric/dev/2.1.1/main (diff) | |
parent | fix: copy qt5 dlls at qt5 build mode (diff) | |
download | GpgFrontend-b79cb4ecb942b0c4fb8fe7955d1c6a777f13bef6.tar.gz GpgFrontend-b79cb4ecb942b0c4fb8fe7955d1c6a777f13bef6.zip |
Merge pull request #128 from saturneric/dev/2.1.1/main
Develop 2.1.2.3
Diffstat (limited to '')
-rw-r--r-- | src/ui/main_window/GeneralMainWindow.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ui/main_window/GeneralMainWindow.h b/src/ui/main_window/GeneralMainWindow.h index e1ff31bb..70dad5f3 100644 --- a/src/ui/main_window/GeneralMainWindow.h +++ b/src/ui/main_window/GeneralMainWindow.h @@ -55,6 +55,17 @@ class GeneralMainWindow : public QMainWindow { */ void closeEvent(QCloseEvent* event) override; + /** + * + */ + void setPosCenterOfScreen(); + + /** + * @brief + * + */ + void movePosition2CenterOfParent(); + QSize icon_size_{}; ///< int font_size_{}; ///< Qt::ToolButtonStyle icon_style_; ///< @@ -70,9 +81,18 @@ class GeneralMainWindow : public QMainWindow { */ void slot_save_settings() noexcept; + /** + * @brief + * + */ + void update_rect_cache(); + private: QString name_; ///< QPoint pos_; ///< QSize size_; ///< + QRect rect_; + QRect screen_rect_; + QRect parent_rect_; }; } // namespace GpgFrontend::UI |