Fix binding errors in cppextensions examples.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Wed, 20 Jun 2012 04:11:02 +0000 (14:11 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 20 Jun 2012 05:45:20 +0000 (07:45 +0200)
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>
examples/qml/cppextensions/referenceexamples/attached/example.qml
examples/qml/cppextensions/referenceexamples/binding/example.qml
examples/qml/cppextensions/referenceexamples/grouped/example.qml
examples/qml/cppextensions/referenceexamples/signal/example.qml
examples/qml/cppextensions/referenceexamples/valuesource/example.qml

index 6a83af2..aaf998d 100644 (file)
@@ -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 }
     }
index 99a0098..9d46adc 100644 (file)
@@ -39,6 +39,7 @@
 ****************************************************************************/
 
 import People 1.0
+import QtQuick 2.0  // For QColor
 
 // ![0]
 BirthdayParty {
index 9ae80f2..22923ca 100644 (file)
@@ -39,6 +39,7 @@
 ****************************************************************************/
 
 import People 1.0
+import QtQuick 2.0  // For QColor
 
 // ![0]
 BirthdayParty {
index 796c2f3..db959ff 100644 (file)
@@ -39,6 +39,7 @@
 ****************************************************************************/
 
 import People 1.0
+import QtQuick 2.0  // For QColor
 
 BirthdayParty {
 // ![0]
index 04c3048..4c25ceb 100644 (file)
@@ -39,6 +39,7 @@
 ****************************************************************************/
 
 import People 1.0
+import QtQuick 2.0  // For QColor
 
 // ![0]
 BirthdayParty {