From: Soeren Apel Date: Wed, 4 Nov 2015 16:03:26 +0000 (+0100) Subject: Add "save selection range as..." to the export menu on the toolbar X-Git-Tag: pulseview-0.3.0~53 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=61501398c32a261d87430337536f04dea174698a;p=pulseview.git Add "save selection range as..." to the export menu on the toolbar --- diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 0184ef09..c3f8fdb8 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -134,6 +134,11 @@ QAction* MainWindow::action_save_as() const return action_save_as_; } +QAction* MainWindow::action_save_selection_as() const +{ + return action_save_selection_as_; +} + QAction* MainWindow::action_connect() const { return action_connect_; diff --git a/pv/toolbars/mainbar.cpp b/pv/toolbars/mainbar.cpp index 3b169866..50e1908f 100644 --- a/pv/toolbars/mainbar.cpp +++ b/pv/toolbars/mainbar.cpp @@ -112,6 +112,7 @@ MainBar::MainBar(Session &session, MainWindow &main_window) : vector open_actions; open_actions.push_back(main_window.action_save_as()); + open_actions.push_back(main_window.action_save_selection_as()); widgets::ExportMenu *export_menu = new widgets::ExportMenu(this, session.device_manager().context(),