aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/GeneralDialog.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-11-26 11:19:19 +0000
committerSaturneric <[email protected]>2022-11-26 11:19:19 +0000
commitcb299a2b9c18bf80879045f8e99489d7146d9eaf (patch)
tree87bf2161c1a2b9e9a97eb7ce6ee0cb63d6ff9ef2 /src/ui/dialog/GeneralDialog.h
parentfeat(doc): update contract info (diff)
downloadGpgFrontend-cb299a2b9c18bf80879045f8e99489d7146d9eaf.tar.gz
GpgFrontend-cb299a2b9c18bf80879045f8e99489d7146d9eaf.zip
fix: record the actural size
1. record the actural size of dialogs and main windows when they are closing
Diffstat (limited to '')
-rw-r--r--src/ui/dialog/GeneralDialog.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/dialog/GeneralDialog.h b/src/ui/dialog/GeneralDialog.h
index ed6fdb1b..41018105 100644
--- a/src/ui/dialog/GeneralDialog.h
+++ b/src/ui/dialog/GeneralDialog.h
@@ -45,11 +45,18 @@ class GeneralDialog : public QDialog {
*/
~GeneralDialog() override;
+ protected:
/**
*
*/
void setPosCenterOfScreen();
+ /**
+ * @brief
+ *
+ */
+ void movePosition2CenterOfParent();
+
private slots:
/**
*
@@ -65,6 +72,8 @@ class GeneralDialog : public QDialog {
std::string name_; ///<
QPoint pos_; ///<
QSize size_; ///<
+ QPoint parent_pos_;
+ QSize parent_size_;
};
} // namespace GpgFrontend::UI