adding up/down to zoom in/out for quick navigation
authorJoe FitzPatrick <joefitz@securinghardware.com>
Wed, 24 Jul 2019 14:53:24 +0000 (07:53 -0700)
committerUwe Hermann <uwe@hermann-uwe.de>
Wed, 31 Jul 2019 20:47:57 +0000 (22:47 +0200)
pv/mainwindow.cpp
pv/mainwindow.hpp

index e33901a..db6db40 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 141e96e..aa325e7 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_;
 };