-rw-r--r-- | korganizer/koagendaview.cpp | 2 | ||||
-rw-r--r-- | korganizer/koeditorgeneral.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index b9c7dec..8001c8f 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp | |||
@@ -126,24 +126,26 @@ void TimeLabels::drawContents(QPainter *p,int cx, int cy, int cw, int ch) | |||
126 | QString hour; | 126 | QString hour; |
127 | QString suffix; | 127 | QString suffix; |
128 | QString fullTime; | 128 | QString fullTime; |
129 | int tW = fm.width("24:00i"); | 129 | int tW = fm.width("24:00i"); |
130 | int timeHeight = fm.height(); | 130 | int timeHeight = fm.height(); |
131 | timeHeight -= (timeHeight/4-2); | 131 | timeHeight -= (timeHeight/4-2); |
132 | int borderWidth = 2; | 132 | int borderWidth = 2; |
133 | QFont nFont = p->font(); | 133 | QFont nFont = p->font(); |
134 | QFont sFont = nFont; | 134 | QFont sFont = nFont; |
135 | sFont.setPointSize( sFont.pointSize()/2+2 ); | 135 | sFont.setPointSize( sFont.pointSize()/2+2 ); |
136 | if (!KGlobal::locale()->use12Clock()) | 136 | if (!KGlobal::locale()->use12Clock()) |
137 | suffix = "00"; | 137 | suffix = "00"; |
138 | else | ||
139 | borderWidth = 0; | ||
138 | QFontMetrics fmS( sFont ); | 140 | QFontMetrics fmS( sFont ); |
139 | int sHei = fmS.height(); | 141 | int sHei = fmS.height(); |
140 | if ( timeHeight > mCellHeight ) { | 142 | if ( timeHeight > mCellHeight ) { |
141 | timeHeight = mCellHeight-1; | 143 | timeHeight = mCellHeight-1; |
142 | sHei -= 2; | 144 | sHei -= 2; |
143 | } | 145 | } |
144 | 146 | ||
145 | while (y < cy + ch) { | 147 | while (y < cy + ch) { |
146 | p->drawLine(cx,y,cx+tW,y); | 148 | p->drawLine(cx,y,cx+tW,y); |
147 | hour.setNum(cell); | 149 | hour.setNum(cell); |
148 | 150 | ||
149 | // handle 24h and am/pm time formats | 151 | // handle 24h and am/pm time formats |
diff --git a/korganizer/koeditorgeneral.cpp b/korganizer/koeditorgeneral.cpp index cf0d4ae..92fcd1c 100644 --- a/korganizer/koeditorgeneral.cpp +++ b/korganizer/koeditorgeneral.cpp | |||
@@ -377,25 +377,27 @@ void KOEditorGeneral::setDefaults(bool allDay) | |||
377 | mLocationEdit->setEditText(""); | 377 | mLocationEdit->setEditText(""); |
378 | mDescriptionEdit->setText(""); | 378 | mDescriptionEdit->setText(""); |
379 | mAlarmSound = KOPrefs::instance()->mDefaultAlarmFile; | 379 | mAlarmSound = KOPrefs::instance()->mDefaultAlarmFile; |
380 | setCategories(""); | 380 | setCategories(""); |
381 | } | 381 | } |
382 | void KOEditorGeneral::setSecrecy( int num ) | 382 | void KOEditorGeneral::setSecrecy( int num ) |
383 | { | 383 | { |
384 | mSecrecyCombo->setCurrentItem(num); | 384 | mSecrecyCombo->setCurrentItem(num); |
385 | } | 385 | } |
386 | void KOEditorGeneral::readIncidence(Incidence *event) | 386 | void KOEditorGeneral::readIncidence(Incidence *event) |
387 | { | 387 | { |
388 | 388 | ||
389 | mAlarmMessage = event->summary(); | 389 | mAlarmMessage = event->summary(); |
390 | if ( ! event->location().isEmpty() ) | ||
391 | mAlarmMessage += " ("+event->location()+")"; | ||
390 | mAlarmIncrCombo->setCurrentItem(0); | 392 | mAlarmIncrCombo->setCurrentItem(0); |
391 | mSummaryEdit->setEditText(event->summary()); | 393 | mSummaryEdit->setEditText(event->summary()); |
392 | mLocationEdit->setEditText(event->location()); | 394 | mLocationEdit->setEditText(event->location()); |
393 | mDescriptionEdit->setText(event->description()); | 395 | mDescriptionEdit->setText(event->description()); |
394 | 396 | ||
395 | #if 0 | 397 | #if 0 |
396 | // organizer information | 398 | // organizer information |
397 | mOwnerLabel->setText(i18n("Owner: ") + event->organizer()); | 399 | mOwnerLabel->setText(i18n("Owner: ") + event->organizer()); |
398 | #endif | 400 | #endif |
399 | 401 | ||
400 | enableAlarmEdit( event->isAlarmEnabled() ); | 402 | enableAlarmEdit( event->isAlarmEnabled() ); |
401 | //qDebug("KOEditorGeneral::readIncidence(Incidence *event) "); | 403 | //qDebug("KOEditorGeneral::readIncidence(Incidence *event) "); |