1 ////////////////////////////////////////////////// 2 // // 3 // Emu64 // 4 // von Thorsten Kattanek // 5 // // 6 // #file: custom_splashscreen.cpp // 7 // // 8 // Dieser Sourcecode ist Copyright geschützt! // 9 // Geistiges Eigentum von Th.Kattanek // 10 // // 11 // Letzte Änderung am 10.06.2019 // 12 // www.emu64.de // 13 // // 14 ////////////////////////////////////////////////// 15 16 #include "./custom_splashscreen.h" 17 CustomSplashScreen(const QPixmap & pixmap)18CustomSplashScreen::CustomSplashScreen(const QPixmap& pixmap) 19 { 20 QSplashScreen::setPixmap(pixmap); 21 }; 22 ~CustomSplashScreen()23CustomSplashScreen::~CustomSplashScreen() 24 { 25 }; 26 drawContents(QPainter * painter)27void CustomSplashScreen::drawContents(QPainter *painter) 28 { 29 QPixmap textPix = QSplashScreen::pixmap(); 30 painter->setPen(this->color); 31 painter->drawText(this->rect, this->alignement, this->message); 32 }; 33 ShowStatusMessage(const QString & message,const QColor & color)34void CustomSplashScreen::ShowStatusMessage(const QString &message, const QColor &color) 35 { 36 this->message = message; 37 this->color = color; 38 this->showMessage(this->message, this->alignement, this->color); 39 }; 40 SetMessageRect(QRect rect,int alignement)41void CustomSplashScreen::SetMessageRect(QRect rect, int alignement) 42 { 43 this->rect = rect; 44 this->alignement = alignement; 45 }; 46