]> git.mxchange.org Git - flightgear.git/commitdiff
Avoid overlap of ratings / progress bar
authorJames Turner <zakalawe@mac.com>
Fri, 17 Jun 2016 21:42:33 +0000 (22:42 +0100)
committerRoland Haeder <roland@mxchange.org>
Thu, 22 Sep 2016 21:27:36 +0000 (23:27 +0200)
Part of issues mentioned in:

https://sourceforge.net/p/flightgear/codetickets/1865/

src/GUI/AircraftItemDelegate.cxx

index 6945645b1490b36a166a31cb0b3822e9de6c6b16..dfa85ba5458d8e5fc886a5961b32d57ac67bad89 100644 (file)
@@ -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));
 }