summaryrefslogtreecommitdiffstats
path: root/qt-ui/starwidget.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-22 21:25:05 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-22 21:31:45 -0700
commit115e5e5fbc5fcf190ceafaa2b800160cec93d52e (patch)
tree81f8308c48c11b7b3ff393ab35b3ae6999351d5c /qt-ui/starwidget.cpp
parent775736395363ddfe65387b6e05d37546a4601ab9 (diff)
downloadsubsurface-115e5e5fbc5fcf190ceafaa2b800160cec93d52e.tar.gz
The never ending, futile fight for whitespace consistency
I just need to write a tool that does this... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/starwidget.cpp')
-rw-r--r--qt-ui/starwidget.cpp6
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);
}