From: Joe FitzPatrick Date: Wed, 24 Jul 2019 14:53:24 +0000 (-0700) Subject: adding up/down to zoom in/out for quick navigation X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=c2d0c4848c574365a028e68d0c28831f088b4405 adding up/down to zoom in/out for quick navigation --- diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index e33901a2..db6db406 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -514,9 +514,13 @@ void MainWindow::setup_ui() zoom_in_shortcut_ = new QShortcut(QKeySequence(Qt::Key_Plus), this, SLOT(on_zoom_in_shortcut_triggered())); zoom_in_shortcut_->setAutoRepeat(false); + zoom_in_shortcut_2_ = new QShortcut(QKeySequence(Qt::Key_Up), this, SLOT(on_zoom_in_shortcut_triggered())); + zoom_out_shortcut_ = new QShortcut(QKeySequence(Qt::Key_Minus), this, SLOT(on_zoom_out_shortcut_triggered())); zoom_out_shortcut_->setAutoRepeat(false); + zoom_out_shortcut_2_ = new QShortcut(QKeySequence(Qt::Key_Down), this, SLOT(on_zoom_out_shortcut_triggered())); + home_shortcut_ = new QShortcut(QKeySequence(Qt::Key_Home), this, SLOT(on_scroll_to_start_triggered())); home_shortcut_->setAutoRepeat(false); diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index 141e96e9..aa325e73 100644 --- a/pv/mainwindow.hpp +++ b/pv/mainwindow.hpp @@ -186,7 +186,9 @@ private: QShortcut *close_application_shortcut_; QShortcut *close_current_tab_shortcut_; QShortcut *zoom_in_shortcut_; + QShortcut *zoom_in_shortcut_2_; QShortcut *zoom_out_shortcut_; + QShortcut *zoom_out_shortcut_2_; QShortcut *home_shortcut_; QShortcut *end_shortcut_; };