From 3b7ba9f46c78816bae8c4b30a455e261d7da9f4a Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 21 Mar 2005 12:34:49 +0000 Subject: fixes --- (limited to 'korganizer') diff --git a/korganizer/kodaymatrix.cpp b/korganizer/kodaymatrix.cpp index 5133519..9c1f5f3 100644 --- a/korganizer/kodaymatrix.cpp +++ b/korganizer/kodaymatrix.cpp @@ -180,6 +180,7 @@ QString KODayMatrix::getWhatsThisText( QPoint p ) time = KGlobal::locale()->formatTime(event->dtEnd().time())+" "; } + qDebug("event->isMultiDay() %s", event->summary().latin1() ); text = time + event->summary(); mToolTipText += prefix + text; } else { @@ -193,9 +194,23 @@ QString KODayMatrix::getWhatsThisText( QPoint p ) mToolTipText += KGlobal::locale()->formatTime(event->dtStart().time()) +"-"+KGlobal::locale()->formatTime(event->dtEnd().time())+" " + event->summary(); } } + if ( !event->location().isEmpty() ) + mToolTipText += " (" + event->location() + ")"; +#if QT_VERSION >= 0x030000 + mToolTipText.replace( '<' , "<" ); + mToolTipText.replace( '>' , ">" ); +#else + if ( mToolTipText.find ('<') > 0 ) { + mToolTipText.replace( QRegExp("<") , "<" ); + } + if ( mToolTipText.find ('>') > 0 ) { + mToolTipText.replace( QRegExp(">") , ">" ); + } +#endif mToolTip.append( mToolTipText ); } mToolTip.sort(); + qDebug("%s ", mToolTip.join("
").latin1()); return ""+KGlobal::locale()->formatDate(days[tmp]) + "
" + mToolTip.join("
"); } void KODayMatrix::setCalendar( Calendar *cal ) @@ -223,7 +238,7 @@ QColor KODayMatrix::getShadedColor(QColor color) KODayMatrix::~KODayMatrix() { - delete mKODaymatrixWhatsThis; + // delete mKODaymatrixWhatsThis; delete [] days; delete [] daylbls; delete [] events; @@ -337,11 +352,15 @@ void KODayMatrix::updateViewTimed() if ( !holiStr.isEmpty() ) holiStr += "\n"; holiStr += event->summary(); + if ( !event->location().isEmpty() ) + holiStr += " (" + event->location() + ")"; } if ( event->categories().contains( i18n("Birthday") ) || event->categories().contains( "Birthday" )) { if ( !holiStr.isEmpty() ) holiStr += "\n"; - holiStr += event->summary(); + holiStr += i18n("Birthday") + ": "+event->summary(); + if ( !event->location().isEmpty() ) + holiStr += " (" + event->location() + ")"; bDays.setBit(i); } } -- cgit v0.9.0.2