1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

#6001: Calculate header item size properly

This commit is contained in:
Mike Gelfand 2015-09-27 20:23:03 +00:00
parent 68c6c0aa3c
commit e89736fb17

View file

@ -229,8 +229,7 @@ Utils::measureHeaderItem (QHeaderView * view, const QString& text)
option.sortIndicator = view->isSortIndicatorShown () ? QStyleOptionHeader::SortDown : option.sortIndicator = view->isSortIndicatorShown () ? QStyleOptionHeader::SortDown :
QStyleOptionHeader::None; QStyleOptionHeader::None;
return view->style ()->sizeFromContents (QStyle::CT_HeaderSection, &option, return view->style ()->sizeFromContents (QStyle::CT_HeaderSection, &option, QSize (), view).width ();
QSize (QWIDGETSIZE_MAX, QWIDGETSIZE_MAX), view).width ();
} }
QColor QColor