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
|
@ -1432,9 +1432,6 @@ ConfigMainWindow::ConfigMainWindow(void)
|
|||
setTabOrder(configList, helpText);
|
||||
configList->setFocus();
|
||||
|
||||
QToolBar *toolBar = new QToolBar("Tools", this);
|
||||
addToolBar(toolBar);
|
||||
|
||||
backAction = new QAction(QPixmap(xpm_back), "Back", this);
|
||||
connect(backAction, SIGNAL(triggered(bool)), SLOT(goBack()));
|
||||
|
||||
|
@ -1507,6 +1504,7 @@ ConfigMainWindow::ConfigMainWindow(void)
|
|||
connect(showAboutAction, SIGNAL(triggered(bool)), SLOT(showAbout()));
|
||||
|
||||
// init tool bar
|
||||
QToolBar *toolBar = addToolBar("Tools");
|
||||
toolBar->addAction(backAction);
|
||||
toolBar->addSeparator();
|
||||
toolBar->addAction(loadAction);
|
||||
|
|
Loading…
Reference in New Issue