[Tizen] Restore behavior of Uploaded and LoadingFinished signal
authorneostom432 <minho.sun@samsung.com>
Mon, 15 Jun 2020 18:07:42 +0000 (03:07 +0900)
committerneostom432 <minho.sun@samsung.com>
Mon, 15 Jun 2020 18:07:49 +0000 (03:07 +0900)
This reverts commit 3b5021494f21d3a0f570f4906ed590b76f0a1458.

Change-Id: Ia5bf35b26b8760bb65a73b41542ca16e3e088fa1

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

index 28cbfff293eff3b39b370fae5db61a02f5a3c705..45c494953acc2550d134996fae902b595afa5712 100755 (executable)
@@ -237,6 +237,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 382feb8734f25185e6877c96411bebf1b87fa568..0a8fbd8648af9287db4293daa70b83d2b35f0dd0 100644 (file)
@@ -127,6 +127,11 @@ private: // From Control
    */
   void OnInitialize();
 
+  /**
+   * @copydoc CustomActorImpl::OnStageConnection()
+   */
+  virtual void OnStageConnection( int depth );
+
   /**
    * @copydoc Toolkit::Control::GetNaturalSize
    */