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 <jihye.won1@samsung.com>
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);
return this->transWidget;
}
+bool MainWindow::isTransWidgetCreated()
+{
+ if (this->transWidget == NULL) {
+ return false;
+ }
+ return true;
+}
void createTransWidget();
void setTransWidget(TransWidget *widget);
TransWidget *getTransWidget();
+ bool isTransWidgetCreated();
public slots:
void slotContextMenu(const QPoint &pos);
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++;