summaryrefslogtreecommitdiffstats
path: root/src/fbsplash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fbsplash.cpp')
-rw-r--r--src/fbsplash.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/fbsplash.cpp b/src/fbsplash.cpp
new file mode 100644
index 0000000..c2f52bb
--- /dev/null
+++ b/src/fbsplash.cpp
@@ -0,0 +1,28 @@
+#include "fbsplash.h"
+
+fbsplash::fbsplash(){
+
+ qDebug() << "*fbsplash init*";
+
+ createQuitAction();
+ setupTheme();
+
+ setAttribute(Qt::WA_QuitOnClose, true);
+ setWindowFlags(Qt::FramelessWindowHint);
+ showFullScreen();
+}
+//-----------------------------------------------------------------------------
+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);
+}
+//-----------------------------------------------------------------------------
+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