diff options
Diffstat (limited to 'qt-ui/starwidget.cpp')
-rw-r--r-- | qt-ui/starwidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-ui/starwidget.cpp b/qt-ui/starwidget.cpp index c43ad1111..30c38808c 100644 --- a/qt-ui/starwidget.cpp +++ b/qt-ui/starwidget.cpp @@ -26,7 +26,7 @@ int StarWidget::currentStars() const void StarWidget::mouseReleaseEvent(QMouseEvent* event) { - if (readOnly){ + if (readOnly) { return; } @@ -65,7 +65,7 @@ StarWidget::StarWidget(QWidget* parent, Qt::WindowFlags f): QWidget(parent, f), current(0) { - if(!activeStar){ + if (!activeStar) { activeStar = new QPixmap(); QSvgRenderer render(QString(":star")); QPixmap renderedStar(IMG_SIZE, IMG_SIZE); @@ -76,7 +76,7 @@ StarWidget::StarWidget(QWidget* parent, Qt::WindowFlags f): render.render(&painter, QRectF(0, 0, IMG_SIZE, IMG_SIZE)); (*activeStar) = renderedStar; } - if(!inactiveStar){ + if (!inactiveStar) { inactiveStar = new QPixmap(); (*inactiveStar) = grayImage(activeStar); } |