minor style

Change-Id: Id21e8a3962550a1c66d761e718b48a8fcf4053e7
Reviewed-on: http://codereview.qt-project.org/5122
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-09-19 10:02:45 +02:00
committed by hjk
parent 85bf185e2f
commit 5295e05310
19 changed files with 34 additions and 40 deletions

View File

@@ -120,7 +120,7 @@ void DetailsButton::paintEvent(QPaintEvent *e)
QPainter p(this);
#ifndef Q_WS_MAC
// draw hover animation
if(!isDown() && m_fader>0)
if (!isDown() && m_fader > 0)
p.fillRect(rect().adjusted(1, 1, -2, -2), QColor(255, 255, 255, int(m_fader*180)));
#endif
@@ -152,7 +152,7 @@ QPixmap DetailsButton::cacheRendering(const QSize &size, bool checked)
p.setRenderHint(QPainter::Antialiasing, true);
p.translate(0.5, 0.5);
p.setPen(Qt::NoPen);
if(!checked) {
if (!checked) {
lg.setColorAt(0, QColor(0, 0, 0, 10));
lg.setColorAt(1, QColor(0, 0, 0, 16));
} else {