Version: (using Devel) Installed from: Compiled sources In Korganizer on the Journal mode, if there is more than 3 lines in the description the top of the first line is cutted.
is this when printing the journal? or when looking at the journal in the actual view?
Created attachment 39034 [details] screenshot of the bug is not RichText
this is supposed to be : 1111111111111111111111111111111111111111 2 3
Created attachment 39559 [details] with and without RichText The first line is with RichText enabled and the second one w/o
Created attachment 39582 [details] Align the description at top so that it won't be cut if it has more than two lines This patch fixes the problem by aligning the text at top so that just the extra lines are cut when the description has more than two lines.
Ops, just saw the patch looks strage, my svn is doing something weird here when diff'ing. Sorry Nicolas, can you please attach a fixed version of the patch?
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 ); } }
Created attachment 39583 [details] the patch in attachment
permission granted to commit this patch to trunk. thanks guys
SVN commit 1070408 by boiko: Draw the description aligned at top so that if it has more than two lines the additional lines are not drawn BUG: 218103 M +5 -1 kotododelegates.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1070408