diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-01-16 11:50:56 +0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-16 11:50:56 +0700 |
commit | a27f67c02612791fad73b4e0550d942dc3a5a339 (patch) | |
tree | 4417a2be34c8bcd7c03db23ba5f307ad463657a9 /qt-ui/starwidget.cpp | |
parent | 3387ccc6f676636fe3fb8b11c8c371f627d74551 (diff) | |
download | subsurface-a27f67c02612791fad73b4e0550d942dc3a5a339.tar.gz |
Whitespace and coding style updates
Another futile attempt to cleanup the code and make coding style and
whitespace consistent. I tried to add a file that describes the key points
of our coding style. I have no illusions that this will help the least
bit...
This commit should ONLY change whitespace
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/starwidget.cpp')
-rw-r--r-- | qt-ui/starwidget.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qt-ui/starwidget.cpp b/qt-ui/starwidget.cpp index 59e625f35..8cb368ed7 100644 --- a/qt-ui/starwidget.cpp +++ b/qt-ui/starwidget.cpp @@ -55,7 +55,7 @@ void StarWidget::paintEvent(QPaintEvent* event) for(int i = current; i < TOTALSTARS; i++) p.drawPixmap(i * IMG_SIZE + SPACING, 0, starInactive()); - if(hasFocus()){ + if (hasFocus()) { QStyleOptionFocusRect option; option.initFrom(this); option.backgroundColor = palette().color(QPalette::Background); @@ -135,12 +135,12 @@ void StarWidget::focusOutEvent(QFocusEvent* event) void StarWidget::keyPressEvent(QKeyEvent* event) { - if (event->key() == Qt::Key_Up || event->key() == Qt::Key_Right){ - if (currentStars() < TOTALSTARS){ + if (event->key() == Qt::Key_Up || event->key() == Qt::Key_Right) { + if (currentStars() < TOTALSTARS) { setCurrentStars( currentStars()+1); } - }else if(event->key() == Qt::Key_Down || event->key() == Qt::Key_Left){ - if(currentStars() > 0){ + } else if (event->key() == Qt::Key_Down || event->key() == Qt::Key_Left) { + if (currentStars() > 0) { setCurrentStars( currentStars()-1); } } |