From fb789685b64870867c3c97e04e6a0a0a090342b4 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Mon, 22 Oct 2018 17:10:07 +0900 Subject: Add overload function to request first area Change-Id: I73badee1425b4da1fc4b0f8df7ed531d0c487d47 Signed-off-by: Kazumasa Mitsunari --- src/qlibwindowmanager.cpp | 9 +++++++++ src/qlibwindowmanager.h | 1 + 2 files changed, 10 insertions(+) diff --git a/src/qlibwindowmanager.cpp b/src/qlibwindowmanager.cpp index be82cfd..4d32aab 100644 --- a/src/qlibwindowmanager.cpp +++ b/src/qlibwindowmanager.cpp @@ -142,6 +142,15 @@ void QLibWindowmanager::slotActivateWindow(){ } } +void QLibWindowmanager::slotActivateWindow(const QString& area){ + // This is needed for first rendering when the app is launched + if(!isActive){ + qDebug("Let's show %s", qPrintable(this->graphic_role.c_str())); + isActive = true; + this->activateWindow(this->graphic_role.c_str(), area); + } +} + // This API is deprecated, please use new API void QLibWindowmanager::slotActivateSurface(){ this->slotActivateWindow(); diff --git a/src/qlibwindowmanager.h b/src/qlibwindowmanager.h index 0f19bb3..aad9630 100644 --- a/src/qlibwindowmanager.h +++ b/src/qlibwindowmanager.h @@ -109,6 +109,7 @@ public: public slots: void slotActivateWindow(); + void slotActivateWindow(const QString& area); // This API is deprecated, please use new API THIS_FUNCTION_IS_DEPRECATED(void slotActivateSurface()); -- cgit 1.2.3-korg