-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.10
-
dc5d14c3963e25a3664ed116856e7f604e43b7af
Input file
/*
Copyright (C) 2022 Acme Inc.
*/
pragma Singleton
import QtQml 2.15
/*!
\qmltype FormatterDemo
\inqmlmodule MyModule
\brief Demonstrate an issue with qmlformat 5.15
*/
QtObject {
id: myObject
}
// TODO: Add foo
Outcomes
- Qt 6.3.1: qmlformat does not change anything (correct)
- Qt 5.15.10: qmlformat rearranges sections in strange ways (wrong, especially with putting the copyright header between the import and the pragma):
// TODO: Add foo import QtQml 2.15 /* Copyright (C) 2022 Acme Inc. */ pragma Singleton /*! \qmltype FormatterDemo \inqmlmodule MyModule \brief Provide a small demo of issuer with qmlformat 5. */ QtObject { id: myObject }