X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=docs%2Fcontent%2Fexample-code%2Fproperty-example.cpp;h=e0f40e65919d6774920499d29a8bac5f01c0e4db;hp=35e7869cbc2d0e5e77c1d4c8800bc6574f3a68bc;hb=6d45926c0a3021341e86c10accab175be3126414;hpb=bf2e33bdeb3e28c8d207a9b193d48443d73559b8 diff --git a/docs/content/example-code/property-example.cpp b/docs/content/example-code/property-example.cpp index 35e7869..e0f40e6 100644 --- a/docs/content/example-code/property-example.cpp +++ b/docs/content/example-code/property-example.cpp @@ -101,7 +101,7 @@ class PropertyButtonsController: public ConnectionTracker } // Create the last selected button text view. - mTagText = Toolkit::TextView::New( "None selected" ); + mTagText = Toolkit::TextLabel::New( "None selected" ); mTagText.SetParentOrigin( ParentOrigin::BOTTOM_CENTER ); mTagText.SetAnchorPoint( AnchorPoint::BOTTOM_CENTER ); mTagText.SetPosition( Vector3( 0.0f, -30.0f, 0.0f ) ); @@ -121,14 +121,14 @@ class PropertyButtonsController: public ConnectionTracker // Property::Index index = button.GetPropertyIndex( TAG_PROPERTY_NAME ); valueText << "Selected: " << button.GetProperty< float >( mTagPropertyIndex ); - mTagText.SetText( valueText.str() ); + mTagText.SetProperty( TextLabel::Property::TEXT, valueText.str() ); return true; } private: - Toolkit::TextView mTagText; ///< A text label used to show the last button pressed. + Toolkit::TextLabel mTagText; ///< A text label used to show the last button pressed. Property::Index mTagPropertyIndex; ///< A cached property index of our custom tag property. };