QTfrontend/main.cpp
changeset 8339 2154732c65f1
parent 8337 bf237f7f1d94
child 8341 7a7a39b2449b
equal deleted inserted replaced
8337:bf237f7f1d94 8339:2154732c65f1
   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 #ifdef Q_WS_WIN | Q_WS_X11 | Q_WS_MAC //enabled on all platforms, disable if it doesn't look good
   142     //enabled on win and osx, disable if it doesn't look good
       
   143 #if defined Q_WS_WIN || defined Q_WS_MAC
   143     QPixmap pixmap(":res/splash.png");
   144     QPixmap pixmap(":res/splash.png");
   144     splash = new QLabel(0, Qt::FramelessWindowHint|Qt::WindowStaysOnTopHint);
   145     splash = new QLabel(0, Qt::FramelessWindowHint|Qt::WindowStaysOnTopHint);
   145     splash->setAttribute(Qt::WA_TranslucentBackground);
   146     splash->setAttribute(Qt::WA_TranslucentBackground);
   146     const QRect deskSize = QApplication::desktop()->screenGeometry(-1);
   147     const QRect deskSize = QApplication::desktop()->screenGeometry(-1);
   147     QPoint splashCenter = QPoint( (deskSize.width() - pixmap.width())/2,
   148     QPoint splashCenter = QPoint( (deskSize.width() - pixmap.width())/2,