#include "version.h"
+#include <QKeyEvent>
+
AboutDialog::AboutDialog(QWidget *parent) :
- QDialog(parent, DIALOGWINDOWHINTS),
+ QWidget(parent, DIALOGWINDOWHINTS),
ui(new Ui::AboutDialog)
{
ui->setupUi(this);
{
close();
}
+
+void AboutDialog::keyPressEvent(QKeyEvent *event)
+{
+#ifdef ANDROID
+ if(event->key() == Qt::Key_Back)
+ {
+ close();
+ }
+#else
+ if(event->key() == Qt::Key_Escape)
+ {
+ close();
+ }
+#endif
+}
\ No newline at end of file