Avoid overlap of ratings / progress bar
Part of issues mentioned in: https://sourceforge.net/p/flightgear/codetickets/1865/
This commit is contained in:
parent
e4e0db5cac
commit
1d912c91df
1 changed files with 2 additions and 3 deletions
|
@ -268,11 +268,10 @@ QSize AircraftItemDelegate::sizeHint(const QStyleOptionViewItem & option, const
|
||||||
// ratings
|
// ratings
|
||||||
int ratingHeight = qMax(24, smallMetrics.height() + MARGIN);
|
int ratingHeight = qMax(24, smallMetrics.height() + MARGIN);
|
||||||
textHeight += ratingHeight * 2;
|
textHeight += ratingHeight * 2;
|
||||||
} else {
|
|
||||||
// just the button height
|
|
||||||
textHeight += BUTTON_HEIGHT;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
textHeight += BUTTON_HEIGHT;
|
||||||
|
|
||||||
textHeight = qMax(textHeight, thumbnailSize.height());
|
textHeight = qMax(textHeight, thumbnailSize.height());
|
||||||
return QSize(option.rect.width(), textHeight + (MARGIN * 2));
|
return QSize(option.rect.width(), textHeight + (MARGIN * 2));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue