[Tizen] Restore behavior of Uploaded and LoadingFinished signal 79/149379/1 accepted/tizen/unified/20170920.081052 submit/tizen/20170919.071054
authorHeeyong Song <heeyong.song@samsung.com>
Tue, 12 Sep 2017 06:46:17 +0000 (15:46 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Tue, 12 Sep 2017 06:46:20 +0000 (15:46 +0900)
Change-Id: I00d146a24bab5ccafbad6771a7cd4d48962a9831

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

index 72faf14..695eb89 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 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();