Add 'Compact Modelling' submenu in 'Tools' menu

This commit is contained in:
Vadim Kuznetzov 2017-05-01 16:07:33 +03:00
parent 286d54dbcd
commit 0fe6a7e92c
2 changed files with 7 additions and 4 deletions

View File

@ -268,7 +268,7 @@ private:
// menus contain the items of their menubar
enum { MaxRecentFiles = 8 };
QMenu *fileMenu, *editMenu, *insMenu, *projMenu, *simMenu, *viewMenu,
*helpMenu, *alignMenu, *toolMenu, *recentFilesMenu;
*helpMenu, *alignMenu, *toolMenu, *recentFilesMenu, *cmMenu;
QAction *fileRecentAction[MaxRecentFiles];
QAction *fileClearRecent;

View File

@ -693,9 +693,6 @@ void QucsApp::initMenuBar()
fileMenu->addAction(filePrint);
fileMenu->addAction(filePrintFit);
fileMenu->insertSeparator();
fileMenu->addAction(buildVAModule);
fileMenu->addAction(buildIFS);
fileMenu->insertSeparator();
fileMenu->addAction(fileExamples);
fileMenu->insertSeparator();
fileMenu->addAction(fileSettings);
@ -788,6 +785,12 @@ void QucsApp::initMenuBar()
toolMenu->addAction(callMatch);
toolMenu->addAction(callAtt);
toolMenu->addAction(callRes);
toolMenu->insertSeparator();
cmMenu = new QMenu(tr("Compact modelling"));
cmMenu->addAction(buildVAModule);
cmMenu->addAction(buildIFS);
toolMenu->addMenu(cmMenu);