Renaming of enum values for coding standards compliance.
[platform/core/uifw/dali-demo.git] / examples / text-editor / text-editor-example.cpp
index 4fb9fc9..35b8e60 100644 (file)
@@ -147,7 +147,7 @@ public:
     mColorContainer.Add( mColorButtonOption );
 
     //Add label to toolbar, which will also add the color button next to it.
-    mToolBar.AddControl( colorLabel, viewStyle.mToolBarButtonPercentage, Toolkit::Alignment::HorizontalLeft, DemoHelper::DEFAULT_MODE_SWITCH_PADDING  );
+    mToolBar.AddControl( colorLabel, viewStyle.mToolBarButtonPercentage, Toolkit::Alignment::HORIZONTAL_LEFT, DemoHelper::DEFAULT_MODE_SWITCH_PADDING  );
 
     // Create the text editor.
     mEditor = TextEditor::New();
@@ -220,7 +220,7 @@ public:
 
   void OnKeyEvent( const KeyEvent& event )
   {
-    if( event.state == KeyEvent::Down )
+    if( event.GetState() == KeyEvent::DOWN )
     {
       if( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) )
       {