[Tizen] Restore behavior of Uploaded and LoadingFinished signal
authorHeeyong Song <heeyong.song@samsung.com>
Wed, 20 Nov 2019 08:40:19 +0000 (17:40 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Wed, 20 Nov 2019 08:40:22 +0000 (17:40 +0900)
Change-Id: Ib5fce24a96494a94b57b5ab99e3d634a35cdbccc

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

index 035d1d841bca0bd59c4dc484a7ffc4d69b66512a..5a0aa9192b91e27a107e03f46dbac4a09460633c 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 fe1bac10a7a47415b9e0cf7ddd81a2c9fe10280e..a5a114f2e6115c922d113150323de3fe6f6b7a1e 100644 (file)
@@ -127,6 +127,11 @@ private: // From Control
    */
   void OnInitialize();
 
+  /**
+   * @copydoc CustomActorImpl::OnStageConnection()
+   */
+  virtual void OnStageConnection( int depth );
+
   /**
    * @copydoc Toolkit::Control::GetNaturalSize
    */