Skip to content

Commit abf741a

Browse files
committed
kconfig: qconf: remove ConfigList::addColumn/removeColumn
Use QTreeView::showColumn/hideColumn directly. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 711b875 commit abf741a

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
lines changed

scripts/kconfig/qconf.cc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ ConfigList::ConfigList(ConfigView* p, const char *name)
317317
connect(configApp, SIGNAL(aboutToQuit()), SLOT(saveSettings()));
318318
}
319319

320-
addColumn(promptColIdx);
320+
showColumn(promptColIdx);
321321

322322
reinit();
323323
}
@@ -335,21 +335,21 @@ bool ConfigList::menuSkip(struct menu *menu)
335335

336336
void ConfigList::reinit(void)
337337
{
338-
removeColumn(dataColIdx);
339-
removeColumn(yesColIdx);
340-
removeColumn(modColIdx);
341-
removeColumn(noColIdx);
342-
removeColumn(nameColIdx);
338+
hideColumn(dataColIdx);
339+
hideColumn(yesColIdx);
340+
hideColumn(modColIdx);
341+
hideColumn(noColIdx);
342+
hideColumn(nameColIdx);
343343

344344
if (showName)
345-
addColumn(nameColIdx);
345+
showColumn(nameColIdx);
346346
if (showRange) {
347-
addColumn(noColIdx);
348-
addColumn(modColIdx);
349-
addColumn(yesColIdx);
347+
showColumn(noColIdx);
348+
showColumn(modColIdx);
349+
showColumn(yesColIdx);
350350
}
351351
if (showData)
352-
addColumn(dataColIdx);
352+
showColumn(dataColIdx);
353353

354354
updateListAll();
355355
}

scripts/kconfig/qconf.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,6 @@ public slots:
8888
updateList();
8989
updateAll = false;
9090
}
91-
void addColumn(colIdx idx)
92-
{
93-
showColumn(idx);
94-
}
95-
void removeColumn(colIdx idx)
96-
{
97-
hideColumn(idx);
98-
}
9991
void setAllOpen(bool open);
10092
void setParentMenu(void);
10193

0 commit comments

Comments
 (0)