summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
blob: 442c3ea5a595159bb24f0ac43c9c9573feb89e3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <QApplication>
#include "fbsplash.h"

int main(int argc, char *argv[]) {

   QApplication app(argc, argv, QApplication::GuiServer);
   app.setOrganizationName("OpenSLX");
   app.setApplicationName("fbsplash");

   QMainWindow mw;
   fbsplash bs(&mw);

   mw.setCentralWidget(&bs);
   mw.setAttribute(Qt::WA_QuitOnClose, true);
   mw.setWindowFlags(Qt::FramelessWindowHint);
   mw.showFullScreen();

   app.exec();
}