summaryrefslogtreecommitdiffabout
path: root/libkcal/phoneformat.cpp
Side-by-side diff
Diffstat (limited to 'libkcal/phoneformat.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libkcal/phoneformat.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/libkcal/phoneformat.cpp b/libkcal/phoneformat.cpp
index 94744fb..bc1b863 100644
--- a/libkcal/phoneformat.cpp
+++ b/libkcal/phoneformat.cpp
@@ -158,7 +158,7 @@ public:
break;
}
}
- QString alarmString = "";
+ QString alarmString = "na";
if ( alarm ) {
Alarm *alarm;
if ( todo->alarms().count() > 0 )
@@ -176,6 +176,8 @@ public:
Alarm *alarm;
if ( todo->alarms().count() > 0 ) {
alarm = todo->alarms().first();
+ alarm->setType( Alarm::Audio );
+ alarm->setStartOffset( -60*15 );
alarm->setEnabled( false );
}
}
@@ -441,7 +443,7 @@ public:
QStringList categoryList;
categoryList << getCategory( Note );
event->setCategories( categoryList );
- QString alarmString = "";
+ QString alarmString = "na";
// strange 0 semms to mean: alarm enabled
if ( alarm ) {
Alarm *alarm;
@@ -460,6 +462,8 @@ public:
Alarm *alarm;
if ( event->alarms().count() > 0 ) {
alarm = event->alarms().first();
+ alarm->setType( Alarm::Audio );
+ alarm->setStartOffset( -60*15 );
alarm->setEnabled( false );
}
}