diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-10-22 17:10:07 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-10-22 17:22:11 +0900 |
commit | fb789685b64870867c3c97e04e6a0a0a090342b4 (patch) | |
tree | 3b2d734c0638ecc7f783a865713eba03294a3038 /src/qlibwindowmanager.cpp | |
parent | 6824bc9d6ff5afd09e21a3d7e5da4bf3eaded647 (diff) |
Add overload function to request first area
Change-Id: I73badee1425b4da1fc4b0f8df7ed531d0c487d47
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/qlibwindowmanager.cpp')
-rw-r--r-- | src/qlibwindowmanager.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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(); |