summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/komonthview.cpp24
-rw-r--r--korganizer/komonthview.h2
2 files changed, 14 insertions, 12 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp
index 4bf9dea..004ff50 100644
--- a/korganizer/komonthview.cpp
+++ b/korganizer/komonthview.cpp
@@ -494,4 +494,4 @@ void MonthViewCell::startUpdateCell()
QToolTip::remove(this);
-#endif
- mToolTip = "";
+#endif
+ mToolTip.clear();
//qApp->processEvents();
@@ -501,3 +501,3 @@ void MonthViewCell::startUpdateCell()
mItemList->insertItem( item );
- mToolTip += mHolidayString+"\n";
+ mToolTip.append ( mHolidayString );
}
@@ -507,3 +507,3 @@ void MonthViewCell::insertEvent(Event *event)
{
-
+ QString mToolTipText;
mItemList->setFocusPolicy(WheelFocus);
@@ -554,3 +554,3 @@ void MonthViewCell::insertEvent(Event *event)
text = time + event->summary();
- mToolTip += prefix + text;
+ mToolTipText += prefix + text;
} else {
@@ -558,3 +558,3 @@ void MonthViewCell::insertEvent(Event *event)
text = event->summary();
- mToolTip += text;
+ mToolTipText += text;
}
@@ -563,3 +563,3 @@ void MonthViewCell::insertEvent(Event *event)
text += " " + event->summary();
- mToolTip += KGlobal::locale()->formatTime(event->dtStart().time()) +"-"+KGlobal::locale()->formatTime(event->dtEnd().time())+" " + event->summary();
+ mToolTipText += KGlobal::locale()->formatTime(event->dtStart().time()) +"-"+KGlobal::locale()->formatTime(event->dtEnd().time())+" " + event->summary();
}
@@ -608,3 +608,3 @@ void MonthViewCell::insertEvent(Event *event)
mItemList->insertItem( item );
- mToolTip += "\n";
+ mToolTip.append( mToolTipText );
}
@@ -652,3 +652,3 @@ void MonthViewCell::insertTodo(Todo *todo)
mItemList->insertItem( item );
- mToolTip += text+"\n";
+ mToolTip.append( text );
}
@@ -657,4 +657,6 @@ void MonthViewCell::finishUpdateCell()
#ifdef DESKTOP_VERSION
- if (mToolTip != "")
- QToolTip::add(this,mToolTip,toolTipGroup(),"");
+ if (mToolTip.count() > 0 ) {
+ mToolTip.sort();
+ QToolTip::add(this,mToolTip.join("\n"),toolTipGroup(),"");
+ }
#endif
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h
index fd8cbf2..a92421b 100644
--- a/korganizer/komonthview.h
+++ b/korganizer/komonthview.h
@@ -169,3 +169,3 @@ class MonthViewCell : public QWidget
protected:
- QString mToolTip;
+ QStringList mToolTip;
void resizeEvent( QResizeEvent * );