diff options
author | Jonathan Bauer | 2011-06-19 18:39:32 +0200 |
---|---|---|
committer | Jonathan Bauer | 2011-06-19 18:39:32 +0200 |
commit | 37df5b12024b8cdd738084f71814ab107a9181a7 (patch) | |
tree | 301a797b642c569c40f9d68b70d084fa71220057 /src/main.cpp | |
parent | Layout using QT's external UI definition file (diff) | |
download | fbsplash-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.cpp | 10 |
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(); } |