diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-02-16 13:56:34 +0100 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-02-22 16:11:11 +0000 |
commit | d913f5d886f07a37ee845dc11bab9bbf8979c601 (patch) | |
tree | 46f8cca15c21be8975134598c8bccaaff4b59fec | |
parent | 456a94924439831b19b5d8a6713374d55d706504 (diff) | |
download | qt-creator-d913f5d886f07a37ee845dc11bab9bbf8979c601.tar.gz |
QmlDesigner: Add comment to .ui.qml files
Add comment to the beginning of .ui.qml files that explains that
.ui.qml files are declarative.
Task-number: QDS-5964
Change-Id: Ie49bae33fb18ee42d4ab20986b72c2deadd5b734
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
-rw-r--r-- | share/qtcreator/qmldesigner/studio_templates/files/qtuiquickfile/file.qml.tpl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/studio_templates/files/qtuiquickfile/file.qml.tpl b/share/qtcreator/qmldesigner/studio_templates/files/qtuiquickfile/file.qml.tpl index f77f7d99c9..47ca3af299 100644 --- a/share/qtcreator/qmldesigner/studio_templates/files/qtuiquickfile/file.qml.tpl +++ b/share/qtcreator/qmldesigner/studio_templates/files/qtuiquickfile/file.qml.tpl @@ -1,3 +1,10 @@ +/* +This is a UI file (.ui.qml) that is intended to be edited in Qt Design Studio only. +It is supposed to be strictly declarative and only uses a subset of QML. If you edit +this file manually, you might introduce QML code that is not supported by Qt Design Studio. +Check out https://doc.qt.io/qtcreator/creator-quick-ui-forms.html for details on .ui.qml files. +*/ + import QtQuick 2.15 @if %{UseQtQuickControls2} import QtQuick.Controls 2.15 |