forked from qt-creator/qt-creator
The nullptr does crash. We can use a proper QmlJSQuickFixAssistInterface created from the editor instead. Task-number: QDS-9573 Change-Id: I5ea2792acb311c37e1005ff039ed7110503dfb4f Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
21 lines
698 B
C++
21 lines
698 B
C++
// 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);
|
|
|
|
} // namespace QmlJSEditor
|