projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
32f0f3f
)
Warnings--
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Sat, 14 Feb 2009 22:49:51 +0000
(23:49 +0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Sat, 14 Feb 2009 22:49:51 +0000
(23:49 +0100)
src/qtui/mainpage.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/mainpage.cpp
b/src/qtui/mainpage.cpp
index
0939294
..
2465331
100644
(file)
--- 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);
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);
painter.drawImage(xmargin, ymargin, img);