diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-08-07 18:19:04 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-08-14 13:45:38 +0900 |
commit | abf741a9fa4f9cee63f6c7bebc36bee44c6a8801 (patch) | |
tree | 828d30367df0cbb7b06fb155a89467a4cd59f5cb /scripts/kconfig/qconf.cc | |
parent | 711b875bcdbcd198cafbcf0bd87562f9c3725278 (diff) | |
download | linux-abf741a9fa4f9cee63f6c7bebc36bee44c6a8801.tar.gz linux-abf741a9fa4f9cee63f6c7bebc36bee44c6a8801.tar.bz2 linux-abf741a9fa4f9cee63f6c7bebc36bee44c6a8801.zip |
kconfig: qconf: remove ConfigList::addColumn/removeColumn
Use QTreeView::showColumn/hideColumn directly.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/qconf.cc')
-rw-r--r-- | scripts/kconfig/qconf.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index e58da0ab4309..4341792d472b 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc @@ -317,7 +317,7 @@ ConfigList::ConfigList(ConfigView* p, const char *name) connect(configApp, SIGNAL(aboutToQuit()), SLOT(saveSettings())); } - addColumn(promptColIdx); + showColumn(promptColIdx); reinit(); } @@ -335,21 +335,21 @@ bool ConfigList::menuSkip(struct menu *menu) void ConfigList::reinit(void) { - removeColumn(dataColIdx); - removeColumn(yesColIdx); - removeColumn(modColIdx); - removeColumn(noColIdx); - removeColumn(nameColIdx); + hideColumn(dataColIdx); + hideColumn(yesColIdx); + hideColumn(modColIdx); + hideColumn(noColIdx); + hideColumn(nameColIdx); if (showName) - addColumn(nameColIdx); + showColumn(nameColIdx); if (showRange) { - addColumn(noColIdx); - addColumn(modColIdx); - addColumn(yesColIdx); + showColumn(noColIdx); + showColumn(modColIdx); + showColumn(yesColIdx); } if (showData) - addColumn(dataColIdx); + showColumn(dataColIdx); updateListAll(); } |