6#include <private/qqmljsdiagnosticmessage_p.h>
8#include <QtCore/qdebug.h>
9#include <QtCore/qfile.h>
10#include <QtCore/qstringlist.h>
11#include <QtCore/qvector.h>
13#include <QtCore/qobject.h>
14#include <QtCore/qpointer.h>
55 return a.url ==
b.url &&
a.object ==
b.object &&
a.message ==
b.message
56 &&
a.type ==
b.type &&
a.line ==
b.line &&
a.column ==
b.column;
103 delete d; d =
nullptr;
272 return a.d ==
b.d || (
a.d &&
b.d && *
a.d == *
b.d);
297 if (lines.size() >=
error.line()) {
301 if(
error.column() > 0) {
void reserve(qsizetype size)
Attempts to allocate memory for at least size bytes.
const char * constData() const noexcept
Returns a pointer to the const data stored in the byte array.
QByteArray & append(char c)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QPointer< QObject > object
friend bool operator==(const QQmlErrorPrivate &a, const QQmlErrorPrivate &b)
The QQmlError class encapsulates a QML error.
int column() const
Returns the error column number.
void setObject(QObject *)
Sets the nearest object where this error occurred.
QString description() const
Returns the error description.
QQmlError()
Creates an empty error object.
void setColumn(int)
Sets the error column number.
QObject * object() const
Returns the nearest object where this error occurred.
void setLine(int)
Sets the error line number.
QtMsgType messageType() const
int line() const
Returns the error line number.
QUrl url() const
Returns the url for the file that caused this error.
void setDescription(const QString &)
Sets the error description.
QQmlError & operator=(const QQmlError &)
Assigns other to this error object.
bool isValid() const
Returns true if this error is valid, otherwise false.
QString toString() const
Returns the error as a human readable string.
void setUrl(const QUrl &)
Sets the url for the file that caused this error.
void setMessageType(QtMsgType messageType)
static QString urlToLocalFileOrQrc(const QString &)
If url is a local file returns a path suitable for passing to QFile.
\macro QT_RESTRICTED_CAST_FROM_ASCII
QStringList split(const QString &sep, Qt::SplitBehavior behavior=Qt::KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Splits the string into substrings wherever sep occurs, and returns the list of those strings.
qsizetype size() const
Returns the number of characters in this string.
const QChar at(qsizetype i) const
Returns the character at the given index position in the string.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
QByteArray toLocal8Bit() const &
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool isEmpty() const
Returns true if the URL has no data; otherwise returns false.
QString scheme() const
Returns the scheme of the URL.
QString toString(FormattingOptions options=FormattingOptions(PrettyDecoded)) const
Returns a string representation of the URL.
QString path(ComponentFormattingOptions options=FullyDecoded) const
Returns the path of the URL.
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
constexpr const T & qMin(const T &a, const T &b)
constexpr const T & qMax(const T &a, const T &b)
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLenum GLsizei void GLsizei void * column
bool operator==(const QQmlError &a, const QQmlError &b)
QDebug operator<<(QDebug debug, const QQmlError &error)
#define qPrintable(string)
QLatin1StringView QLatin1String
QUrl url("example.com")
[constructor-url-reference]
\inmodule QtCore \reentrant