Remove all Qt version checks and branches for <5.14.0 as such versions are no longer supported.

This commit is contained in:
Andre Rummler
2026-08-13 15:45:15 +02:00
parent deba8d0e4e
commit 7ba295a339
16 changed files with 8 additions and 135 deletions
+1 -11
View File
@@ -78,11 +78,7 @@
#include <QDialogButtonBox>
#include <QActionGroup>
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
#include <QStringView>
#else
#define QStringView QStringRef
#endif
QT_BEGIN_NAMESPACE
@@ -744,14 +740,8 @@ QString RichTextEditor::text(Qt::TextFormat format) const
return m_simplifyRichText ? simplifyRichTextFilter(toHtml()) : toHtml();
case Qt::AutoText:
break;
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
#else
#if TODO_LIST
#pragma message("@TODO remove code for QT 5.14 or later")
#endif
case Qt::MarkdownText: //This enum value was added in Qt 5.14.
case Qt::MarkdownText:
break;
#endif
default:
qInfo("(RichTextEditor::text) no valid switch: %d",format);
break;