From 375528847d39f5fec6bb6894e8ef63b53945aec0 Mon Sep 17 00:00:00 2001 From: GiWoong Kim Date: Tue, 12 May 2015 13:27:45 +0900 Subject: [PATCH] controller: no need to handle ESC key on floating controller If the user presses the Esc key in a dialog, QDialog::reject() will be called. And it will cause the floating controller to close. But this operation is not necessary for the emulator. So, we override it as empty function. Change-Id: Iede48e36e5b28401aa937aa9c55985c81cb4fcea Signed-off-by: GiWoong Kim --- tizen/src/ui/controller/floatingcontroller.cpp | 8 ++++++++ tizen/src/ui/controller/floatingcontroller.h | 1 + 2 files changed, 9 insertions(+) diff --git a/tizen/src/ui/controller/floatingcontroller.cpp b/tizen/src/ui/controller/floatingcontroller.cpp index 46afede..a80043d 100644 --- a/tizen/src/ui/controller/floatingcontroller.cpp +++ b/tizen/src/ui/controller/floatingcontroller.cpp @@ -86,6 +86,8 @@ void FloatingController::setMask(const QRegion ®ion) /* override */ void FloatingController::closeEvent(QCloseEvent *event) { + qDebug("close the floating controller"); + if (menu != NULL) { menu->setChecked(false); } @@ -96,6 +98,12 @@ void FloatingController::closeEvent(QCloseEvent *event) { QWidget::closeEvent(event); } +/* override */ +void FloatingController::reject() +{ + /* do nothing */ +} + FloatingController::~FloatingController() { qDebug("destroy floating controller"); diff --git a/tizen/src/ui/controller/floatingcontroller.h b/tizen/src/ui/controller/floatingcontroller.h index 5a778df..f8a6634 100644 --- a/tizen/src/ui/controller/floatingcontroller.h +++ b/tizen/src/ui/controller/floatingcontroller.h @@ -49,6 +49,7 @@ protected: void showEvent(QShowEvent *event); void setMask(const QRegion ®ion); void closeEvent(QCloseEvent *event); + void reject(); private: FloatingConView *conView; -- 2.7.4