]> sigrok.org Git - pulseview.git/commitdiff
adding up/down to zoom in/out for quick navigation
authorJoe FitzPatrick <redacted>
Wed, 24 Jul 2019 14:53:24 +0000 (07:53 -0700)
committerUwe Hermann <redacted>
Wed, 31 Jul 2019 20:47:57 +0000 (22:47 +0200)
pv/mainwindow.cpp
pv/mainwindow.hpp

index e33901a222c1db720adf58acba7f684be122d142..db6db406e3e0f635ef809e594935642007d3575e 100644 (file)
@@ -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);
 
index 141e96e90dd74d8b1e1befd635d49bfee2827ec8..aa325e7373c0f3c21a414e35c0f045b07c8ffd9a 100644 (file)
@@ -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_;
 };