mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-15 02:54:12 +02:00
Remove all Qt version checks and branches for <5.14.0 as such versions are no longer supported.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user