blob: 00f2877d23498617a51d56c592f1528f4f1da59c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <abstractview.h>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <3rdparty/json/json.hpp>
namespace QmlDesigner {
class InsightModel;
class InsightWidget;
class QmlDesignerProjectManager;
class InsightView : public AbstractView
{
Q_OBJECT
public:
explicit InsightView(ExternalDependenciesInterface &externalDependencies,
QmlDesignerProjectManager &projectManager);
~InsightView() override;
// AbstractView
void modelAttached(Model *model) override;
WidgetInfo widgetInfo() override;
bool hasWidget() const override;
public slots:
private:
std::unique_ptr<InsightModel> m_insightModel;
QPointer<InsightWidget> m_insightWidget;
};
} // namespace QmlDesigner
|