]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kcategorizedview.cpp
QAbstractItemView::viewOptions() only returns an instance of the class QStyleOptionVi...
[dolphin.git] / src / kcategorizedview.cpp
index c931c0f791e72e9157dd72045d0e98e115fb5336..d250c42c90d585c4094b5423f0964da260bad3d9 100644 (file)
@@ -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()) &&