Commit a7d713b0bad764d7af088f59b4833be6c95cca10

Authored by Agnelo Vaz
1 parent 2882f31b

Change sibbling order of buttons in svg example

Change-Id: I93398c5ff1f7dcdd4820cf90ebc11e81fee0fa05
examples/image-view-svg/image-view-svg-example.cpp
... ... @@ -16,6 +16,7 @@
16 16 */
17 17  
18 18 #include <dali-toolkit/dali-toolkit.h>
  19 +#include <dali/devel-api/actors/actor-devel.h>
19 20 #include <string.h>
20 21  
21 22 using namespace Dali;
... ... @@ -86,6 +87,7 @@ public:
86 87 changeButton.SetParentOrigin( ParentOrigin::TOP_RIGHT );
87 88 stage.Add( changeButton );
88 89 changeButton.ClickedSignal().Connect( this, &ImageSvgController::OnChangeButtonClicked );
  90 + changeButton.SetProperty( DevelActor::Property::SIBLING_ORDER, 1 );
89 91  
90 92 // Push button, for resetting the actor size and position
91 93 Toolkit::PushButton resetButton = Toolkit::PushButton::New();
... ... @@ -94,6 +96,7 @@ public:
94 96 resetButton.SetParentOrigin( ParentOrigin::TOP_LEFT );
95 97 stage.Add( resetButton );
96 98 resetButton.ClickedSignal().Connect( this, &ImageSvgController::OnResetButtonClicked );
  99 + resetButton.SetProperty( DevelActor::Property::SIBLING_ORDER, 1 );
97 100  
98 101 // Create and put imageViews to stage
99 102 for( unsigned int i=0; i<4u; i++)
... ...