From 254d9366c32c8cc0078eb0496f0083e65b9414d0 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 17 Oct 2016 21:10:16 +0200 Subject: [PATCH] CCDraw: add signals into hide() methode alows to use slots Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/78259c6ec318a7474a84501239b5744126c60c90 Author: Thilo Graf Date: 2016-10-17 (Mon, 17 Oct 2016) --- src/gui/components/cc_draw.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/components/cc_draw.cpp b/src/gui/components/cc_draw.cpp index 4174e8f81..1e7372974 100644 --- a/src/gui/components/cc_draw.cpp +++ b/src/gui/components/cc_draw.cpp @@ -633,6 +633,7 @@ void CCDraw::paintFbItems(bool do_save_bg) void CCDraw::hide() { + OnBeforeHide(); //restore saved screen background of item if available for(size_t i =0; i< v_fbdata.size() ;i++) { if (v_fbdata[i].fbdata_type == CC_FBDATA_TYPE_BGSCREEN){ @@ -646,6 +647,7 @@ void CCDraw::hide() } is_painted = false; firstPaint = true; + OnAfterHide(); } //erase or paint over rendered objects