projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make ExportMenu accept a vector of actions
[pulseview.git]
/
pv
/
toolbars
/
mainbar.cpp
diff --git
a/pv/toolbars/mainbar.cpp
b/pv/toolbars/mainbar.cpp
index dcc35ecee8f4e42800354080e0b2b34d047ebbcb..3b1698669a9ac8634a8af1ce87a7786f02cd6833 100644
(file)
--- a/
pv/toolbars/mainbar.cpp
+++ b/
pv/toolbars/mainbar.cpp
@@
-110,9
+110,12
@@
MainBar::MainBar(Session &session, MainWindow &main_window) :
// Save button
QToolButton *const save_button = new QToolButton(this);
// Save button
QToolButton *const save_button = new QToolButton(this);
+ vector<QAction *> open_actions;
+ open_actions.push_back(main_window.action_save_as());
+
widgets::ExportMenu *export_menu = new widgets::ExportMenu(this,
session.device_manager().context(),
widgets::ExportMenu *export_menu = new widgets::ExportMenu(this,
session.device_manager().context(),
-
main_window.action_save_as()
);
+
open_actions
);
connect(export_menu,
SIGNAL(format_selected(std::shared_ptr<sigrok::OutputFormat>)),
&main_window_,
connect(export_menu,
SIGNAL(format_selected(std::shared_ptr<sigrok::OutputFormat>)),
&main_window_,