summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook/datebookday.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/core/pim/datebook/datebookday.cpp b/core/pim/datebook/datebookday.cpp
index 325b902..aaf3e16 100644
--- a/core/pim/datebook/datebookday.cpp
+++ b/core/pim/datebook/datebookday.cpp
@@ -599,4 +599,6 @@ DateBookDayWidget::DateBookDayWidget( const EffectiveEvent &e,
- text = "<b>" + strDesc + "</b><br>" + "<i>"
- + strCat + "</i><br>";
+ text = "<b>" + strDesc + "</b><br>" + "<i>";
+ if ( !strCat.isEmpty() ) {
+ text += strCat + "</i><br>";
+ }
if (ev.event().type() == Event::Normal )
@@ -617,4 +619,5 @@ DateBookDayWidget::DateBookDayWidget( const EffectiveEvent &e,
h = h*rh/60;
- if ( h < 3 )
+ if ( h < 3 ) {
h = 3;
+ }
geom.setY( y );
@@ -630,3 +633,3 @@ void DateBookDayWidget::setEventText( QString& text ) {
bool whichClock = dateBook->dayView()->whichClock();
- text += "<b>" + tr("Start") + "</b>: ";
+ text += "<b>" + tr("Time") + "</b>: ";
if ( ev.startDate() != ev.date() ) {
@@ -639,3 +642,3 @@ void DateBookDayWidget::setEventText( QString& text ) {
- text += "<br><b>" + tr("End") + "</b>: ";
+ text += "<b>" + tr(" - ") + "</b>";
if ( ev.endDate() != ev.date() ) {