diff options
author | Arno <arno@disconnect.de> | 2018-10-13 03:26:10 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-10-13 03:26:10 +0200 |
commit | 6fbf339aeff0b7b8ffaafbb319a2eae772e21a46 (patch) | |
tree | 8b79a20ed5eb8ac3a5bb33ab9307c6f5d5da7e89 /copydialog.cpp | |
parent | 423670fc310b8c853c471a3c272db13e38edd8db (diff) | |
download | BeetPlayer-6fbf339aeff0b7b8ffaafbb319a2eae772e21a46.tar.gz BeetPlayer-6fbf339aeff0b7b8ffaafbb319a2eae772e21a46.tar.bz2 BeetPlayer-6fbf339aeff0b7b8ffaafbb319a2eae772e21a46.zip |
Remeber size of CopyDialog
Diffstat (limited to 'copydialog.cpp')
-rw-r--r-- | copydialog.cpp | 14 |
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(); } |