mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-12 13:26:16 +00:00
profile capitalisation
Signed-off-by: Tim Wootton <tim@tee-jay.demon.co.uk> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
38c402d9ad
commit
9b5048034f
2 changed files with 5 additions and 5 deletions
|
@ -100,9 +100,9 @@ QVariant DivePlotDataModel::headerData(int section, Qt::Orientation orientation,
|
||||||
case COLOR:
|
case COLOR:
|
||||||
return tr("Color");
|
return tr("Color");
|
||||||
case USERENTERED:
|
case USERENTERED:
|
||||||
return tr("User Entered");
|
return tr("User entered");
|
||||||
case CYLINDERINDEX:
|
case CYLINDERINDEX:
|
||||||
return tr("Cylinder Index");
|
return tr("Cylinder index");
|
||||||
case SENSOR_PRESSURE:
|
case SENSOR_PRESSURE:
|
||||||
return tr("Pressure S");
|
return tr("Pressure S");
|
||||||
case INTERPOLATED_PRESSURE:
|
case INTERPOLATED_PRESSURE:
|
||||||
|
|
|
@ -905,7 +905,7 @@ void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// create the profile context menu
|
// create the profile context menu
|
||||||
QMenu *gasChange = m.addMenu(tr("Add Gas Change"));
|
QMenu *gasChange = m.addMenu(tr("Add gas change"));
|
||||||
GasSelectionModel *model = GasSelectionModel::instance();
|
GasSelectionModel *model = GasSelectionModel::instance();
|
||||||
model->repopulate();
|
model->repopulate();
|
||||||
int rowCount = model->rowCount();
|
int rowCount = model->rowCount();
|
||||||
|
@ -916,11 +916,11 @@ void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event)
|
||||||
action->setData(event->globalPos());
|
action->setData(event->globalPos());
|
||||||
gasChange->addAction(action);
|
gasChange->addAction(action);
|
||||||
}
|
}
|
||||||
QAction *action = m.addAction(tr("Add Bookmark"), this, SLOT(addBookmark()));
|
QAction *action = m.addAction(tr("Add bookmark"), this, SLOT(addBookmark()));
|
||||||
action->setData(event->globalPos());
|
action->setData(event->globalPos());
|
||||||
if (DiveEventItem *item = dynamic_cast<DiveEventItem *>(sceneItem)) {
|
if (DiveEventItem *item = dynamic_cast<DiveEventItem *>(sceneItem)) {
|
||||||
action = new QAction(&m);
|
action = new QAction(&m);
|
||||||
action->setText(tr("Remove Event"));
|
action->setText(tr("Remove event"));
|
||||||
action->setData(QVariant::fromValue<void *>(item)); // so we know what to remove.
|
action->setData(QVariant::fromValue<void *>(item)); // so we know what to remove.
|
||||||
connect(action, SIGNAL(triggered(bool)), this, SLOT(removeEvent()));
|
connect(action, SIGNAL(triggered(bool)), this, SLOT(removeEvent()));
|
||||||
m.addAction(action);
|
m.addAction(action);
|
||||||
|
|
Loading…
Add table
Reference in a new issue