From 290aa31ff63896d53b05b8654523a2380f4506a0 Mon Sep 17 00:00:00 2001 From: Duduf Date: Mon, 29 Apr 2024 20:22:57 +0200 Subject: [PATCH] Fix Qt 5.12 compatibility (for ubuntu LTS) --- src/smallwidgets/scheduleentrycreationdialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/smallwidgets/scheduleentrycreationdialog.cpp b/src/smallwidgets/scheduleentrycreationdialog.cpp index d6e7f9b0..1786926d 100644 --- a/src/smallwidgets/scheduleentrycreationdialog.cpp +++ b/src/smallwidgets/scheduleentrycreationdialog.cpp @@ -33,5 +33,9 @@ QString ScheduleEntryCreationDialog::title() const QString ScheduleEntryCreationDialog::comment() const { +#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) return ui_commentEdit->toMarkdown(); +#else + return ui_commentEdit->toPlainText(); +#endif }