From 643c8058bbd67a8fedfd98cb895419cadde04e78 Mon Sep 17 00:00:00 2001 From: harlekin Date: Fri, 14 Feb 2003 21:52:13 +0000 Subject: save some space in dayview, for further answers read bug #665 --- (limited to 'core') diff --git a/core/pim/datebook/datebookday.cpp b/core/pim/datebook/datebookday.cpp index 325b902..aaf3e16 100644 --- a/core/pim/datebook/datebookday.cpp +++ b/core/pim/datebook/datebookday.cpp @@ -597,8 +597,10 @@ DateBookDayWidget::DateBookDayWidget( const EffectiveEvent &e, where = strNote.find( "<", where ); } - text = "" + strDesc + "
" + "" - + strCat + "
"; + text = "" + strDesc + "
" + ""; + if ( !strCat.isEmpty() ) { + text += strCat + "
"; + } if (ev.event().type() == Event::Normal ) setEventText( text ); else @@ -615,8 +617,9 @@ DateBookDayWidget::DateBookDayWidget( const EffectiveEvent &e, int rh = dateBook->dayView()->rowHeight(0); y = y*rh/60; h = h*rh/60; - if ( h < 3 ) + if ( h < 3 ) { h = 3; + } geom.setY( y ); geom.setHeight( h ); geom.setX( 0 ); @@ -628,7 +631,7 @@ void DateBookDayWidget::setAllDayText( QString &text ) { } void DateBookDayWidget::setEventText( QString& text ) { bool whichClock = dateBook->dayView()->whichClock(); - text += "" + tr("Start") + ": "; + text += "" + tr("Time") + ": "; if ( ev.startDate() != ev.date() ) { // multi-day event. Show start date text += TimeString::longDateString( ev.startDate() ); @@ -637,7 +640,7 @@ void DateBookDayWidget::setEventText( QString& text ) { text += TimeString::timeString( ev.start(), whichClock, FALSE ); } - text += "
" + tr("End") + ": "; + text += "" + tr(" - ") + ""; if ( ev.endDate() != ev.date() ) { // multi-day event. Show end date text += TimeString::longDateString( ev.endDate() ); -- cgit v0.9.0.2