summaryrefslogtreecommitdiffstats
path: root/src/fbsplash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fbsplash.cpp')
-rw-r--r--src/fbsplash.cpp43
1 files changed, 3 insertions, 40 deletions
diff --git a/src/fbsplash.cpp b/src/fbsplash.cpp
index 6815c61..314a597 100644
--- a/src/fbsplash.cpp
+++ b/src/fbsplash.cpp
@@ -11,32 +11,8 @@ fbsplash::fbsplash(QWidget *parent) :
ui->setupUi(this);
createActions();
+ //setupTheme();
- /*
- setupTheme();
-
-
- // basic progress bar for now
- QProgressBar* pb = new QProgressBar(this);
- //pb->setFormat("Progress: %p%");
- pb->setWindowFlags(Qt::FramelessWindowHint);
- pb->setRange(0, 100);
- pb->setValue(10);
-
- // move the pb to the center, TODO proper margin
- QRect desktopRect = QApplication::desktop()->availableGeometry(this);
- QPoint center = desktopRect.center();
- pb->move(center.x() - pb->width()*0.5 , center.y() - pb->height()*0.5 + 50);
-
- // Label in the middle of the screen
- _label = new QLabel("<font size=10 color='green'>OpenSLX</font>");
- _label->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
- setCentralWidget(_label);
-
- setAttribute(Qt::WA_QuitOnClose, true);
- setWindowFlags(Qt::FramelessWindowHint);
- showFullScreen();
- */
}
fbsplash::~fbsplash(){
delete ui;
@@ -44,10 +20,7 @@ fbsplash::~fbsplash(){
//-----------------------------------------------------------------------------
void fbsplash::setupTheme() {
// TODO configurable per cmdline
- // for now, black as base background color
- QPalette pal;
- pal.setColor(QPalette::Window, Qt::black);
- setPalette(pal);
+ // TODO set per css
}
//-----------------------------------------------------------------------------
void fbsplash::createActions() {
@@ -55,15 +28,5 @@ void fbsplash::createActions() {
_quit = new QAction(tr("&quit"), this);
_quit->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_X));
this->addAction(_quit);
- connect(_quit, SIGNAL(triggered()), this, SLOT(close()));
- // Test action
- _printSize = new QAction(tr("&test"), this);
- _printSize->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_W));
- this->addAction(_printSize);
- connect(_printSize, SIGNAL(triggered()), this, SLOT(printSizeAction()));
-}
-//-----------------------------------------------------------------------------
-void fbsplash::printSizeAction(){
- qDebug() << "MW Height: " << _label->size().height();
- qDebug() << "MW Width: " << _label->size().width();
+ connect(_quit, SIGNAL(triggered()), parent(), SLOT(close()));
}