mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-29 17:23:36 +00:00
kconfig: qconf: set parent in the widget constructor
The ->addWidget() method re-parents the widget. The parent QWidget can be specified directly in the constructor. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
parent
7d48998b58
commit
93096d7d2a
@ -1348,18 +1348,14 @@ ConfigMainWindow::ConfigMainWindow(void)
|
||||
layout->addWidget(split2);
|
||||
split2->setChildrenCollapsible(false);
|
||||
|
||||
split1 = new QSplitter(Qt::Horizontal, widget);
|
||||
split2->addWidget(split1);
|
||||
split1 = new QSplitter(Qt::Horizontal, split2);
|
||||
split1->setChildrenCollapsible(false);
|
||||
|
||||
configList = new ConfigList(widget, "config");
|
||||
split1->addWidget(configList);
|
||||
configList = new ConfigList(split1, "config");
|
||||
|
||||
menuList = new ConfigList(widget, "menu");
|
||||
split1->addWidget(menuList);
|
||||
menuList = new ConfigList(split1, "menu");
|
||||
|
||||
helpText = new ConfigInfoView(widget, "help");
|
||||
split2->addWidget(helpText);
|
||||
helpText = new ConfigInfoView(split2, "help");
|
||||
setTabOrder(configList, helpText);
|
||||
|
||||
configList->setFocus();
|
||||
|
Loading…
Reference in New Issue
Block a user