QTfrontend/main.cpp
changeset 8344 3d18f7f71d65
parent 8341 7a7a39b2449b
child 8355 df0ea4323295
equal deleted inserted replaced
8342:44d65d9bfda4 8344:3d18f7f71d65
   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,