From: Kimmo Hoikka Date: Wed, 27 May 2015 14:52:06 +0000 (+0100) Subject: Updated needed for Internal::Control cleanup X-Git-Tag: accepted/tizen/common/20150529.134111^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49fdbca4c0382c4b8f437a46f3543330d307e1ff;p=platform%2Fcore%2Fuifw%2Fdali-demo.git Updated needed for Internal::Control cleanup Change-Id: I017f05ad58a7c52c6c6d348835dcbbec025a3091 --- diff --git a/examples/cluster/cluster-impl.cpp b/examples/cluster/cluster-impl.cpp index 1185549..0edda67 100644 --- a/examples/cluster/cluster-impl.cpp +++ b/examples/cluster/cluster-impl.cpp @@ -92,7 +92,7 @@ void Cluster::OnInitialize() { } -void Cluster::OnControlSizeSet( const Vector3& targetSize ) +void Cluster::OnSizeSet( const Vector3& targetSize ) { mClusterSize = targetSize; GetImpl(mClusterStyle).SetClusterSize(targetSize); diff --git a/examples/cluster/cluster-impl.h b/examples/cluster/cluster-impl.h index f57c221..7c8a408 100644 --- a/examples/cluster/cluster-impl.h +++ b/examples/cluster/cluster-impl.h @@ -253,15 +253,15 @@ public: private: // From Control /** - * @copydoc Demo::Control::OnInitialize() + * @copydoc Control::OnInitialize() */ virtual void OnInitialize(); /** * - * @copydoc Demo::Control::OnControlSizeSet( const Vector3& targetSize ) + * @copydoc CustomActorImpl::OnSizeSet( const Vector3& targetSize ) */ - virtual void OnControlSizeSet( const Vector3& targetSize ); + virtual void OnSizeSet( const Vector3& targetSize ); protected: diff --git a/shared/view.h b/shared/view.h index ce27187..dcf8e9a 100644 --- a/shared/view.h +++ b/shared/view.h @@ -79,16 +79,12 @@ Dali::Layer CreateToolbar( Dali::Toolkit::ToolBar& toolBar, // Tool bar Dali::Image image = Dali::ResourceImage::New( toolbarImagePath ); - Dali::ImageActor toolBarBackground = Dali::ImageActor::New( image ); - toolBarBackground.SetName( "TOOLBAR_BACKGROUND" ); - toolBarBackground.SetResizePolicy( Dali::ResizePolicy::FILL_TO_PARENT, Dali::Dimension::ALL_DIMENSIONS ); toolBar = Dali::Toolkit::ToolBar::New(); toolBar.SetName( "TOOLBAR" ); - toolBar.SetBackground( toolBarBackground ); + toolBar.SetBackgroundImage( image ); toolBar.SetParentOrigin( Dali::ParentOrigin::TOP_CENTER ); toolBar.SetAnchorPoint( Dali::AnchorPoint::TOP_CENTER ); toolBar.SetResizePolicy( Dali::ResizePolicy::FILL_TO_PARENT, Dali::Dimension::ALL_DIMENSIONS ); - toolBarBackground.SetSortModifier(1.0f); // Add the tool bar to the too bar layer. toolBarLayer.Add( toolBar );