Commit abf741a9 authored by Masahiro Yamada's avatar Masahiro Yamada

kconfig: qconf: remove ConfigList::addColumn/removeColumn

Use QTreeView::showColumn/hideColumn directly.
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 711b875b
...@@ -317,7 +317,7 @@ ConfigList::ConfigList(ConfigView* p, const char *name) ...@@ -317,7 +317,7 @@ ConfigList::ConfigList(ConfigView* p, const char *name)
connect(configApp, SIGNAL(aboutToQuit()), SLOT(saveSettings())); connect(configApp, SIGNAL(aboutToQuit()), SLOT(saveSettings()));
} }
addColumn(promptColIdx); showColumn(promptColIdx);
reinit(); reinit();
} }
...@@ -335,21 +335,21 @@ bool ConfigList::menuSkip(struct menu *menu) ...@@ -335,21 +335,21 @@ bool ConfigList::menuSkip(struct menu *menu)
void ConfigList::reinit(void) void ConfigList::reinit(void)
{ {
removeColumn(dataColIdx); hideColumn(dataColIdx);
removeColumn(yesColIdx); hideColumn(yesColIdx);
removeColumn(modColIdx); hideColumn(modColIdx);
removeColumn(noColIdx); hideColumn(noColIdx);
removeColumn(nameColIdx); hideColumn(nameColIdx);
if (showName) if (showName)
addColumn(nameColIdx); showColumn(nameColIdx);
if (showRange) { if (showRange) {
addColumn(noColIdx); showColumn(noColIdx);
addColumn(modColIdx); showColumn(modColIdx);
addColumn(yesColIdx); showColumn(yesColIdx);
} }
if (showData) if (showData)
addColumn(dataColIdx); showColumn(dataColIdx);
updateListAll(); updateListAll();
} }
......
...@@ -88,14 +88,6 @@ public slots: ...@@ -88,14 +88,6 @@ public slots:
updateList(); updateList();
updateAll = false; updateAll = false;
} }
void addColumn(colIdx idx)
{
showColumn(idx);
}
void removeColumn(colIdx idx)
{
hideColumn(idx);
}
void setAllOpen(bool open); void setAllOpen(bool open);
void setParentMenu(void); void setParentMenu(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment