XXXSplashScreen
::XXXSplashScreen(QWidget *parent,
const QPixmap &pixmap, Qt
::WindowFlags f
){
setWindowOpacity(0.9);
}
XXXSplashScreen
::XXXSplashScreen(QWidget *parent
){
setWindowOpacity(0.9);
}
void
XXXSplashScreen
::drawContents(QPainter *painter
){
int left = 180;
int top = 15;
int bottomLimit = 75;
int rightLimit = width();
QRect rect
(left, top, rightLimit
- left, bottomLimit
- top
);
titleFont.setBold(true);
titleFont.setPointSize(titleFont.pointSize() + 1);
painter->setFont(titleFont);
painter->drawText(rect, Qt::AlignLeft, app().fullName());
}
void
XXXSplashScreen::show()
{
}
XXXSplashScreen::XXXSplashScreen(QWidget *parent, const QPixmap &pixmap, Qt::WindowFlags f)
: QSplashScreen(parent, pixmap, f)
{
setWindowOpacity(0.9);
}
XXXSplashScreen::XXXSplashScreen(QWidget *parent)
: QSplashScreen(parent, QPixmap(":/images/splashscreen.png"), Qt::WindowStaysOnTopHint)
{
setWindowOpacity(0.9);
}
void
XXXSplashScreen::drawContents(QPainter *painter)
{
int left = 180;
int top = 15;
int bottomLimit = 75;
int rightLimit = width();
QRect rect(left, top, rightLimit - left, bottomLimit - top);
QFont titleFont = QApplication::font();
titleFont.setBold(true);
titleFont.setPointSize(titleFont.pointSize() + 1);
painter->setFont(titleFont);
painter->drawText(rect, Qt::AlignLeft, app().fullName());
}
void
XXXSplashScreen::show()
{
QSplashScreen::show();
showMessage(QString());
}
To copy to clipboard, switch view to plain text mode
Bookmarks