aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/GeneralDialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/dialog/GeneralDialog.h')
-rw-r--r--src/ui/dialog/GeneralDialog.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ui/dialog/GeneralDialog.h b/src/ui/dialog/GeneralDialog.h
index ca480c8b..41018105 100644
--- a/src/ui/dialog/GeneralDialog.h
+++ b/src/ui/dialog/GeneralDialog.h
@@ -45,6 +45,18 @@ class GeneralDialog : public QDialog {
*/
~GeneralDialog() override;
+ protected:
+ /**
+ *
+ */
+ void setPosCenterOfScreen();
+
+ /**
+ * @brief
+ *
+ */
+ void movePosition2CenterOfParent();
+
private slots:
/**
*
@@ -60,6 +72,8 @@ class GeneralDialog : public QDialog {
std::string name_; ///<
QPoint pos_; ///<
QSize size_; ///<
+ QPoint parent_pos_;
+ QSize parent_size_;
};
} // namespace GpgFrontend::UI