\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