Merge branch 'master' into contact_dialog
[situare] / src / ui / extendedlistitemdelegate.cpp
index ee1b6f3..c174106 100644 (file)
@@ -81,7 +81,7 @@ void ExtendedListItemDelegate::paint(QPainter *painter, const QStyleOptionViewIt
             if (!itemStore->icon().isNull())
                 painter->drawPixmap(iconRect, itemStore->icon());
 
-            painter->drawText(subItemTextRect, Qt::TextWrapAnywhere, text);
+            painter->drawText(subItemTextRect, Qt::TextWordWrap, text);
             previousSubItemTextRectBottom = subItemTextRect.bottom() + ICON_MARGIN;
         }
     }