aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/insight/insightview.h
blob: e39f34239c2a46c27f6a87f14efdc0df0a3dd782 (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
// 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 InsightView : public AbstractView
{
    Q_OBJECT

public:
    explicit InsightView(ExternalDependenciesInterface &externalDependencies);
    ~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