summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Krause <[email protected]>2017-04-11 20:39:45 +0200
committerVolker Krause <[email protected]>2017-04-11 20:39:52 +0200
commit0d6f4d033855856c2ae9b048bde1096f17c7ee0d (patch)
tree96e76d742fea5556b6923673e6f62433394f3c19
parentd2dca7a91afe2f84cc3b288a917fb8003172ccc6 (diff)
Port alarm trigger time from KDateTime to QDateTime
-rw-r--r--korgac/alarmdialog.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/korgac/alarmdialog.cpp b/korgac/alarmdialog.cpp
index e33c645..5d3fb61 100644
--- a/korgac/alarmdialog.cpp
+++ b/korgac/alarmdialog.cpp
@@ -101,7 +101,7 @@ public:
const Akonadi::Item mIncidence;
QDateTime mRemindAt;
- KDateTime mTrigger;
+ QDateTime mTrigger;
KDateTime mHappening;
bool mNotified;
};
@@ -333,7 +333,7 @@ void AlarmDialog::addIncidence(const Akonadi::Item &incidenceitem,
item->mNotified = false;
item->mHappening = KDateTime();
item->mRemindAt = reminderAt;
- item->mTrigger = KDateTime::currentLocalDateTime();
+ item->mTrigger = QDateTime::currentDateTime();
item->mDisplayText = displayText;
item->setText(0, cleanSummary(incidence->summary()));
@@ -350,8 +350,7 @@ void AlarmDialog::addIncidence(const Akonadi::Item &incidenceitem,
item->mHappening = dateTime;
item->setText(1, displayStr);
- item->setText(2, IncidenceFormatter::dateTimeToString(
- item->mTrigger, false, true, KDateTime::Spec::LocalZone()));
+ item->setText(2, QLocale().toString(item->mTrigger, QLocale::ShortFormat));
QString tip =
IncidenceFormatter::toolTipStr(
CalendarSupport::displayName(mCalendar.data(), incidenceitem.parentCollection()),