diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-04-25 10:44:23 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-04-25 10:47:44 -0700 |
commit | 155eac11d2308df5158bcbd994b2ec5a851e4900 (patch) | |
tree | 9e8ed5feaa7ebefef592f905041119c8f69dabec /qt-ui/downloadfromdivecomputer.cpp | |
parent | 461872b7ea6d8864a5505dca4c7c355cfbd88bb3 (diff) | |
download | subsurface-155eac11d2308df5158bcbd994b2ec5a851e4900.tar.gz |
Ctrl-W and -Q support for GPS, divelogs.de, divecomputer and CVS import
Getting closer to consistent behavior.
See #489
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r-- | qt-ui/downloadfromdivecomputer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp index a5b3d617c..bbe62c47a 100644 --- a/qt-ui/downloadfromdivecomputer.cpp +++ b/qt-ui/downloadfromdivecomputer.cpp @@ -12,6 +12,7 @@ #include <QTimer> #include <QFileDialog> #include <QMessageBox> +#include <QShortcut> struct product { const char *product; @@ -80,6 +81,10 @@ DownloadFromDCWidget::DownloadFromDCWidget(QWidget *parent, Qt::WindowFlags f) : connect(timer, SIGNAL(timeout()), this, SLOT(updateProgressBar())); updateState(INITIAL); memset(&data, 0, sizeof(data)); + QShortcut *close = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_W), this); + connect(close, SIGNAL(activated()), this, SLOT(close())); + QShortcut *quit = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q), this); + connect(quit, SIGNAL(activated()), parent, SLOT(close())); } void DownloadFromDCWidget::updateProgressBar() |