PictureDialog again Qt4 compatibility
This commit is contained in:
parent
adb6a6d94e
commit
12c7e70171
1 changed files with 3 additions and 1 deletions
|
@ -98,10 +98,12 @@ bool PictureDialog::eventFilter(QObject *obj, QEvent *ev)
|
||||||
ui->cmdExport->click();
|
ui->cmdExport->click();
|
||||||
returnValue = true;
|
returnValue = true;
|
||||||
break;
|
break;
|
||||||
case Qt::Key_Exit:
|
#if QT_VERSION >= 0x050000
|
||||||
|
case Qt::Key_Exit
|
||||||
ui->cmdClose->click();
|
ui->cmdClose->click();
|
||||||
returnValue = true;
|
returnValue = true;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case Qt::Key_Enter: case Qt::Key_Return:
|
case Qt::Key_Enter: case Qt::Key_Return:
|
||||||
on_labPicture_mouseDoubleClicked();
|
on_labPicture_mouseDoubleClicked();
|
||||||
returnValue = true;
|
returnValue = true;
|
||||||
|
|
Loading…
Reference in a new issue