controller: no need to handle ESC key on floating controller
authorGiWoong Kim <giwoong.kim@samsung.com>
Tue, 12 May 2015 04:27:45 +0000 (13:27 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 12 May 2015 07:38:45 +0000 (16:38 +0900)
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 <giwoong.kim@samsung.com>
tizen/src/ui/controller/floatingcontroller.cpp
tizen/src/ui/controller/floatingcontroller.h

index 46afede..a80043d 100644 (file)
@@ -86,6 +86,8 @@ void FloatingController::setMask(const QRegion &region)
 
 /* 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");
index 5a778df..f8a6634 100644 (file)
@@ -49,6 +49,7 @@ protected:
     void showEvent(QShowEvent *event);
     void setMask(const QRegion &region);
     void closeEvent(QCloseEvent *event);
+    void reject();
 
 private:
     FloatingConView *conView;