Skip to content

Commit

Permalink
kconfig: qconf: remove ConfigList::addColumn/removeColumn
Browse files Browse the repository at this point in the history
Use QTreeView::showColumn/hideColumn directly.

Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
masahir0y committed Aug 14, 2020
1 parent 711b875 commit abf741a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
22 changes: 11 additions & 11 deletions scripts/kconfig/qconf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ ConfigList::ConfigList(ConfigView* p, const char *name)
connect(configApp, SIGNAL(aboutToQuit()), SLOT(saveSettings()));
}

addColumn(promptColIdx);
showColumn(promptColIdx);

reinit();
}
Expand All @@ -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();
}
Expand Down
8 changes: 0 additions & 8 deletions scripts/kconfig/qconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit abf741a

Please sign in to comment.