summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-12 07:04:05 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-12 07:04:05 -0700
commit605f42daa41d74ebacca686b35f03240467f661a (patch)
tree3c1ba6e495b9288bc3ced62f761e588e91124792 /qt-ui/mainwindow.h
parent32941cb84f27ddc4397857afed84bb156f983e4e (diff)
parentc729ae92ed1ea444ed2c9a38178ebe4cb22e54c4 (diff)
downloadsubsurface-605f42daa41d74ebacca686b35f03240467f661a.tar.gz
Merge branch 'Qt-selection' into Qt
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();