34 lines
778 B
C++
34 lines
778 B
C++
|
#include "customSplashScreen.h"
|
||
|
|
||
|
customSplashScreen::customSplashScreen(const QPixmap& pixmap)
|
||
|
{
|
||
|
QSplashScreen::setPixmap(pixmap);
|
||
|
}
|
||
|
|
||
|
customSplashScreen::~customSplashScreen()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void customSplashScreen::drawContents(QPainter *painter)
|
||
|
{
|
||
|
QPixmap textPix = QSplashScreen::pixmap();
|
||
|
painter->setPen(this->color);
|
||
|
painter->drawText(this->rect, this->alignement, this->message);
|
||
|
}
|
||
|
|
||
|
void customSplashScreen::showStatusMessage(const QString &message, const QColor &color)
|
||
|
{
|
||
|
this->message = message;
|
||
|
this->color = color;
|
||
|
this->showMessage(this->message, this->alignement, this->color);
|
||
|
}
|
||
|
|
||
|
void customSplashScreen::setMessageRect(QRect rect, int alignement)
|
||
|
{
|
||
|
this->rect = rect;
|
||
|
this->alignement = alignement;
|
||
|
}
|
||
|
|
||
|
|
||
|
|