Remove use of deprecated Control flag REQUIRES_STYLE_CHANGE_SIGNALS
[platform/core/uifw/dali-demo.git] / examples / text-label / expanding-buttons-impl.cpp
index ee2f87f..73003fc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -52,7 +52,7 @@ void ResetControls( std::vector< WeakHandle< Control > > controls, unsigned int
 
 
 Internal::ExpandingButtons::ExpandingButtons()
-: Control( ControlBehaviour( REQUIRES_STYLE_CHANGE_SIGNALS ) ),
+: Control( ControlBehaviour( CONTROL_BEHAVIOUR_DEFAULT ) ),
   mStyleButtonsHidden( false )
 {
 }
@@ -84,7 +84,7 @@ void ExpandingButtons::OnInitialize()
 void ExpandingButtons::OnRelayout( const Dali::Vector2& targetSize, Dali::RelayoutContainer& container )
 {
   mButtonSize = targetSize;
-  mExpandButton.SetSize( targetSize );
+  mExpandButton.SetProperty( Actor::Property::SIZE, targetSize );
 }
 
 void ExpandingButtons::RegisterButton( Dali::Toolkit::Control& control )