Details
-
Bug
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
Qt Creator 14.0.2
-
None
Description
If I have a QML file
// Copyright (C) 2021 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause import QtQuick import QtQuick.Shapes pragma ComponentBehavior: Bound Rectangle {
after doing Tools > QML/JS > Reformat File this becames
// Copyright (C) 2021 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause import QtQuick import QtQuick.Shapes pragma ComponentBehavior Rectangle {
-> pragma and QML file are now broken.
If I run the same code through qmlformat tool (from Qt 6.7), it handles the pragma without issues.