Change sibbling order of buttons in svg example 20/104920/1
authorAgnelo Vaz <agnelo.vaz@samsung.com>
Wed, 14 Dec 2016 17:58:26 +0000 (17:58 +0000)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Wed, 14 Dec 2016 17:58:26 +0000 (17:58 +0000)
Change-Id: I93398c5ff1f7dcdd4820cf90ebc11e81fee0fa05

examples/image-view-svg/image-view-svg-example.cpp

index 859933c..5617a73 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include <dali-toolkit/dali-toolkit.h>
+#include <dali/devel-api/actors/actor-devel.h>
 #include <string.h>
 
 using namespace Dali;
@@ -86,6 +87,7 @@ public:
     changeButton.SetParentOrigin( ParentOrigin::TOP_RIGHT );
     stage.Add( changeButton );
     changeButton.ClickedSignal().Connect( this, &ImageSvgController::OnChangeButtonClicked );
+    changeButton.SetProperty( DevelActor::Property::SIBLING_ORDER, 1 );
 
     // Push button, for resetting the actor size and position
     Toolkit::PushButton resetButton = Toolkit::PushButton::New();
@@ -94,6 +96,7 @@ public:
     resetButton.SetParentOrigin( ParentOrigin::TOP_LEFT );
     stage.Add( resetButton );
     resetButton.ClickedSignal().Connect( this, &ImageSvgController::OnResetButtonClicked );
+    resetButton.SetProperty( DevelActor::Property::SIBLING_ORDER, 1 );
 
     // Create and put imageViews to stage
     for( unsigned int i=0; i<4u; i++)