[Korganizer-devel] [Bug 218103] Description cutted when there is more than 3 lines ( Journal part )

Nicolas Lécureuil nlecureuil at mandriva.com
Tue Jan 5 14:57:00 CET 2010


https://bugs.kde.org/show_bug.cgi?id=218103





--- Comment #7 from Nicolas Lécureuil <nlecureuil mandriva com>  2010-01-05 14:56:59 ---
here is a patch with correct line numbers :)

Index: korganizer/views/todoview/kotododelegates.cpp
===================================================================
--- korganizer/views/todoview/kotododelegates.cpp
+++ korganizer/views/todoview/kotododelegates.cpp   2010-01-05
14:50:57.000000000 +0100
@@ -455,7 +455,11 @@

     painter->restore();
   } else {
-    QStyledItemDelegate::paint( painter, option, index );
+    // align the text at top so that when it has more than two lines
+    // it will just cut the extra lines out instead of aligning centered
vertically
+    QStyleOptionViewItem copy = option;
+    copy.displayAlignment = Qt::AlignLeft | Qt::AlignTop;
+    QStyledItemDelegate::paint( painter, copy, index );
   }
 }

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Korganizer-devel mailing list