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:
Henrik Brautaset Aronsen 2013-05-29 23:18:10 +02:00 committed by Dirk Hohndel
parent f1fe4869d9
commit 94baac4cf3

View file

@ -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();