X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmainpage.cpp;h=24653315c1290eab55ae636f055a8ec166f0ddd3;hp=093929448b36dedddc5054e0606b15445eefc61d;hb=09515f0300f18490ee1788392a7518a6e1ab5acc;hpb=c8034446b66ab7964433235c51ce32bfc3c9d672 diff --git a/src/qtui/mainpage.cpp b/src/qtui/mainpage.cpp index 09392944..24653315 100644 --- a/src/qtui/mainpage.cpp +++ b/src/qtui/mainpage.cpp @@ -37,8 +37,8 @@ void MainPage::paintEvent(QPaintEvent *event) { if(img.height() > height() || img.width() > width()) img = img.scaled(width(), height(), Qt::KeepAspectRatio, Qt::SmoothTransformation); - qreal xmargin = (width() - img.width()) / 2; - qreal ymargin = (height() - img.height()) / 2; + int xmargin = (width() - img.width()) / 2; + int ymargin = (height() - img.height()) / 2; painter.drawImage(xmargin, ymargin, img);