mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Small whitespace cleanup
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
778d6ea103
commit
dba3aa12a3
1 changed files with 8 additions and 2 deletions
|
@ -397,8 +397,14 @@ void DiveListView::reloadHeaderActions()
|
|||
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 showHeaderFirstRun = !(
|
||||
i == DiveTripModel::MAXCNS || i == DiveTripModel::GAS || i == DiveTripModel::OTU || i == DiveTripModel::TEMPERATURE || i == DiveTripModel::TOTALWEIGHT || i == DiveTripModel::SUIT || i == DiveTripModel::CYLINDER || i == DiveTripModel::SAC);
|
||||
bool showHeaderFirstRun = !(i == DiveTripModel::MAXCNS ||
|
||||
i == DiveTripModel::GAS ||
|
||||
i == DiveTripModel::OTU ||
|
||||
i == DiveTripModel::TEMPERATURE ||
|
||||
i == DiveTripModel::TOTALWEIGHT ||
|
||||
i == DiveTripModel::SUIT ||
|
||||
i == DiveTripModel::CYLINDER ||
|
||||
i == DiveTripModel::SAC);
|
||||
bool shown = s.value(settingName, showHeaderFirstRun).toBool();
|
||||
a->setCheckable(true);
|
||||
a->setChecked(shown);
|
||||
|
|
Loading…
Add table
Reference in a new issue