changed splash position

This commit is contained in:
2018-06-10 14:05:16 +02:00
parent 777c76a53b
commit cf8e9f8944
+5 -1
View File
@@ -12,7 +12,7 @@
#include "csplashscreen.h"
//#define SHOW_SPLASH
#define SHOW_SPLASH
int main(int argc, char *argv[])
{
@@ -32,7 +32,11 @@ int main(int argc, char *argv[])
QString family = QFontDatabase::applicationFontFamilies(id).at(0);
QFont splashFont(family);
#ifdef SHOW_SPLASH
lpSplash->setMessageRect(QRect(0, 110, 480, 209), Qt::AlignHCenter);
#else
lpSplash->setMessageRect(QRect(0, 20, 480, 299), Qt::AlignHCenter);
#endif
splashFont.setPixelSize(18);
lpSplash->setFont(splashFont);