aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/newdialog.cpp
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-05 17:37:24 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-05 17:37:24 +0100
commit1a3fbaf22975b1f130998841adb3109b8a543513 (patch)
tree109aa71f6594d3b0c8aa33adbe264be9f41034df /qtmips_gui/newdialog.cpp
parentcfe13fdc741ae02b473cb30b36f94e3b01f1dad2 (diff)
downloadqtmips-1a3fbaf22975b1f130998841adb3109b8a543513.tar.gz
qtmips-1a3fbaf22975b1f130998841adb3109b8a543513.tar.bz2
qtmips-1a3fbaf22975b1f130998841adb3109b8a543513.zip
Make slots in NewDialog private
Diffstat (limited to 'qtmips_gui/newdialog.cpp')
-rw-r--r--qtmips_gui/newdialog.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/qtmips_gui/newdialog.cpp b/qtmips_gui/newdialog.cpp
index cc23e2f..d17d0c4 100644
--- a/qtmips_gui/newdialog.cpp
+++ b/qtmips_gui/newdialog.cpp
@@ -34,6 +34,14 @@ NewDialog::~NewDialog() {
// Settings is freed by parent
}
+void NewDialog::closeEvent(QCloseEvent *) {
+ load_settings(); // Reset from settings
+ // Close main window if not already configured
+ MainWindow *prnt = (MainWindow*)parent();
+ if (!prnt->configured())
+ prnt->close();
+}
+
void NewDialog::cancel() {
this->close();
}
@@ -88,14 +96,6 @@ void NewDialog::set_custom_preset() {
ui->preset_custom->setChecked(true);
}
-void NewDialog::closeEvent(QCloseEvent *) {
- load_settings(); // Reset from settings
- // Close main window if not already configured
- MainWindow *prnt = (MainWindow*)parent();
- if (!prnt->configured())
- prnt->close();
-}
-
#define LOAD_BUTTON(NAME, DEF) ui->NAME->setChecked(settings->value(#NAME, DEF).toBool())
#define LOAD_LINE(NAME, DEF) ui->NAME->setText(settings->value(#NAME, DEF).toString())