From: Soeren Apel Date: Sun, 4 Sep 2016 06:03:30 +0000 (+0200) Subject: MainBar: Remove empty menu button X-Git-Tag: pulseview-0.4.0~247 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0ff97f965aca66a69fd44a870d42f2bd67d38e94;p=pulseview.git MainBar: Remove empty menu button --- diff --git a/pv/toolbars/mainbar.cpp b/pv/toolbars/mainbar.cpp index 483dd79b..b21d5a9f 100644 --- a/pv/toolbars/mainbar.cpp +++ b/pv/toolbars/mainbar.cpp @@ -116,8 +116,7 @@ MainBar::MainBar(Session &session, MainWindow &main_window) : icon_green_(":/icons/status-green.svg"), icon_grey_(":/icons/status-grey.svg"), run_stop_button_(this), - run_stop_button_action_(nullptr), - menu_button_(this) + run_stop_button_action_(nullptr) #ifdef ENABLE_DECODE , menu_decoders_add_(new pv::widgets::DecoderMenu(this, true)) #endif @@ -313,12 +312,6 @@ MainBar::MainBar(Session &session, MainWindow &main_window) : addWidget(add_decoder_button); #endif - QWidget *const spacer = new QWidget(); - spacer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); - addWidget(spacer); - - addWidget(&menu_button_); - sample_count_.installEventFilter(this); sample_rate_.installEventFilter(this); diff --git a/pv/toolbars/mainbar.hpp b/pv/toolbars/mainbar.hpp index d39cb5e4..bb467ec6 100644 --- a/pv/toolbars/mainbar.hpp +++ b/pv/toolbars/mainbar.hpp @@ -210,8 +210,6 @@ private: QToolButton run_stop_button_; QAction *run_stop_button_action_; - QToolButton menu_button_; - #ifdef ENABLE_DECODE QMenu *const menu_decoders_add_; #endif