[Tizen] Restore behavior of Uploaded and LoadingFinished signal
authorSeungho, Baek <sbsh.baek@samsung.com>
Tue, 17 Sep 2019 04:30:58 +0000 (13:30 +0900)
committerhuiyu.eun <huiyu.eun@samsung.com>
Wed, 25 Sep 2019 05:48:00 +0000 (14:48 +0900)
This reverts commit f1710e9b70c6ee503db1323d899060dd422718f8.

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

index 035d1d8..5a0aa91 100755 (executable)
@@ -234,6 +234,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 fe1bac1..a5a114f 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();