forked from qt-creator/qt-creator
minor style
Change-Id: Id21e8a3962550a1c66d761e718b48a8fcf4053e7 Reviewed-on: http://codereview.qt-project.org/5122 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user