1 ////////////////////////////////////////////////// 2 // // 3 // Emu64 // 4 // von Thorsten Kattanek // 5 // // 6 // #file: custom_splashscreen.h // 7 // // 8 // Dieser Sourcecode ist Copyright geschützt! // 9 // Geistiges Eigentum von Th.Kattanek // 10 // // 11 // Letzte Änderung am 09.06.2019 // 12 // www.emu64.de // 13 // // 14 ////////////////////////////////////////////////// 15 16 #ifndef CUSTOM_SPLASHSCREEN_H 17 #define CUSTOM_SPLASHSCREEN_H 18 19 #include <QSplashScreen> 20 #include <QPainter> 21 22 class CustomSplashScreen 23 :public QSplashScreen 24 { 25 26 public: 27 CustomSplashScreen(const QPixmap& pixmap); 28 ~CustomSplashScreen(); 29 virtual void drawContents(QPainter *painter); 30 void ShowStatusMessage(const QString &message, const QColor &color = Qt::black); 31 void SetMessageRect(QRect rect, int alignment = Qt::AlignLeft); 32 33 private: 34 QString message; 35 int alignement; 36 QColor color; 37 QRect rect; 38 }; 39 40 #endif // CUSTOM_SPLASHSCREEN_H 41