summaryrefslogtreecommitdiffstats
path: root/src/fbsplash.cpp
blob: 314a5971fbec818bb49cc9f99077ca08baff90fd (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
29
30
31
32
#include <QProgressBar>
#include "fbsplash.h"
#include "ui_fbsplash.h"


fbsplash::fbsplash(QWidget *parent) :
   QWidget(parent), ui(new Ui::fbsplash){

   qDebug() << "fbsplash init";

   ui->setupUi(this);

   createActions();
   //setupTheme();

}
fbsplash::~fbsplash(){
   delete ui;
}
//-----------------------------------------------------------------------------
void fbsplash::setupTheme() {
   // TODO configurable per cmdline
   // TODO set per css
}
//-----------------------------------------------------------------------------
void fbsplash::createActions() {
   // Quit through CTRL + X
   _quit = new QAction(tr("&quit"), this);
   _quit->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_X));
   this->addAction(_quit);
   connect(_quit, SIGNAL(triggered()), parent(), SLOT(close()));
}