Commit 93ebaacd authored by Masahiro Yamada's avatar Masahiro Yamada

kconfig: qconf: use 'menu' variable for (QMenu *)

The variable 'config' for the file menu is inconsistent.

You do not need to use different variables. Use 'menu' for every menu.
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent d4b1cea7
...@@ -1516,33 +1516,32 @@ ConfigMainWindow::ConfigMainWindow(void) ...@@ -1516,33 +1516,32 @@ ConfigMainWindow::ConfigMainWindow(void)
toolBar->addAction(splitViewAction); toolBar->addAction(splitViewAction);
toolBar->addAction(fullViewAction); toolBar->addAction(fullViewAction);
// create config menu // create file menu
QMenu* config = menuBar()->addMenu("&File"); QMenu *menu = menuBar()->addMenu("&File");
config->addAction(loadAction); menu->addAction(loadAction);
config->addAction(saveAction); menu->addAction(saveAction);
config->addAction(saveAsAction); menu->addAction(saveAsAction);
config->addSeparator(); menu->addSeparator();
config->addAction(quitAction); menu->addAction(quitAction);
// create edit menu // create edit menu
QMenu* editMenu = menuBar()->addMenu("&Edit"); menu = menuBar()->addMenu("&Edit");
editMenu->addAction(searchAction); menu->addAction(searchAction);
// create options menu // create options menu
QMenu* optionMenu = menuBar()->addMenu("&Option"); menu = menuBar()->addMenu("&Option");
optionMenu->addAction(showNameAction); menu->addAction(showNameAction);
menu->addAction(showRangeAction);
optionMenu->addAction(showRangeAction); menu->addAction(showDataAction);
optionMenu->addAction(showDataAction); menu->addSeparator();
optionMenu->addSeparator(); menu->addActions(optGroup->actions());
optionMenu->addActions(optGroup->actions()); menu->addSeparator();
optionMenu->addSeparator(); menu->addAction(showDebugAction);
optionMenu->addAction(showDebugAction);
// create help menu // create help menu
QMenu* helpMenu = menuBar()->addMenu("&Help"); menu = menuBar()->addMenu("&Help");
helpMenu->addAction(showIntroAction); menu->addAction(showIntroAction);
helpMenu->addAction(showAboutAction); menu->addAction(showAboutAction);
connect (helpText, SIGNAL (anchorClicked (const QUrl &)), connect (helpText, SIGNAL (anchorClicked (const QUrl &)),
helpText, SLOT (clicked (const QUrl &)) ); helpText, SLOT (clicked (const QUrl &)) );
......
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