aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/GeneralMainWindow.h
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2024-01-31 13:13:53 +0000
committerGitHub <[email protected]>2024-01-31 13:13:53 +0000
commitb79cb4ecb942b0c4fb8fe7955d1c6a777f13bef6 (patch)
treebe0c854dbd2c64a980003e91fa843718346635d6 /src/ui/main_window/GeneralMainWindow.h
parentMerge pull request #127 from saturneric/dev/2.1.1/main (diff)
parentfix: copy qt5 dlls at qt5 build mode (diff)
downloadGpgFrontend-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.h20
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