Files
qt-creator/tests/auto/qml/codemodel/check/inline-components.qml
Fawzi Mohamed 5c1cbf6b3f qmljs: support inline components
* add inline components to bind.
* inserts inline components in the component that contains them (makes
  Context:lookupType simpler)
* unify Context:lookupType overloads without adding extra heap allocations
  using a template (avoid code duplication)
* add tests for inline components
* warn about nested components
* use model manager to load dependencies in tst_check (old test did
  not load dependencies and simply skipped all checks on imports)

Fixes: QTCREATORBUG-24766
Fixes: QTCREATORBUG-24705
Change-Id: Ibcade7752cdaa08e960f66db3a724ab7fb3268cf
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2021-02-03 09:53:08 +00:00

14 lines
276 B
QML

// LabeledImageBox.qml
import QtQuick 2.15
import "./InlineComponent.qml"
Rectangle {
property alias caption: image.caption
property alias source: image.source
border.width: 2
border.color: "black"
InlineComponent.LabeledImage {
id: image
}
}