Don't display "show" in front of every column
When (de)selecting columns, a the list of columns have a "show" in front of every entry. We don't need that. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f1fe4869d9
commit
94baac4cf3
@ -109,7 +109,7 @@ void DiveListView::reloadHeaderActions()
|
||||
QSettings s;
|
||||
s.beginGroup("DiveListColumnState");
|
||||
for(int i = 0; i < model()->columnCount(); i++) {
|
||||
QString title = QString("show %1").arg(model()->headerData(i, Qt::Horizontal).toString());
|
||||
QString title = QString("%1").arg(model()->headerData(i, Qt::Horizontal).toString());
|
||||
QString settingName = QString("showColumn%1").arg(i);
|
||||
QAction *a = new QAction(title, header());
|
||||
bool shown = s.value(settingName, true).toBool();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user