mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Minor style updates
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e5ad47e459
commit
6b7797140b
3 changed files with 25 additions and 38 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue