mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 00:41:23 +00:00
QAbstractItemView::viewOptions() only returns an instance of the class QStyleOptionViewItem, so the text wrapping property of QStyleOptionViewItemV3 will never be set -> check whether wrapping has been enabled inside QListView
svn path=/trunk/KDE/kdebase/apps/; revision=689676
This commit is contained in:
parent
71158bc65d
commit
a6a454c858
|
@ -622,6 +622,11 @@ void KCategorizedView::paintEvent(QPaintEvent *event)
|
|||
|
||||
QStyleOptionViewItemV3 option = viewOptions();
|
||||
option.widget = this;
|
||||
if (wordWrap())
|
||||
{
|
||||
option.features |= QStyleOptionViewItemV2::WrapText;
|
||||
}
|
||||
|
||||
QPainter painter(viewport());
|
||||
QRect area = event->rect();
|
||||
const bool focus = (hasFocus() || viewport()->hasFocus()) &&
|
||||
|
|
Loading…
Reference in a new issue