diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/qmlcompiler/qqmljsmetatypes.cpp | 8 | ||||
-rw-r--r-- | src/qmlcompiler/qqmljsmetatypes_p.h | 2 | ||||
-rw-r--r-- | src/quick/util/qquickforeignutils_p.h | 2 |
3 files changed, 11 insertions, 1 deletions
diff --git a/src/qmlcompiler/qqmljsmetatypes.cpp b/src/qmlcompiler/qqmljsmetatypes.cpp index 7d16d46c59..afc7315adf 100644 --- a/src/qmlcompiler/qqmljsmetatypes.cpp +++ b/src/qmlcompiler/qqmljsmetatypes.cpp @@ -52,6 +52,14 @@ QString QQmlJSMetaPropertyBinding::stringValue() const return {}; } +QString QQmlJSMetaPropertyBinding::regExpValue() const +{ + if (auto regexpLiteral = std::get_if<Content::RegexpLiteral>(&m_bindingContent)) + return regexpLiteral->value; + // warn + return {}; +} + /*! \internal Uses \a resolver to return the correct type for the stored literal diff --git a/src/qmlcompiler/qqmljsmetatypes_p.h b/src/qmlcompiler/qqmljsmetatypes_p.h index e101cbefc1..75f635d5d0 100644 --- a/src/qmlcompiler/qqmljsmetatypes_p.h +++ b/src/qmlcompiler/qqmljsmetatypes_p.h @@ -665,6 +665,8 @@ public: QString stringValue() const; + QString regExpValue() const; + QSharedPointer<const QQmlJSScope> literalType(const QQmlJSTypeResolver *resolver) const; QQmlJSMetaMethod::RelativeFunctionIndex scriptIndex() const diff --git a/src/quick/util/qquickforeignutils_p.h b/src/quick/util/qquickforeignutils_p.h index 118ae21189..25e2f7e998 100644 --- a/src/quick/util/qquickforeignutils_p.h +++ b/src/quick/util/qquickforeignutils_p.h @@ -4,7 +4,7 @@ #ifndef QTQUICKFOREIGN_P_H #define QTQUICKFOREIGN_P_H -#include <qtquickglobal_p.h> +#include <QtQuick/private/qtquickglobal_p.h> #include <QtGui/qstylehints.h> #if QT_CONFIG(im) |