Commit bd658445 authored by Calvin Buckley's avatar Calvin Buckley 🤔 Committed by Albert Astals Cid
Browse files

Menu item to toggle toolbar for QCG

parent c5fe5de8
......@@ -81,8 +81,8 @@ QCGTopLevel::QCGTopLevel()
createActions();
createDocks();
createMenu();
createToolbar();
createMenu();
_multiView = new MultiView(this, this);
_multiView->setObjectName(QStringLiteral("MultiView"));
......@@ -617,6 +617,7 @@ void QCGTopLevel::createMenu()
viewMenu->addAction(_secondaryMenuAction);
viewMenu->addAction(_groupingMenuAction);
viewMenu->addSeparator();
viewMenu->addAction(tb->toggleViewAction());
viewMenu->addMenu(layoutMenu);
viewMenu->addAction(_sidebarMenuAction);
viewMenu->addAction(_splittedToggleAction);
......@@ -660,7 +661,7 @@ void QCGTopLevel::createMenu()
void QCGTopLevel::createToolbar()
{
QToolBar* tb = new QToolBar(tr("Main Toolbar"), this);
tb = new QToolBar(tr("Main Toolbar"), this);
tb->setObjectName(QStringLiteral("main-toolbar"));
addToolBar(Qt::TopToolBarArea, tb);
......
......@@ -236,6 +236,7 @@ private:
QAction *_configureAction, *_aboutAction, *_aboutQtAction;
QAction *_minimizeAction, *_zoomAction;
QMenu *windowMenu, *macDockMenu;
QToolBar *tb;
QComboBox* _eventTypeBox;
TraceFunction* _function;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment