|
|
|
@ -37,9 +37,7 @@ SplashScreen::SplashScreen(interfaces::Node& node, Qt::WindowFlags f, const Netw
|
|
|
|
|
|
|
|
|
|
float fontFactor = 1.0;
|
|
|
|
|
float devicePixelRatio = 1.0;
|
|
|
|
|
#if QT_VERSION > 0x050100
|
|
|
|
|
devicePixelRatio = static_cast<QGuiApplication*>(QCoreApplication::instance())->devicePixelRatio();
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// define text to place
|
|
|
|
|
QString titleText = tr(PACKAGE_NAME);
|
|
|
|
@ -53,10 +51,8 @@ SplashScreen::SplashScreen(interfaces::Node& node, Qt::WindowFlags f, const Netw
|
|
|
|
|
QSize splashSize(480*devicePixelRatio,320*devicePixelRatio);
|
|
|
|
|
pixmap = QPixmap(splashSize);
|
|
|
|
|
|
|
|
|
|
#if QT_VERSION > 0x050100
|
|
|
|
|
// change to HiDPI if it makes sense
|
|
|
|
|
pixmap.setDevicePixelRatio(devicePixelRatio);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
QPainter pixPaint(&pixmap);
|
|
|
|
|
pixPaint.setPen(QColor(100,100,100));
|
|
|
|
|