blob: c2f52bb32b31c44cf174e8b9ecc24445fd334d61 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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()));
}
|