[Tizen] Restore behavior of Uploaded and LoadingFinished signal
authorSeungho, Baek <sbsh.baek@samsung.com>
Mon, 16 Jul 2018 05:48:49 +0000 (14:48 +0900)
committerSeungho, Baek <sbsh.baek@samsung.com>
Mon, 16 Jul 2018 05:48:58 +0000 (14:48 +0900)
This reverts commit e67e9b3d73584b1bf8274daf72fc925159011d46.

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

index 11d5389..1e73c9c 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 )
 Vector3 ImageView::GetNaturalSize()
 {
   if( mVisual )
index 32867bf..75d5c49 100644 (file)
@@ -128,6 +128,11 @@ private: // From Control
   void OnInitialize();
 
   /**
   void OnInitialize();
 
   /**
+   * @copydoc CustomActorImpl::OnStageConnection()
+   */
+  virtual void OnStageConnection( int depth );
+
+  /**
    * @copydoc Toolkit::Control::GetNaturalSize
    */
   virtual Vector3 GetNaturalSize();
    * @copydoc Toolkit::Control::GetNaturalSize
    */
   virtual Vector3 GetNaturalSize();