Add back splash screen.
[dorian] / widgets / splash.cpp
index 967a84f..f906c29 100755 (executable)
@@ -2,14 +2,6 @@
 \r
 #include "splash.h"\r
 \r
-Splash::Splash(QWidget *parent): QMainWindow(parent)\r
+Splash::Splash(): QSplashScreen(QPixmap(":/icons/splash.jpg"))\r
 {\r
-\r
-    QLabel *label = new QLabel(this);\r
-    QRect geo = QApplication::desktop()->geometry();\r
-    label->setGeometry(geo);\r
-    label->setStyleSheet("background-color: white; color: white");\r
-    label->setPixmap(QPixmap(":/icons/splash.jpg").scaled(geo.width(),\r
-        geo.height(), Qt::KeepAspectRatio, Qt::SmoothTransformation));\r
-    setCentralWidget(label);\r
 }\r