kconfig: qconf: overload addToolBar() to create and insert toolbar
Use the overloaded function, addToolBar(const QString &title) to create a QToolBar object, setting its window title, and inserts it into the toolbar area. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
parent
2afb3e2682
commit
860ec3fbca
scripts/kconfig
|
@ -1432,9 +1432,6 @@ ConfigMainWindow::ConfigMainWindow(void)
|
||||||
setTabOrder(configList, helpText);
|
setTabOrder(configList, helpText);
|
||||||
configList->setFocus();
|
configList->setFocus();
|
||||||
|
|
||||||
QToolBar *toolBar = new QToolBar("Tools", this);
|
|
||||||
addToolBar(toolBar);
|
|
||||||
|
|
||||||
backAction = new QAction(QPixmap(xpm_back), "Back", this);
|
backAction = new QAction(QPixmap(xpm_back), "Back", this);
|
||||||
connect(backAction, SIGNAL(triggered(bool)), SLOT(goBack()));
|
connect(backAction, SIGNAL(triggered(bool)), SLOT(goBack()));
|
||||||
|
|
||||||
|
@ -1507,6 +1504,7 @@ ConfigMainWindow::ConfigMainWindow(void)
|
||||||
connect(showAboutAction, SIGNAL(triggered(bool)), SLOT(showAbout()));
|
connect(showAboutAction, SIGNAL(triggered(bool)), SLOT(showAbout()));
|
||||||
|
|
||||||
// init tool bar
|
// init tool bar
|
||||||
|
QToolBar *toolBar = addToolBar("Tools");
|
||||||
toolBar->addAction(backAction);
|
toolBar->addAction(backAction);
|
||||||
toolBar->addSeparator();
|
toolBar->addSeparator();
|
||||||
toolBar->addAction(loadAction);
|
toolBar->addAction(loadAction);
|
||||||
|
|
Loading…
Reference in New Issue