mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
In strings change tank to cylinder
Change the word "tank" to "cylinder" or "cyl." in two occurences. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
3d421584aa
commit
5da6362679
1 changed files with 3 additions and 3 deletions
|
@ -1400,7 +1400,7 @@ void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event)
|
||||||
QMenu *gasChange = m.addMenu(tr("Add gas change"));
|
QMenu *gasChange = m.addMenu(tr("Add gas change"));
|
||||||
for (int i = 0; i < rowCount; i++) {
|
for (int i = 0; i < rowCount; i++) {
|
||||||
QAction *action = new QAction(&m);
|
QAction *action = new QAction(&m);
|
||||||
action->setText(model->data(model->index(i, 0), Qt::DisplayRole).toString() + QString(tr(" (Tank %1)")).arg(i + 1));
|
action->setText(model->data(model->index(i, 0), Qt::DisplayRole).toString() + QString(tr(" (cyl. %1)")).arg(i + 1));
|
||||||
connect(action, SIGNAL(triggered(bool)), this, SLOT(changeGas()));
|
connect(action, SIGNAL(triggered(bool)), this, SLOT(changeGas()));
|
||||||
action->setData(event->globalPos());
|
action->setData(event->globalPos());
|
||||||
gasChange->addAction(action);
|
gasChange->addAction(action);
|
||||||
|
@ -1459,14 +1459,14 @@ void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event)
|
||||||
// pressure field if this is the first or last entry for this tank... see details in gaspressures.c
|
// pressure field if this is the first or last entry for this tank... see details in gaspressures.c
|
||||||
pressure_t pressure;
|
pressure_t pressure;
|
||||||
pressure.mbar = INTERPOLATED_PRESSURE(gasChangeEntry) ? : SENSOR_PRESSURE(gasChangeEntry);
|
pressure.mbar = INTERPOLATED_PRESSURE(gasChangeEntry) ? : SENSOR_PRESSURE(gasChangeEntry);
|
||||||
QAction *adjustOldPressure = m.addAction(tr("Adjust pressure of tank %1 (currently interpolated as %2)")
|
QAction *adjustOldPressure = m.addAction(tr("Adjust pressure of cyl. %1 (currently interpolated as %2)")
|
||||||
.arg(gasChangeEntry->sensor[0] + 1).arg(get_pressure_string(pressure)));
|
.arg(gasChangeEntry->sensor[0] + 1).arg(get_pressure_string(pressure)));
|
||||||
}
|
}
|
||||||
if (SENSOR_PRESSURE(newGasEntry) == 0 || displayed_dive.cylinder[newGasEntry->sensor[0]].sample_start.mbar == 0) {
|
if (SENSOR_PRESSURE(newGasEntry) == 0 || displayed_dive.cylinder[newGasEntry->sensor[0]].sample_start.mbar == 0) {
|
||||||
// we only have interpolated press -- see commend above
|
// we only have interpolated press -- see commend above
|
||||||
pressure_t pressure;
|
pressure_t pressure;
|
||||||
pressure.mbar = INTERPOLATED_PRESSURE(newGasEntry) ? : SENSOR_PRESSURE(newGasEntry);
|
pressure.mbar = INTERPOLATED_PRESSURE(newGasEntry) ? : SENSOR_PRESSURE(newGasEntry);
|
||||||
QAction *adjustOldPressure = m.addAction(tr("Adjust pressure of tank %1 (currently interpolated as %2)")
|
QAction *adjustOldPressure = m.addAction(tr("Adjust pressure of cyl. %1 (currently interpolated as %2)")
|
||||||
.arg(newGasEntry->sensor[0] + 1).arg(get_pressure_string(pressure)));
|
.arg(newGasEntry->sensor[0] + 1).arg(get_pressure_string(pressure)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue