-rw-r--r-- | korganizer/komonthview.cpp | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index 4dfb9df..65d6acf 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp @@ -643,2 +643,6 @@ int MonthViewCell::insertEvent(Event *event) { + bool useToolTips = true; +#ifndef DEKSTOP_VERSION + useToolTips = false; +#endif QString mToolTipText; @@ -689,3 +693,4 @@ int MonthViewCell::insertEvent(Event *event) text = time + event->summary(); - mToolTipText += prefix + text; + if ( useToolTips ) + mToolTipText += prefix + text; } else { @@ -693,3 +698,4 @@ int MonthViewCell::insertEvent(Event *event) text = event->summary(); - mToolTipText += text; + if ( useToolTips ) + mToolTipText += text; } @@ -698,5 +704,9 @@ int MonthViewCell::insertEvent(Event *event) text += " " + event->summary(); - mToolTipText += KGlobal::locale()->formatTime(event->dtStart().time()) +"-"+KGlobal::locale()->formatTime(event->dtEnd().time())+" " + event->summary(); + if ( useToolTips ) + mToolTipText += KGlobal::locale()->formatTime(event->dtStart().time()) +"-"+KGlobal::locale()->formatTime(event->dtEnd().time())+" " + event->summary(); } } + if ( useToolTips && ! event->location().isEmpty() ) { + mToolTipText += " (" + event->location() +")"; + } MonthViewItem *item ; @@ -766,3 +776,4 @@ int MonthViewCell::insertEvent(Event *event) } - mToolTip.append( mToolTipText ); + if ( useToolTips ) + mToolTip.append( mToolTipText ); return mdayCount; @@ -818,3 +829,5 @@ void MonthViewCell::insertTodo(Todo *todo) insertItem( item , count()); +#ifdef DESKTOP_VERSION mToolTip.append( text ); +#endif } |