blob: cf42f97f8b183b92237cd6d82dacaa93d1f9e048 (
plain) (
tree)
|
|
#include <QProgressBar>
#include "fbsplash.h"
fbsplash::fbsplash() :
QMainWindow() {
qDebug() << "fbsplash init";
createQuitAction();
setupTheme();
QProgressBar* pb;
setCentralWidget(pb);
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::Window, Qt::black);
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()));
}
|