author | harlekin <harlekin> | 2003-02-11 22:27:27 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-02-11 22:27:27 (UTC) |
commit | ee67394120b5436d955d64a21b8ea707b57ac0c0 (patch) (unidiff) | |
tree | 7bff77ad9e116ed103068f69aee19671ec8a1680 | |
parent | e7ebea116b82577d861cba0650a80b12900b2e24 (diff) | |
download | opie-ee67394120b5436d955d64a21b8ea707b57ac0c0.zip opie-ee67394120b5436d955d64a21b8ea707b57ac0c0.tar.gz opie-ee67394120b5436d955d64a21b8ea707b57ac0c0.tar.bz2 |
fix for bugreport #664, show also location in popups in datebooks weekview
-rw-r--r-- | core/pim/datebook/datebookweek.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/core/pim/datebook/datebookweek.cpp b/core/pim/datebook/datebookweek.cpp index e16f516..ddd41af 100644 --- a/core/pim/datebook/datebookweek.cpp +++ b/core/pim/datebook/datebookweek.cpp | |||
@@ -508,26 +508,34 @@ void DateBookWeek::slotShowEvent( const EffectiveEvent &ev ) | |||
508 | // QString strCat = ev.category(); | 508 | // QString strCat = ev.category(); |
509 | // where = strCat.find( "<" ); | 509 | // where = strCat.find( "<" ); |
510 | // while ( where != -1 ) { | 510 | // while ( where != -1 ) { |
511 | // strCat.remove( where, 1 ); | 511 | // strCat.remove( where, 1 ); |
512 | // strCat.insert( where, "<" ); | 512 | // strCat.insert( where, "<" ); |
513 | // where = strCat.find( "<", where ); | 513 | // where = strCat.find( "<", where ); |
514 | // } | 514 | // } |
515 | 515 | ||
516 | QString strLocation = ev.location(); | ||
517 | while ( where != -1 ) { | ||
518 | strLocation.remove( where, 1 ); | ||
519 | strLocation.insert( where, "<" ); | ||
520 | where = strLocation.find( "<", where ); | ||
521 | } | ||
522 | |||
516 | QString strNote = ev.notes(); | 523 | QString strNote = ev.notes(); |
517 | where = strNote.find( "<" ); | 524 | where = strNote.find( "<" ); |
518 | while ( where != -1 ) { | 525 | while ( where != -1 ) { |
519 | strNote.remove( where, 1 ); | 526 | strNote.remove( where, 1 ); |
520 | strNote.insert( where, "<" ); | 527 | strNote.insert( where, "<" ); |
521 | where = strNote.find( "<", where ); | 528 | where = strNote.find( "<", where ); |
522 | } | 529 | } |
523 | 530 | ||
524 | QString str = "<b>" + strDesc + "</b><br>" + "<i>" | 531 | QString str = "<b>" + strDesc + "</b><br>" |
525 | + strCat + "</i>" | 532 | + strLocation + "<br>" |
533 | + "<i>" + strCat + "</i>" | ||
526 | + "<br>" + TimeString::longDateString( ev.date() ) | 534 | + "<br>" + TimeString::longDateString( ev.date() ) |
527 | + "<br>"; | 535 | + "<br>"; |
528 | 536 | ||
529 | if (ev.event().type() == Event::Normal ) | 537 | if (ev.event().type() == Event::Normal ) |
530 | generateNormalTooltext( str, ev ); | 538 | generateNormalTooltext( str, ev ); |
531 | else | 539 | else |
532 | generateAllDayTooltext( str ); | 540 | generateAllDayTooltext( str ); |
533 | 541 | ||