summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koeventviewer.cpp9
-rw-r--r--korganizer/komonthview.cpp4
-rw-r--r--libkcal/kincidenceformatter.cpp9
3 files changed, 12 insertions, 10 deletions
diff --git a/korganizer/koeventviewer.cpp b/korganizer/koeventviewer.cpp
index c8c2f28..6315827 100644
--- a/korganizer/koeventviewer.cpp
+++ b/korganizer/koeventviewer.cpp
@@ -283,4 +283,5 @@ void KOEventViewer::appendEvent(Event *event, int mode )
if ( mode == 0 ) {
addTag("h2",deTag(event->summary()));
+ formatReadOnly(event);
}
else {
@@ -297,4 +298,5 @@ void KOEventViewer::appendEvent(Event *event, int mode )
addTag("h2",i18n( "Remote: " ) +deTag(event->summary()));
}
+ formatReadOnly(event);
addTag("h3",i18n( "Last modified: " ) + KGlobal::locale()->formatDateTime(event->lastModified(),shortDate, true ) );
if ( mColorMode )
@@ -389,5 +391,4 @@ void KOEventViewer::appendEvent(Event *event, int mode )
formatCategories(event);
- formatReadOnly(event);
formatAttendees(event);
@@ -429,6 +430,8 @@ void KOEventViewer::appendTodo(Todo *event, int mode )
bool shortDate = KOPrefs::instance()->mShortDateInViewer;
bool wideScreen = ( QApplication::desktop()->width() >= 640 );
- if (mode == 0 )
+ if (mode == 0 ) {
addTag("h2",deTag(event->summary()));
+ formatReadOnly(event);
+ }
else {
if ( mColorMode == 1 ) {
@@ -443,4 +446,5 @@ void KOEventViewer::appendTodo(Todo *event, int mode )
addTag("h2",i18n( "Remote: " ) +deTag(event->summary()));
}
+ formatReadOnly(event);
addTag("h3",i18n( "Last modified: " ) + KGlobal::locale()->formatDateTime(event->lastModified(),shortDate, true ) );
if ( mColorMode )
@@ -504,5 +508,4 @@ void KOEventViewer::appendTodo(Todo *event, int mode )
formatCategories(event);
- formatReadOnly(event);
formatAttendees(event);
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp
index 475bb4a..cba85fa 100644
--- a/korganizer/komonthview.cpp
+++ b/korganizer/komonthview.cpp
@@ -316,6 +316,4 @@ void MonthViewItem::paint(QPainter *p)
bool sel = selected();
#endif
-
-
int heihei = height( listBox () );
int x = 1;
@@ -338,5 +336,4 @@ void MonthViewItem::paint(QPainter *p)
x += size + 1;
}
-
if ( KOPrefs::instance()->mMonthShowIcons ) {
if ( mInfo ) {
@@ -378,5 +375,4 @@ void MonthViewItem::paint(QPainter *p)
if ( mMultiday == 1 ) {
// p->fillRect ( x, yyy-sizeM/2+1, sizeM/2, size, QBrush ( QBrush::SolidPattern ) );
-
p->drawLine ( x+1, yyy-sizeM/2, x+1, yyy+sizeM/2 );
}
diff --git a/libkcal/kincidenceformatter.cpp b/libkcal/kincidenceformatter.cpp
index d1ace4f..9359fad 100644
--- a/libkcal/kincidenceformatter.cpp
+++ b/libkcal/kincidenceformatter.cpp
@@ -53,4 +53,5 @@ void KIncidenceFormatter::setEvent(Event *event)
if ( mode == 0 ) {
addTag("h3",deTag(event->summary()));
+ formatReadOnly(event);
}
else {
@@ -67,4 +68,5 @@ void KIncidenceFormatter::setEvent(Event *event)
addTag("h2",i18n( "Remote: " ) +deTag(event->summary()));
}
+ formatReadOnly(event);
addTag("h3",i18n( "Last modified: " ) + KGlobal::locale()->formatDateTime(event->lastModified(),shortDate, true ) );
if ( mColorMode )
@@ -144,5 +146,4 @@ void KIncidenceFormatter::setEvent(Event *event)
formatCategories(event);
- formatReadOnly(event);
formatAttendees(event);
@@ -179,6 +180,8 @@ void KIncidenceFormatter::setTodo(Todo *event )
mCurrentIncidence = event;
bool shortDate = true;
- if (mode == 0 )
+ if (mode == 0 ) {
addTag("h3",deTag(event->summary()));
+ formatReadOnly(event);
+ }
else {
if ( mColorMode == 1 ) {
@@ -193,4 +196,5 @@ void KIncidenceFormatter::setTodo(Todo *event )
addTag("h2",i18n( "Remote: " ) +deTag(event->summary()));
}
+ formatReadOnly(event);
addTag("h3",i18n( "Last modified: " ) + KGlobal::locale()->formatDateTime(event->lastModified(),shortDate, true ) );
if ( mColorMode )
@@ -248,5 +252,4 @@ void KIncidenceFormatter::setTodo(Todo *event )
formatCategories(event);
- formatReadOnly(event);
formatAttendees(event);
if ( mCreated ) {