aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/GeneralMainWindow.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-12-01 00:21:46 +0000
committersaturneric <[email protected]>2024-12-01 00:21:46 +0000
commiteeec34f66fac8ecb350cd8d683a5dd167c91e706 (patch)
tree61da717af5370e37963da1e21f9daae0dc426b00 /src/ui/main_window/GeneralMainWindow.h
parentfix: solve link errors on windows (diff)
parentfeat: improve windows release structure at nightly build (diff)
downloadGpgFrontend-eeec34f66fac8ecb350cd8d683a5dd167c91e706.tar.gz
GpgFrontend-eeec34f66fac8ecb350cd8d683a5dd167c91e706.zip
Merge branch 'dev/2.1.5/mingw' into develop
Diffstat (limited to '')
-rw-r--r--src/ui/main_window/GeneralMainWindow.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/ui/main_window/GeneralMainWindow.h b/src/ui/main_window/GeneralMainWindow.h
index 7ef1234f..d7d28930 100644
--- a/src/ui/main_window/GeneralMainWindow.h
+++ b/src/ui/main_window/GeneralMainWindow.h
@@ -41,13 +41,20 @@ class GeneralMainWindow : public QMainWindow {
*
* @param name
*/
- explicit GeneralMainWindow(QString name, QWidget* parent = nullptr);
+ explicit GeneralMainWindow(QString id, QWidget* parent = nullptr);
/**
*
*/
~GeneralMainWindow() override;
+ /**
+ * @brief Get the Id object
+ *
+ * @return QString
+ */
+ [[nodiscard]] auto GetId() const -> QString;
+
protected:
/**
*
@@ -66,7 +73,7 @@ class GeneralMainWindow : public QMainWindow {
*/
void movePosition2CenterOfParent();
- QSize icon_size_{}; ///<
+ QSize icon_size_; ///<
int font_size_{}; ///<
Qt::ToolButtonStyle icon_style_; ///<
@@ -88,9 +95,9 @@ class GeneralMainWindow : public QMainWindow {
void update_rect_cache();
private:
- QString name_; ///<
- QPoint pos_; ///<
- QSize size_; ///<
+ QString id_; ///<
+ QPoint pos_; ///<
+ QSize size_; ///<
QRect rect_;
QRect screen_rect_;
QRect parent_rect_;