From 12c7e7017178b458b9fd993f3786fffe0a4bfc22 Mon Sep 17 00:00:00 2001 From: Rafael Date: Mon, 18 Apr 2016 07:23:19 +0200 Subject: [PATCH] PictureDialog again Qt4 compatibility --- PictureDialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PictureDialog.cpp b/PictureDialog.cpp index a064f7d..8a6df2f 100755 --- a/PictureDialog.cpp +++ b/PictureDialog.cpp @@ -98,10 +98,12 @@ bool PictureDialog::eventFilter(QObject *obj, QEvent *ev) ui->cmdExport->click(); returnValue = true; break; - case Qt::Key_Exit: +#if QT_VERSION >= 0x050000 + case Qt::Key_Exit ui->cmdClose->click(); returnValue = true; break; +#endif case Qt::Key_Enter: case Qt::Key_Return: on_labPicture_mouseDoubleClicked(); returnValue = true;