summaryrefslogtreecommitdiffstats
path: root/src/fbsplash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fbsplash.cpp')
-rw-r--r--src/fbsplash.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/fbsplash.cpp b/src/fbsplash.cpp
index c2f52bb..7df12ab 100644
--- a/src/fbsplash.cpp
+++ b/src/fbsplash.cpp
@@ -1,28 +1,29 @@
#include "fbsplash.h"
-fbsplash::fbsplash(){
-
- qDebug() << "*fbsplash init*";
-
+fbsplash::fbsplash() :
+ QMainWindow() {
+
+ qDebug() << "fbsplash init";
+
createQuitAction();
setupTheme();
-
+
setAttribute(Qt::WA_QuitOnClose, true);
setWindowFlags(Qt::FramelessWindowHint);
showFullScreen();
}
//-----------------------------------------------------------------------------
-void fbsplash::setupTheme(){
+void fbsplash::setupTheme() {
// TODO configurable per cmdline
// for now, black as base background color
QPalette pal;
- pal.setColor(QPalette::Base, Qt::black);
- this->setPalette(pal);
+ pal.setColor(QPalette::Window, Qt::black);
+ setPalette(pal);
}
//-----------------------------------------------------------------------------
-void fbsplash::createQuitAction(){
+void fbsplash::createQuitAction() {
_quit = new QAction(tr("&quit"), this);
_quit->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_X));
this->addAction(_quit);
connect(_quit, SIGNAL(triggered()), this, SLOT(close()));
-} \ No newline at end of file
+}