[Tizen] Restore behavior of Uploaded and LoadingFinished signal
authorminho.sun <minho.sun@samsung.com>
Thu, 2 Aug 2018 01:23:43 +0000 (10:23 +0900)
committerminho.sun <minho.sun@samsung.com>
Thu, 2 Aug 2018 01:23:50 +0000 (10:23 +0900)
This reverts commit 24f4d30f14ffce268d002da4fa81a5bcb7b5dea8.

Change-Id: I028fa935914c2fb37439ae4ceaab68e4b534b6bf

dali-toolkit/internal/controls/image-view/image-view-impl.cpp
dali-toolkit/internal/controls/image-view/image-view-impl.h

index f709559..3406962 100755 (executable)
@@ -213,6 +213,22 @@ void ImageView::SetDepthIndex( int depthIndex )
   }
 }
 
+void ImageView::OnStageConnection( int depth )
+{
+  if( mImage )
+  {
+    mImage.UploadedSignal().Emit( mImage );
+  }
+
+  Dali::ResourceImage resourceImage = Dali::ResourceImage::DownCast( mImage );
+  if( resourceImage )
+  {
+    resourceImage.LoadingFinishedSignal().Emit( resourceImage );
+  }
+
+  Control::OnStageConnection( depth ); // Enabled visuals will be put on stage
+}
+
 Vector3 ImageView::GetNaturalSize()
 {
   if( mVisual )
index 32867bf..75d5c49 100644 (file)
@@ -128,6 +128,11 @@ private: // From Control
   void OnInitialize();
 
   /**
+   * @copydoc CustomActorImpl::OnStageConnection()
+   */
+  virtual void OnStageConnection( int depth );
+
+  /**
    * @copydoc Toolkit::Control::GetNaturalSize
    */
   virtual Vector3 GetNaturalSize();