aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmljseditor/qmljscomponentfromobjectdef.h
blob: 1f723074556049e1f36e4229351f2b62905e4aed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include "qmljseditor_global.h"
#include "qmljsquickfix.h"

namespace QmlJSEditor {

class QmlJSEditorWidget;

QMLJSEDITOR_EXPORT void matchComponentFromObjectDefQuickFix(
    const Internal::QmlJSQuickFixAssistInterface *interface, QuickFixOperations &result);

QMLJSEDITOR_EXPORT void performComponentFromObjectDef(QmlJSEditorWidget *editor,
                                                      const QString &fileName,
                                                      QmlJS::AST::UiObjectDefinition *objDef,
                                                      const QString &importData);

} // namespace QmlJSEditor