summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-02-14 21:52:13 (UTC)
committer harlekin <harlekin>2003-02-14 21:52:13 (UTC)
commit643c8058bbd67a8fedfd98cb895419cadde04e78 (patch) (side-by-side diff)
tree3ce591efee390539d170fd98affb8333d62eb0d8
parentfc117979a54fca11e591395b130cfef307deb66f (diff)
downloadopie-643c8058bbd67a8fedfd98cb895419cadde04e78.zip
opie-643c8058bbd67a8fedfd98cb895419cadde04e78.tar.gz
opie-643c8058bbd67a8fedfd98cb895419cadde04e78.tar.bz2
save some space in dayview, for further answers read bug #665
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
@@ -598,6 +598,8 @@ 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 )
setEventText( text );
@@ -616,6 +618,7 @@ DateBookDayWidget::DateBookDayWidget( const EffectiveEvent &e,
y = y*rh/60;
h = h*rh/60;
- if ( h < 3 )
+ if ( h < 3 ) {
h = 3;
+ }
geom.setY( y );
geom.setHeight( h );
@@ -629,5 +632,5 @@ void DateBookDayWidget::setAllDayText( QString &text ) {
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() ) {
// multi-day event. Show start date
@@ -638,5 +641,5 @@ void DateBookDayWidget::setEventText( QString& text ) {
}
- text += "<br><b>" + tr("End") + "</b>: ";
+ text += "<b>" + tr(" - ") + "</b>";
if ( ev.endDate() != ev.date() ) {
// multi-day event. Show end date