提交 abf741a9 编写于 作者: M Masahiro Yamada

kconfig: qconf: remove ConfigList::addColumn/removeColumn

Use QTreeView::showColumn/hideColumn directly.
Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
上级 711b875b
......@@ -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();
}
......
......@@ -88,14 +88,6 @@ public slots:
updateList();
updateAll = false;
}
void addColumn(colIdx idx)
{
showColumn(idx);
}
void removeColumn(colIdx idx)
{
hideColumn(idx);
}
void setAllOpen(bool open);
void setParentMenu(void);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册