Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqmljstypereader_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef QQMLJSTYPEREADER_P_H
5#define QQMLJSTYPEREADER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16
17#include "qqmljsscope_p.h"
18#include "qqmljsimporter_p.h"
20
21#include <QtQml/private/qqmljsastfwd_p.h>
22#include <QtQml/private/qqmljsdiagnosticmessage_p.h>
23
24#include <QtCore/qpair.h>
25#include <QtCore/qset.h>
26
28
30{
31public:
33 : m_importer(importer)
34 , m_file(file)
35 {}
36
37 bool operator()(const QSharedPointer<QQmlJSScope> &scope);
38 QList<QQmlJS::DiagnosticMessage> errors() const { return m_errors; }
39
40private:
41 QQmlJSImporter *m_importer;
42 QString m_file;
43 QStringList m_qmldirFiles;
44 QList<QQmlJS::DiagnosticMessage> m_errors;
45};
46
48
49#endif // QQMLJSTYPEREADER_P_H
QQmlJSTypeReader(QQmlJSImporter *importer, const QString &file)
bool operator()(const QSharedPointer< QQmlJSScope > &scope)
QList< QQmlJS::DiagnosticMessage > errors() const
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
QFile file
[0]