equal
deleted
inserted
replaced
133 #endif |
133 #endif |
134 |
134 |
135 HWApplication app(argc, argv); |
135 HWApplication app(argc, argv); |
136 |
136 |
137 QLabel *splash = NULL; |
137 QLabel *splash = NULL; |
138 #if defined Q_WS_WIN |
138 #if defined Q_OS_WIN |
139 QPixmap pixmap(":res/splash.png"); |
139 QPixmap pixmap(":res/splash.png"); |
140 splash = new QLabel(0, Qt::FramelessWindowHint|Qt::WindowStaysOnTopHint); |
140 splash = new QLabel(0, Qt::FramelessWindowHint|Qt::WindowStaysOnTopHint); |
141 splash->setAttribute(Qt::WA_TranslucentBackground); |
141 splash->setAttribute(Qt::WA_TranslucentBackground); |
142 const QRect deskSize = HWApplication::desktop()->screenGeometry(-1); |
142 const QRect deskSize = HWApplication::desktop()->screenGeometry(-1); |
143 QPoint splashCenter = QPoint( (deskSize.width() - pixmap.width())/2, |
143 QPoint splashCenter = QPoint( (deskSize.width() - pixmap.width())/2, |