From baee8975747e8a4944b377b53a554560f292a881 Mon Sep 17 00:00:00 2001 From: Amit Chaudhuri Date: Mon, 6 May 2013 09:12:53 +0100 Subject: Add various keyboard shortcuts. Add shortcuts to match GTK version for view menu items and the log menu so that e.g. Ctrl+1 selects the list view. Remove debug statements from the view functions. Leave in place for functions with no obvious actions yet coded. Signed-off-by: Amit Chaudhuri Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 8 -------- qt-ui/mainwindow.ui | 23 ++++++++++++++++++++++- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 53469dc86..f29c82588 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -207,8 +207,6 @@ void MainWindow::on_actionYearlyStatistics_triggered() void MainWindow::on_actionViewList_triggered() { - qDebug("actionViewList"); - ui->InfoWidget->setVisible(false); ui->ListWidget->setVisible(true); ui->ProfileWidget->setVisible(false); @@ -216,8 +214,6 @@ void MainWindow::on_actionViewList_triggered() void MainWindow::on_actionViewProfile_triggered() { - qDebug("actionViewProfile"); - ui->InfoWidget->setVisible(false); ui->ListWidget->setVisible(false); ui->ProfileWidget->setVisible(true); @@ -225,8 +221,6 @@ void MainWindow::on_actionViewProfile_triggered() void MainWindow::on_actionViewInfo_triggered() { - qDebug("actionViewInfo"); - ui->InfoWidget->setVisible(true); ui->ListWidget->setVisible(false); ui->ProfileWidget->setVisible(false); @@ -234,8 +228,6 @@ void MainWindow::on_actionViewInfo_triggered() void MainWindow::on_actionViewAll_triggered() { - qDebug("actionViewAll"); - ui->InfoWidget->setVisible(true); ui->ListWidget->setVisible(true); ui->ProfileWidget->setVisible(true); diff --git a/qt-ui/mainwindow.ui b/qt-ui/mainwindow.ui index 7dfbae746..476b124e8 100644 --- a/qt-ui/mainwindow.ui +++ b/qt-ui/mainwindow.ui @@ -88,7 +88,7 @@ 0 0 763 - 25 + 20 @@ -240,6 +240,9 @@ Download from Dive computer + + Ctrl+D + @@ -280,31 +283,49 @@ View List + + Ctrl+1 + View Profile + + Ctrl+2 + View Info + + Ctrl+3 + View All + + Ctrl+4 + Prev DC + + Ctrl+Shift+C + Next DC + + Ctrl+C + -- cgit v1.2.3-70-g09d2