summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-10-09 03:00:06 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2024-11-04 17:53:09 +0900
commitccb3ee82fa50dccdcd186ed0f6c0d8d14c86a24f (patch)
treee518cad10ae9f94e1c7db2dd7075159bbcc3c884 /scripts
parent6971f7192c12043667173cc78fe88d52ff7ee488 (diff)
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/qconf.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index e260cab1c2af..202823aad393 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -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");