blob: 551f909cc96e73f217bc2bc5d5087b026650f5b3 (
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
|
// Copyright (C) 2016 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 <QQuickImageProvider>
#include <QPointer>
namespace QmlDesigner {
namespace Internal {
class StatesEditorView;
class StatesEditorImageProvider : public QQuickImageProvider
{
public:
StatesEditorImageProvider();
QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize) override;
void setNodeInstanceView(NodeInstanceView *nodeInstanceView);
private:
QPointer<NodeInstanceView> m_nodeInstanceView;
};
} // namespace Internal
} // namespace QmlDesigner
|