summaryrefslogtreecommitdiffstats
path: root/src/fbsplash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fbsplash.cpp')
-rw-r--r--src/fbsplash.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/fbsplash.cpp b/src/fbsplash.cpp
index 314a597..e9592f9 100644
--- a/src/fbsplash.cpp
+++ b/src/fbsplash.cpp
@@ -2,11 +2,8 @@
#include "fbsplash.h"
#include "ui_fbsplash.h"
-
fbsplash::fbsplash(QWidget *parent) :
- QWidget(parent), ui(new Ui::fbsplash){
-
- qDebug() << "fbsplash init";
+ QWidget(parent), ui(new Ui::fbsplash) {
ui->setupUi(this);
@@ -14,7 +11,7 @@ fbsplash::fbsplash(QWidget *parent) :
//setupTheme();
}
-fbsplash::~fbsplash(){
+fbsplash::~fbsplash() {
delete ui;
}
//-----------------------------------------------------------------------------
@@ -24,9 +21,10 @@ void fbsplash::setupTheme() {
}
//-----------------------------------------------------------------------------
void fbsplash::createActions() {
- // Quit through CTRL + X
+ // For testing: quit through CTRL + X
_quit = new QAction(tr("&quit"), this);
_quit->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_X));
this->addAction(_quit);
- connect(_quit, SIGNAL(triggered()), parent(), SLOT(close()));
+ connect(_quit, SIGNAL(triggered()), this, SLOT(close()));
+ // per default, QT closes the app when the last widget is closed
}