13 CSplashScreen::CSplashScreen(
const QPixmap &pixmap,
const QFont &font)
15 const int height = qFloor(pixmap.
height() * 1.2);
16 const int width = pixmap.
width();
23 const int statusbar_height = qFloor((height - pixmap.
height()) / 2.0);
24 QPixmap statusbar(width, statusbar_height);
26 painter.
drawPixmap(0, height - statusbar_height, statusbar);
28 this->setPixmap(splash);
32 void CSplashScreen::showStatusMessage(
const QString &msg)
Free functions in swift::misc.
void drawPixmap(const QPoint &point, const QPixmap &pixmap)
void fill(const QColor &color)
bool isEmpty() const const