From 4501a50fa0fdc9a9e9b8391c1f3e2e67612fffa1 Mon Sep 17 00:00:00 2001 From: "huiyu.eun" Date: Tue, 13 Mar 2018 11:12:35 +0900 Subject: [PATCH] Revert "[4.0] Change FittingMode on Item view demos." This reverts commit afeec33556b7136c0cfc39132bcb25d67c5cb48e. Change-Id: I7abc4dfe14a4e1258aeec22f8a0ed01221e72cee --- examples/clipping/clipping-item-factory.cpp | 11 ++--------- examples/item-view/item-view-example.cpp | 10 ++-------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/examples/clipping/clipping-item-factory.cpp b/examples/clipping/clipping-item-factory.cpp index f6cf377..1233831 100644 --- a/examples/clipping/clipping-item-factory.cpp +++ b/examples/clipping/clipping-item-factory.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2017 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. @@ -23,8 +23,6 @@ #include #include #include -#include -#include using namespace Dali; using namespace Dali::Toolkit; @@ -104,12 +102,7 @@ unsigned int ClippingItemFactory::GetNumberOfItems() Actor ClippingItemFactory::NewItem( unsigned int itemId ) { // Create an image view for this item - Property::Map propertyMap; - propertyMap.Insert(Visual::Property::TYPE, Visual::IMAGE); - propertyMap.Insert(ImageVisual::Property::URL, IMAGE_PATHS[ itemId % NUM_IMAGES ] ); - propertyMap.Insert(DevelVisual::Property::FITTING_MODE, DevelVisual::FILL); - ImageView actor = ImageView::New(); - actor.SetProperty(Toolkit::ImageView::Property::IMAGE, propertyMap); + ImageView actor = ImageView::New( IMAGE_PATHS[ itemId % NUM_IMAGES ] ); // Add a border image child actor ImageView borderActor = ImageView::New(); diff --git a/examples/item-view/item-view-example.cpp b/examples/item-view/item-view-example.cpp index 61dce2d..d7e7b9b 100644 --- a/examples/item-view/item-view-example.cpp +++ b/examples/item-view/item-view-example.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2017 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. @@ -21,7 +21,6 @@ #include #include #include -#include using namespace Dali; using namespace Dali::Toolkit; @@ -867,12 +866,7 @@ public: // From ItemFactory virtual Actor NewItem(unsigned int itemId) { // Create an image view for this item - Property::Map propertyMap; - propertyMap.Insert(Toolkit::Visual::Property::TYPE, Visual::IMAGE); - propertyMap.Insert(ImageVisual::Property::URL, IMAGE_PATHS[ itemId % NUM_IMAGES ] ); - propertyMap.Insert(DevelVisual::Property::FITTING_MODE, DevelVisual::FILL); - ImageView actor = ImageView::New(); - actor.SetProperty( Toolkit::ImageView::Property::IMAGE, propertyMap ); + ImageView actor = ImageView::New( IMAGE_PATHS[ itemId % NUM_IMAGES ] ); actor.SetZ( 0.0f ); actor.SetPosition( INITIAL_OFFSCREEN_POSITION ); -- 2.7.4