[Tizen] Restore behavior of Uploaded and LoadingFinished signal 69/137169/1 submit/tizen/20170705.113121
authorJinho, Lee <jeano.lee@samsung.com>
Tue, 4 Jul 2017 06:48:31 +0000 (15:48 +0900)
committerJinho, Lee <jeano.lee@samsung.com>
Tue, 4 Jul 2017 06:48:47 +0000 (15:48 +0900)
This reverts commit 155449f47de8b6e0a4c4edae2cab7ae16d5fd274.

Change-Id: I09703c4baf63ee560c34a2d9a7af3b6bef02041d

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

index 8ced30e..3d077e5 100644 (file)
@@ -173,6 +173,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 f335ce7..f0418a1 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();