author | zautrix <zautrix> | 2005-03-21 12:34:49 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-21 12:34:49 (UTC) |
commit | 3b7ba9f46c78816bae8c4b30a455e261d7da9f4a (patch) (side-by-side diff) | |
tree | db85cf3f0520828c358aadc3867705a95fcb9d88 | |
parent | b40a7cc0a8cf0bd06b0f404f58e89980d1291beb (diff) | |
download | kdepimpi-3b7ba9f46c78816bae8c4b30a455e261d7da9f4a.zip kdepimpi-3b7ba9f46c78816bae8c4b30a455e261d7da9f4a.tar.gz kdepimpi-3b7ba9f46c78816bae8c4b30a455e261d7da9f4a.tar.bz2 |
fixes
-rw-r--r-- | korganizer/kodaymatrix.cpp | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/korganizer/kodaymatrix.cpp b/korganizer/kodaymatrix.cpp index 5133519..9c1f5f3 100644 --- a/korganizer/kodaymatrix.cpp +++ b/korganizer/kodaymatrix.cpp @@ -182,2 +182,3 @@ QString KODayMatrix::getWhatsThisText( QPoint p ) } + qDebug("event->isMultiDay() %s", event->summary().latin1() ); text = time + event->summary(); @@ -195,2 +196,15 @@ QString KODayMatrix::getWhatsThisText( QPoint p ) } + 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 ); @@ -198,2 +212,3 @@ QString KODayMatrix::getWhatsThisText( QPoint p ) mToolTip.sort(); + qDebug("%s ", mToolTip.join("<br>").latin1()); return "<b>"+KGlobal::locale()->formatDate(days[tmp]) + "</b><br>" + mToolTip.join("<br>"); @@ -225,3 +240,3 @@ KODayMatrix::~KODayMatrix() { - delete mKODaymatrixWhatsThis; + // delete mKODaymatrixWhatsThis; delete [] days; @@ -339,2 +354,4 @@ void KODayMatrix::updateViewTimed() holiStr += event->summary(); + if ( !event->location().isEmpty() ) + holiStr += " (" + event->location() + ")"; } @@ -343,3 +360,5 @@ void KODayMatrix::updateViewTimed() holiStr += "\n"; - holiStr += event->summary(); + holiStr += i18n("Birthday") + ": "+event->summary(); + if ( !event->location().isEmpty() ) + holiStr += " (" + event->location() + ")"; bDays.setBit(i); |