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 QSplitter orientation in the constructor
The orientation of the QSplitter can be specified directly in its constructor. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
parent
6971f7192c
commit
ccb3ee82fa
@ -1240,8 +1240,7 @@ ConfigSearchWindow::ConfigSearchWindow(ConfigMainWindow *parent)
|
||||
layout2->addWidget(searchButton);
|
||||
layout1->addLayout(layout2);
|
||||
|
||||
split = new QSplitter(this);
|
||||
split->setOrientation(Qt::Vertical);
|
||||
split = new QSplitter(Qt::Vertical, this);
|
||||
list = new ConfigList(split, "search");
|
||||
list->mode = listMode;
|
||||
info = new ConfigInfoView(split, "search");
|
||||
@ -1344,15 +1343,13 @@ ConfigMainWindow::ConfigMainWindow(void)
|
||||
QVBoxLayout *layout = new QVBoxLayout(widget);
|
||||
setCentralWidget(widget);
|
||||
|
||||
split1 = new QSplitter(widget);
|
||||
split1->setOrientation(Qt::Horizontal);
|
||||
split1 = new QSplitter(Qt::Horizontal, widget);
|
||||
split1->setChildrenCollapsible(false);
|
||||
|
||||
menuList = new ConfigList(widget, "menu");
|
||||
|
||||
split2 = new QSplitter(widget);
|
||||
split2 = new QSplitter(Qt::Vertical, widget);
|
||||
split2->setChildrenCollapsible(false);
|
||||
split2->setOrientation(Qt::Vertical);
|
||||
|
||||
// create config tree
|
||||
configList = new ConfigList(widget, "config");
|
||||
|
Loading…
Reference in New Issue
Block a user