diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-01 22:00:08 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-01 22:00:08 -0700 |
commit | 6b7797140bcf706b1a0a2eeb70438d8572372b9f (patch) | |
tree | 3319a54d57bea49b39dc5824a44c81c6ff262cec /qt-ui/modeldelegates.cpp | |
parent | e5ad47e459af1d937d26782ce8308dbd67ecec4b (diff) | |
download | subsurface-6b7797140bcf706b1a0a2eeb70438d8572372b9f.tar.gz |
Minor style updates
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/modeldelegates.cpp')
-rw-r--r-- | qt-ui/modeldelegates.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp index 00f10092d..87629bd1b 100644 --- a/qt-ui/modeldelegates.cpp +++ b/qt-ui/modeldelegates.cpp @@ -10,15 +10,13 @@ void StarWidgetsDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const { - if (!index.isValid()){ + if (!index.isValid()) return; - } QVariant value = index.model()->data(index, Qt::DisplayRole); - if (!value.isValid()){ + if (!value.isValid()) return; - } int rating = value.toInt(); |