Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 90dafc34 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

User helper methods to convert between KDT and QDT

parent 938ad38e
......@@ -25,6 +25,7 @@
#include <CalendarSupport/KCalPrefs>
#include <KCalCore/ICalTimeZones>
#include <KCalCore/Utils>
#include <KCalUtils/IncidenceFormatter>
#include <QTimeZone>
......@@ -848,7 +849,7 @@ void IncidenceDateTime::updateStartToolTips()
if (mUi->mStartCheck->isChecked()) {
QString datetimeStr
= KCalUtils::IncidenceFormatter::dateTimeToString(
currentStartDateTime().dateTime(),
KCalCore::k2q(currentStartDateTime()),
mUi->mWholeDayCheck->isChecked(),
false);
mUi->mStartDateEdit->setToolTip(i18n("Starts: %1", datetimeStr));
......@@ -864,7 +865,7 @@ void IncidenceDateTime::updateEndToolTips()
if (mUi->mStartCheck->isChecked()) {
QString datetimeStr
= KCalUtils::IncidenceFormatter::dateTimeToString(
currentEndDateTime().dateTime(),
KCalCore::k2q(currentEndDateTime()),
mUi->mWholeDayCheck->isChecked(),
false);
if (mLoadedIncidence->type() == KCalCore::Incidence::TypeTodo) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment