From 941aaf708757349077415af5efad6ac0d277857c Mon Sep 17 00:00:00 2001 From: David Varley Date: Sun, 4 Oct 2020 20:51:07 +1100 Subject: [PATCH] Fix build for Qt < 5.10 --- sources/richtext/richtexteditor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sources/richtext/richtexteditor.cpp b/sources/richtext/richtexteditor.cpp index 9fe9d2321..3c45456d9 100644 --- a/sources/richtext/richtexteditor.cpp +++ b/sources/richtext/richtexteditor.cpp @@ -77,6 +77,12 @@ #include #include +#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) +#include +#else +#define QStringView QStringRef +#endif + QT_BEGIN_NAMESPACE //static const char RichTextDialogGroupC[] = "RichTextDialog";