aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml/cppextensions/referenceexamples/attached/example.qml
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-06-20 14:11:02 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-20 07:45:20 +0200
commite57c04a18b6a8e593a7e89301b0a63456f2aee21 (patch)
tree54a9723ffc6f1c0a3fd5cc33e3106c6bb99f45a1 /examples/qml/cppextensions/referenceexamples/attached/example.qml
parentfa5da73d3f72921a1714723d2b9794c1c29882b8 (diff)
Fix binding errors in cppextensions examples.
Import QtQuick 2.0 for value type support in the examples which use QColor. Task-number: QTBUG-26207 Change-Id: I1a477f7b9ff90862d64e2d5545171728c6f97aaa Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'examples/qml/cppextensions/referenceexamples/attached/example.qml')
-rw-r--r--examples/qml/cppextensions/referenceexamples/attached/example.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/qml/cppextensions/referenceexamples/attached/example.qml b/examples/qml/cppextensions/referenceexamples/attached/example.qml
index 6a83af2804..aaf998d386 100644
--- a/examples/qml/cppextensions/referenceexamples/attached/example.qml
+++ b/examples/qml/cppextensions/referenceexamples/attached/example.qml
@@ -39,6 +39,7 @@
****************************************************************************/
import People 1.0
+import QtQuick 2.0 // For QColor
//! [begin]
BirthdayParty {
@@ -58,7 +59,7 @@ BirthdayParty {
BirthdayParty.rsvp: "2009-07-06"
}
// ![1]
- Boy {
+ host: Boy {
name: "Jack Smith"
shoe { size: 8; color: "blue"; brand: "Puma"; price: 19.95 }
}