diff options
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/divelistview.cpp | 2 | ||||
-rw-r--r-- | qt-ui/models.cpp | 6 | ||||
-rw-r--r-- | qt-ui/models.h | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp index d58f31284..8d771b5df 100644 --- a/qt-ui/divelistview.cpp +++ b/qt-ui/divelistview.cpp @@ -383,7 +383,7 @@ void DiveListView::reloadHeaderActions() QString settingName = QString("showColumn%1").arg(i); QAction *a = new QAction(title, header()); bool showHeaderFirstRun = !( - i == DiveTripModel::MAXCNS || i == DiveTripModel::NITROX || i == DiveTripModel::OTU || i == DiveTripModel::TEMPERATURE || i == DiveTripModel::TOTALWEIGHT || i == DiveTripModel::SUIT || i == DiveTripModel::CYLINDER || i == DiveTripModel::SAC); + 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); diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index db5f180e0..019e4d99f 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -1102,7 +1102,7 @@ QVariant DiveItem::data(int column, int role) const case CYLINDER: retVal = QString(dive->cylinder[0].type.description); break; - case NITROX: + case GAS: retVal = nitrox_sort_value(dive); break; case SAC: @@ -1146,7 +1146,7 @@ QVariant DiveItem::data(int column, int role) const case CYLINDER: retVal = QString(dive->cylinder[0].type.description); break; - case NITROX: + case GAS: retVal = QString(get_nitrox_string(dive)); break; case SAC: @@ -1338,7 +1338,7 @@ QVariant DiveTripModel::headerData(int section, Qt::Orientation orientation, int case CYLINDER: ret = tr("Cyl"); break; - case NITROX: + case GAS: ret = tr("Gas"); break; case SAC: diff --git a/qt-ui/models.h b/qt-ui/models.h index aa314f119..c4a3a077d 100644 --- a/qt-ui/models.h +++ b/qt-ui/models.h @@ -191,7 +191,7 @@ struct DiveItem : public TreeItem { TOTALWEIGHT, SUIT, CYLINDER, - NITROX, + GAS, SAC, OTU, MAXCNS, @@ -245,7 +245,7 @@ public: TOTALWEIGHT, SUIT, CYLINDER, - NITROX, + GAS, SAC, OTU, MAXCNS, |