Minor style updates

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-05-01 22:00:08 -07:00
parent e5ad47e459
commit 6b7797140b
3 changed files with 25 additions and 38 deletions

View file

@ -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();