Commit 03e20f91 authored by Scott Wheeler's avatar Scott Wheeler

Added positioning code to the splashscreen. Made it Xinerama aware in the

same fell swoop.  Slightly modified from Kontakt.

svn path=/trunk/kdemultimedia/juk/; revision=200973
parent 9b880eb0
......@@ -88,7 +88,12 @@ SplashScreen::SplashScreen() : QHBox(0 , "splashScreen", Qt::WStyle_Splash)
countLabel->setText(QString::number(count));
countLabel->setFont(font);
setMinimumWidth(iconLabel->width() + textLabel->width() + countLabel->width() + 10);
setMaximumWidth(iconLabel->width() + textLabel->width() + countLabel->width() + 10);
setMaximumHeight(QMAX(iconLabel->height(), textLabel->height()));
QDesktopWidget *desktop = KApplication::desktop();
QRect r = desktop->screenGeometry(desktop->primaryScreen());
setGeometry((r.width() / 2) - (width() / 2), (r.height() / 2) - (height() / 2), width(), height());
}
SplashScreen::~SplashScreen()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment