From: Jihye Won Date: Fri, 13 Nov 2015 01:23:29 +0000 (+0900) Subject: Qt: offGuideImage hides while Move function is active X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~40^2~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b13b40b2338b664654ee710c02f1b9eac2b14311;p=sdk%2Femulator%2Fqemu.git Qt: offGuideImage hides while Move function is active So far, Move function is canceled just before offGuideImage shows while a user activate the function. For improving user experience of using Move function, offGuideImage hides while Move function is active. Therefore, the user can move Emulator without interruption of offGuideImage. Change-Id: I2fe51ec70026c9086a79aee88b06aee1205ae35d Signed-off-by: Jihye Won Signed-off-by: GiWoong Kim (cherry picked from commit ebd8324322be5128ffaa194b21fd691a5819a49a) --- diff --git a/tizen/src/ui/displaybase.cpp b/tizen/src/ui/displaybase.cpp index 50a46b6a12..cbf9ea40ba 100644 --- a/tizen/src/ui/displaybase.cpp +++ b/tizen/src/ui/displaybase.cpp @@ -96,13 +96,6 @@ bool DisplayBase::isOffGuideReady() void DisplayBase::showOffGuideImg() { - /* destroy transparent widget before OffGuideImage shows */ - TransWidget *widget = win->getTransWidget(); - if (widget != NULL) { - qDebug() << "move: delete transparent widget because of offGuideImg"; - delete widget; - } - offGuideShown = true; offGuide = new QLabel(win); diff --git a/tizen/src/ui/mainwindow.cpp b/tizen/src/ui/mainwindow.cpp index 82b32fcdec..56b11de4e7 100644 --- a/tizen/src/ui/mainwindow.cpp +++ b/tizen/src/ui/mainwindow.cpp @@ -582,3 +582,10 @@ TransWidget *MainWindow::getTransWidget() return this->transWidget; } +bool MainWindow::isTransWidgetCreated() +{ + if (this->transWidget == NULL) { + return false; + } + return true; +} diff --git a/tizen/src/ui/mainwindow.h b/tizen/src/ui/mainwindow.h index eac994a9b0..b23522fc38 100644 --- a/tizen/src/ui/mainwindow.h +++ b/tizen/src/ui/mainwindow.h @@ -86,6 +86,7 @@ public: void createTransWidget(); void setTransWidget(TransWidget *widget); TransWidget *getTransWidget(); + bool isTransWidgetCreated(); public slots: void slotContextMenu(const QPoint &pos); diff --git a/tizen/src/ui/qt5_supplement.cpp b/tizen/src/ui/qt5_supplement.cpp index 7fe7e9654a..c6f6c1cf20 100644 --- a/tizen/src/ui/qt5_supplement.cpp +++ b/tizen/src/ui/qt5_supplement.cpp @@ -369,10 +369,13 @@ void qt5_refresh_internal(void) DisplayBase *display = mainwindow->getDisplay(); if (display && display->isOffGuideReady() == true) { if (is_display_off() == true) { - /* show guide image for display off */ + /* show guide image for display off + only if Move function is not active */ if (display->isOffGuideShown() == false) { if (dpy_blank_cnt > MAX_DPY_BLANK_FRAME_CNT) { - display->showOffGuideImg(); + if (mainwindow->isTransWidgetCreated() == false) { + display->showOffGuideImg(); + } dpy_blank_cnt = 0; } else { dpy_blank_cnt++;