Improve range filter slider gui

This commit is contained in:
jonjenssen
2023-01-19 20:18:27 +01:00
committed by Magne Sjaastad
parent ea4a4df580
commit 82fc42cc19
3 changed files with 49 additions and 19 deletions

View File

@@ -130,7 +130,8 @@ QSize QShortenedLabel::sizeHint() const
maxLineWidth = std::max( maxLineWidth, fontMetrics.width( line ) );
}
return QSize( maxLineWidth, QLabel::sizeHint().height() );
// increase size hint with a few pixels to avoid linux gui issues
return QSize( maxLineWidth + 3, QLabel::sizeHint().height() );
}
//--------------------------------------------------------------------------------------------------