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>
/* override */
void FloatingController::closeEvent(QCloseEvent *event) {
+ qDebug("close the floating controller");
+
if (menu != NULL) {
menu->setChecked(false);
}
QWidget::closeEvent(event);
}
+/* override */
+void FloatingController::reject()
+{
+ /* do nothing */
+}
+
FloatingController::~FloatingController()
{
qDebug("destroy floating controller");
void showEvent(QShowEvent *event);
void setMask(const QRegion ®ion);
void closeEvent(QCloseEvent *event);
+ void reject();
private:
FloatingConView *conView;