[TBT][tbtcoreapp-dali][Non-ACR][Fixed dali app code] 78/166378/1
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Wed, 10 Jan 2018 02:09:30 +0000 (11:09 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Wed, 10 Jan 2018 02:11:06 +0000 (11:11 +0900)
- Changed the code using Deprecated API
- Make comments on PushButton SetSize

Change-Id: I4c7bfee0a8fff9622facc2e9c8300654987ed743
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
tbtcoreapp-dali/inc/utils/config.h
tbtcoreapp-dali/src/utils/dali-ui-utils.cpp

index 16fa782365f310851b9366a48c93aede6476d7dd..5d3dd1df8b721fb78033672e898a5de98714e26d 100644 (file)
@@ -73,7 +73,7 @@ extern bool __is_efl_test_running;
 
 #define TOOLBAR_BUTTON_DATA_KEY "button_id"
 
-#define LABEL_REL_PATH "res/"IMAGES_REL_FOLDER"/"
+#define LABEL_REL_PATH "res/IMAGES_REL_FOLDER/"
 #define LABEL_TEMPLATE "%s%s<br/>Dimension = %u x %u<br/>Result:E_SUCCESS"
 
 #define TABLE_PADDING_VERTICAL 20
index 4929f15b6e2557bd9ecb9eb784b0dde119fcfdfe..5412c6d796856018779ee241cae16b15f4cb85ad 100644 (file)
@@ -119,8 +119,8 @@ PushButton UiUtils::CreateVerdictButton(TableView parent, TableView::CellPositio
        PushButton button = PushButton::New();
        button.SetAnchorPoint(anchorPoint);
        button.SetPosition(position.x,position.y);
-       button.SetSize(size);
-       button.SetLabelText(label);
+       //button.SetSize(size);
+       button.SetProperty( Button::Property::LABEL, label );
        button.SetProperty(Button::Property::UNSELECTED_COLOR, selectedColor);
        button.SetProperty(Button::Property::SELECTED_COLOR, unselectedColor);
        parent.AddChild(button, cellPosition);
@@ -138,8 +138,8 @@ PushButton UiUtils::CreateButton(Vector3 anchorPoint, Vector2 position, std::str
        button.SetAnchorPoint(anchorPoint);
        //button.SetParentOrigin(parentOrigin);
        button.SetPosition(position.x,position.y);
-       button.SetSize(size);
-       button.SetLabelText(label);
+       //button.SetSize(size);
+       button.SetProperty( Button::Property::LABEL, label );
        button.SetProperty(Button::Property::UNSELECTED_COLOR, selectedColor);
        button.SetProperty(Button::Property::SELECTED_COLOR, unselectedColor);