diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2018-10-22 14:06:25 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2018-10-25 11:22:34 +0000 |
commit | b26da0a8cdf3b342e42055f16190867aabf7aaf0 (patch) | |
tree | b63b9e767b63afa3e1fc075094f42c1c4227e9f2 /src/qml/qml/qqmlerror.h | |
parent | 6383908085e1b78b2ef92fb6a8665709ef48a519 (diff) |
Make QQmlDirParser and QQmlError available in QmlDevTools
We will need them for the QML language server. Also, always build all of
QQmlDirParser. The QT_CREATOR condition is mostly useless.
Change-Id: I476864b55f6ff3953c11e7887525a043a9405e00
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlerror.h')
-rw-r--r-- | src/qml/qml/qqmlerror.h | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/src/qml/qml/qqmlerror.h b/src/qml/qml/qqmlerror.h deleted file mode 100644 index ef529e3828..0000000000 --- a/src/qml/qml/qqmlerror.h +++ /dev/null @@ -1,87 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the QtQml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef QQMLERROR_H -#define QQMLERROR_H - -#include <QtQml/qtqmlglobal.h> - -#include <QtCore/qurl.h> -#include <QtCore/qstring.h> - -QT_BEGIN_NAMESPACE - -// ### Qt 6: should this be called QQmlMessage, since it can have a message type? -class QDebug; -class QQmlErrorPrivate; -class Q_QML_EXPORT QQmlError -{ -public: - QQmlError(); - QQmlError(const QQmlError &); - QQmlError &operator=(const QQmlError &); - ~QQmlError(); - - bool isValid() const; - - QUrl url() const; - void setUrl(const QUrl &); - QString description() const; - void setDescription(const QString &); - int line() const; - void setLine(int); - int column() const; - void setColumn(int); - QObject *object() const; - void setObject(QObject *); - QtMsgType messageType() const; - void setMessageType(QtMsgType messageType); - - QString toString() const; -private: - QQmlErrorPrivate *d; -}; - -QDebug Q_QML_EXPORT operator<<(QDebug debug, const QQmlError &error); - -Q_DECLARE_TYPEINFO(QQmlError, Q_MOVABLE_TYPE); - -QT_END_NAMESPACE - -#endif // QQMLERROR_H |