[Tizen] Restore behavior of Uploaded and LoadingFinished signal accepted/tizen/unified/20190423.113348 submit/tizen/20190422.065627
authorWonsik Jung <sidein@samsung.com>
Mon, 22 Apr 2019 05:50:08 +0000 (14:50 +0900)
committerWonsik Jung <sidein@samsung.com>
Mon, 22 Apr 2019 05:50:18 +0000 (14:50 +0900)
This reverts commit 4ce217530c342059b6a7e16a94344a56280d1c24.

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();