[Tizen] Restore behavior of Uploaded and LoadingFinished signal accepted/tizen/unified/20190213.071850 submit/tizen/20190212.091035
authorJoogab Yun <joogab.yun@samsung.com>
Tue, 12 Feb 2019 07:08:14 +0000 (16:08 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Tue, 12 Feb 2019 07:08:18 +0000 (16:08 +0900)
This reverts commit e30daed9851f344322a94c5d1e0f27e9e84f4244.

Change-Id: I9fc86eb7e10f3f94f964d064343910d455f45779

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

index 96b1b78..eba1085 100755 (executable)
@@ -233,6 +233,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 4f05648..8b44b5f 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();