summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r--qt-ui/mainwindow.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h
index b76199a8b..8c07d048c 100644
--- a/qt-ui/mainwindow.h
+++ b/qt-ui/mainwindow.h
@@ -9,6 +9,7 @@
#include <QMainWindow>
#include <QModelIndex>
+#include <QAction>
class QSortFilterProxyModel;
class DiveTripModel;
@@ -68,6 +69,10 @@ private Q_SLOTS:
void on_actionAboutSubsurface_triggered();
void on_actionUserManual_triggered();
+ /* keyboard actions */
+ void nextDive_triggered();
+ void previousDive_triggered();
+
void dive_selection_changed(const QItemSelection& newSelection,
const QItemSelection& oldSelection);
@@ -78,6 +83,9 @@ private:
Ui::MainWindow *ui;
DiveTripModel *model;
QSortFilterProxyModel *sortModel;
+ QAction *actionNextDive;
+ QAction *actionPreviousDive;
+
QString filter();
bool askSaveChanges();
void readSettings();