diff options
Diffstat (limited to 'qt-ui/modeldelegates.cpp')
-rw-r--r-- | qt-ui/modeldelegates.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp index 68e62a5cb..0399722ba 100644 --- a/qt-ui/modeldelegates.cpp +++ b/qt-ui/modeldelegates.cpp @@ -506,7 +506,7 @@ void LocationFilterDelegate::paint(QPainter *painter, const QStyleOptionViewItem QString diveSiteCoords(gpsCoords); free( (void*) gpsCoords); - fontBigger.setPointSize(fontBigger.pointSize() + 2); + fontBigger.setPointSize(fontBigger.pointSize() + 1); fontBigger.setBold(true); painter->save(); @@ -533,7 +533,7 @@ void LocationFilterDelegate::paint(QPainter *painter, const QStyleOptionViewItem QSize LocationFilterDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const { QFont fontBigger = qApp->font(); - fontBigger.setPointSize(fontBigger.pointSize() + 2); + fontBigger.setPointSize(fontBigger.pointSize()); fontBigger.setBold(true); QFontMetrics fmBigger(fontBigger); @@ -542,6 +542,9 @@ QSize LocationFilterDelegate::sizeHint(const QStyleOptionViewItem &option, const QFontMetrics fmSmaller(fontSmaller); QSize retSize = QStyledItemDelegate::sizeHint(option, index); - retSize.setHeight(fmBigger.boundingRect("Yellow House").height() + 5 /*spacing*/ + fmSmaller.boundingRect("Yellow House").height()); + retSize.setHeight( + fmBigger.boundingRect("Yellow House").height() + 5 /*spacing*/ + + fmSmaller.boundingRect("Yellow House").height()); + return retSize; } |