summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJonathan Bauer2011-06-19 18:39:32 +0200
committerJonathan Bauer2011-06-19 18:39:32 +0200
commit37df5b12024b8cdd738084f71814ab107a9181a7 (patch)
tree301a797b642c569c40f9d68b70d084fa71220057 /src/main.cpp
parentLayout using QT's external UI definition file (diff)
downloadfbsplash-37df5b12024b8cdd738084f71814ab107a9181a7.tar.gz
fbsplash-37df5b12024b8cdd738084f71814ab107a9181a7.tar.xz
fbsplash-37df5b12024b8cdd738084f71814ab107a9181a7.zip
new UI, old code cleanup
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 32d2688..442c3ea 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -7,7 +7,13 @@ int main(int argc, char *argv[]) {
app.setOrganizationName("OpenSLX");
app.setApplicationName("fbsplash");
- fbsplash bs;
- bs.show();
+ QMainWindow mw;
+ fbsplash bs(&mw);
+
+ mw.setCentralWidget(&bs);
+ mw.setAttribute(Qt::WA_QuitOnClose, true);
+ mw.setWindowFlags(Qt::FramelessWindowHint);
+ mw.showFullScreen();
+
app.exec();
}