[4.0] Restore behavior of Uploaded and LoadingFinished signal 27/154827/1
authortaeyoon0.lee <taeyoon0.lee@samsung.com>
Wed, 11 Oct 2017 09:11:25 +0000 (18:11 +0900)
committertaeyoon0.lee <taeyoon0.lee@samsung.com>
Wed, 11 Oct 2017 09:11:36 +0000 (18:11 +0900)
This reverts commit 8af08369ee34d382e735ee71496dd8d7423f2a9a.

Change-Id: If5984b2c9d2400944ccc97664ef62b460590a90e

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

index e7514b0e71c60d0eef7e7ec05a06bd16238220a3..a3f5184d1287fe183b2cd4fea8f79fbf0132e3ce 100644 (file)
@@ -174,6 +174,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 f335ce7a28d62b3aafc18afdf246437486b688ff..f0418a1154d27dba989b4eca6fc0538bbc7da4fe 100644 (file)
@@ -127,6 +127,11 @@ private: // From Control
    */
   void OnInitialize();
 
+  /**
+   * @copydoc CustomActorImpl::OnStageConnection()
+   */
+  virtual void OnStageConnection( int depth );
+
   /**
    * @copydoc Toolkit::Control::GetNaturalSize
    */