summaryrefslogtreecommitdiffstats
path: root/copydialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'copydialog.cpp')
-rw-r--r--copydialog.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/copydialog.cpp b/copydialog.cpp
index f6da343..7c7c757 100644
--- a/copydialog.cpp
+++ b/copydialog.cpp
@@ -3,6 +3,8 @@
#include <QPushButton>
#include <QGroupBox>
#include <QLabel>
+#include <QSettings>
+#include <QCloseEvent>
#include "copydialog.h"
@@ -50,4 +52,16 @@ CopyDialog::CopyDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f)
mainLayout->addWidget(resultGB, Qt::AlignVCenter);
mainLayout->addLayout(buttonL, Qt::AlignBottom);
setLayout(mainLayout);
+ readSettings();
+}
+
+void CopyDialog::readSettings(){
+ QSettings s;
+ resize(s.value("copydlgsize").toSize());
+}
+
+void CopyDialog::closeEvent(QCloseEvent *e){
+ QSettings s;
+ s.setValue("copydlgsize", size());
+ e->accept();
}