mirror of
https://github.com/transmission/transmission
synced 2024-12-24 16:52:39 +00:00
#6001: Calculate header item size properly
This commit is contained in:
parent
68c6c0aa3c
commit
e89736fb17
1 changed files with 1 additions and 2 deletions
|
@ -229,8 +229,7 @@ Utils::measureHeaderItem (QHeaderView * view, const QString& text)
|
|||
option.sortIndicator = view->isSortIndicatorShown () ? QStyleOptionHeader::SortDown :
|
||||
QStyleOptionHeader::None;
|
||||
|
||||
return view->style ()->sizeFromContents (QStyle::CT_HeaderSection, &option,
|
||||
QSize (QWIDGETSIZE_MAX, QWIDGETSIZE_MAX), view).width ();
|
||||
return view->style ()->sizeFromContents (QStyle::CT_HeaderSection, &option, QSize (), view).width ();
|
||||
}
|
||||
|
||||
QColor
|
||||
|
|
Loading…
Reference in a new issue