X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Fsimple-visuals-control%2Fmy-control-impl.cpp;h=84e0acdf60229b6ba7346321c3188461713c366f;hb=027086a7150b7b8d78c5f079dc172e0a14bca7af;hp=9a2aa5117514d947b92a43528d647147865250db;hpb=e1b9c4861ebfe553da7bba67348fc102be8648dd;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/simple-visuals-control/my-control-impl.cpp b/examples/simple-visuals-control/my-control-impl.cpp index 9a2aa51..84e0acd 100644 --- a/examples/simple-visuals-control/my-control-impl.cpp +++ b/examples/simple-visuals-control/my-control-impl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 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. @@ -20,12 +20,10 @@ // EXTERNAL INCLUDES -#include #include #include #include #include -#include #include using namespace Dali; @@ -64,7 +62,7 @@ DALI_ENUM_TO_STRING_TABLE_END( VISUAL_PROPERTIES ) Internal::MyControl::MyControl() -: Control( ControlBehaviour( REQUIRES_STYLE_CHANGE_SIGNALS ) ) +: Control( ControlBehaviour( CONTROL_BEHAVIOUR_DEFAULT ) ) { } @@ -79,7 +77,7 @@ Demo::MyControl Internal::MyControl::New() void MyControl::OnInitialize() { Dali::Actor self = Self(); - self.SetKeyboardFocusable( true ); + self.SetProperty( Actor::Property::KEYBOARD_FOCUSABLE, true ); } void MyControl::SetProperty( BaseObject* object, Property::Index index, const Property::Value& value )