From: James Turner Date: Fri, 17 Jun 2016 21:42:33 +0000 (+0100) Subject: Avoid overlap of ratings / progress bar X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e94d63f0f9d8e8efdd9bcf48edc5d52a4bab269b;p=flightgear.git Avoid overlap of ratings / progress bar Part of issues mentioned in: https://sourceforge.net/p/flightgear/codetickets/1865/ --- diff --git a/src/GUI/AircraftItemDelegate.cxx b/src/GUI/AircraftItemDelegate.cxx index 6945645b1..dfa85ba54 100644 --- a/src/GUI/AircraftItemDelegate.cxx +++ b/src/GUI/AircraftItemDelegate.cxx @@ -268,11 +268,10 @@ QSize AircraftItemDelegate::sizeHint(const QStyleOptionViewItem & option, const // ratings int ratingHeight = qMax(24, smallMetrics.height() + MARGIN); textHeight += ratingHeight * 2; - } else { - // just the button height - textHeight += BUTTON_HEIGHT; } + textHeight += BUTTON_HEIGHT; + textHeight = qMax(textHeight, thumbnailSize.height()); return QSize(option.rect.width(), textHeight + (MARGIN * 2)); }