equal
deleted
inserted
replaced
137 #endif |
137 #endif |
138 |
138 |
139 HWApplication app(argc, argv); |
139 HWApplication app(argc, argv); |
140 |
140 |
141 QLabel *splash = NULL; |
141 QLabel *splash = NULL; |
142 //enabled on win and osx, disable if it doesn't look good |
142 #if defined Q_WS_WIN |
143 #if defined Q_WS_WIN || defined Q_WS_MAC |
|
144 QPixmap pixmap(":res/splash.png"); |
143 QPixmap pixmap(":res/splash.png"); |
145 splash = new QLabel(0, Qt::FramelessWindowHint|Qt::WindowStaysOnTopHint); |
144 splash = new QLabel(0, Qt::FramelessWindowHint|Qt::WindowStaysOnTopHint); |
146 splash->setAttribute(Qt::WA_TranslucentBackground); |
145 splash->setAttribute(Qt::WA_TranslucentBackground); |
147 const QRect deskSize = QApplication::desktop()->screenGeometry(-1); |
146 const QRect deskSize = QApplication::desktop()->screenGeometry(-1); |
148 QPoint splashCenter = QPoint( (deskSize.width() - pixmap.width())/2, |
147 QPoint splashCenter = QPoint( (deskSize.width() - pixmap.width())/2, |