4#ifndef QQMLJSVALUETYPEFROMSTRINGCHECK_H
5#define QQMLJSVALUETYPEFROMSTRINGCHECK_H
18#include <QtCore/qglobal.h>
19#include <QtCore/qstring.h>
21#include <qtqmlcompilerexports.h>
28 bool constructedFromInvalidString =
false;
30 bool isValid()
const {
return !code.
isEmpty() || constructedFromInvalidString; }
35 return { enhancedString,
false };
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool isEmpty() const noexcept
Returns true if the string has no characters; otherwise returns false.
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
static QQmlJSStructuredTypeError withValidString()
static QQmlJSStructuredTypeError withInvalidString()
static QQmlJSStructuredTypeError fromSuggestedString(const QString &enhancedString)