[Korganizer-devel] [Bug 132947] find journals doesn't display journal title
Allen Winter
winter at kde.org
Mon Jan 29 10:47:06 CET 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=132947
winter kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From winter kde org 2007-01-29 10:47 -------
SVN commit 628136 by winterz:
Fix for "find journals doesn't display journal title".
Thanks for the patch Lars.
BUGS: 132947
M +8 -5 kolistview.cpp
--- branches/KDE/3.5/kdepim/korganizer/kolistview.cpp #628135:628136
@ -179,15 +179,18 @
return true;
}
-bool KOListView::ListItemVisitor::visit(Journal *t)
+bool KOListView::ListItemVisitor::visit( Journal *t )
{
static const QPixmap jrnalPxmp = KOGlobals::self()->smallIcon( "journal" );
- mItem->setPixmap(0,jrnalPxmp);
- // Just use the first line
- mItem->setText( 0, t->description().section( "\n", 0, 0 ) );
+ mItem->setPixmap( 0, jrnalPxmp );
+ if ( t->summary().isEmpty() ) {
+ mItem->setText( 0, t->description().section( "\n", 0, 0 ) );
+ } else {
+ mItem->setText( 0, t->summary() );
+ }
mItem->setText( 3, t->dtStartDateStr() );
- mItem->setSortKey( 3, t->dtStart().toString(Qt::ISODate) );
+ mItem->setSortKey( 3, t->dtStart().toString( Qt::ISODate ) );
return true;
}
More information about the Korganizer-devel
mailing list