aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tim Wootton <tim@tee-jay.demon.co.uk>2014-07-11 00:06:46 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-10 16:29:01 -0700
commit7680863c0e267a25c0705fc77a41d58b7530db40 (patch)
treec8b6fca35cd15a8543927635160a6bd497c68cd3 /qt-ui
parent91ead05dbf39fe072e4143f6bbd350cec2e129e9 (diff)
downloadsubsurface-7680863c0e267a25c0705fc77a41d58b7530db40.tar.gz
diverplanner capitalisation consitency
Signed-off-by: Tim Wootton <tim@tee-jay.demon.co.uk> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/diveplanner.cpp16
-rw-r--r--qt-ui/diveplanner.ui4
2 files changed, 10 insertions, 10 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 0ea157867..5e07dcb39 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -207,7 +207,7 @@ void DiveHandler::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
m.addAction(action);
}
m.addSeparator();
- m.addAction(QObject::tr("Remove this Point"), this, SLOT(selfRemove()));
+ m.addAction(QObject::tr("Remove this point"), this, SLOT(selfRemove()));
m.exec(event->screenPos());
}
@@ -249,11 +249,11 @@ void DiveHandler::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
DivePlannerWidget::DivePlannerWidget(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f)
{
ui.setupUi(this);
- ui.tableWidget->setTitle(tr("Dive Planner Points"));
+ ui.tableWidget->setTitle(tr("Dive planner points"));
ui.tableWidget->setModel(DivePlannerPointsModel::instance());
DivePlannerPointsModel::instance()->setRecalc(true);
ui.tableWidget->view()->setItemDelegateForColumn(DivePlannerPointsModel::GAS, new AirTypesDelegate(this));
- ui.cylinderTableWidget->setTitle(tr("Available Gases"));
+ ui.cylinderTableWidget->setTitle(tr("Available gases"));
ui.cylinderTableWidget->setModel(CylindersModel::instance());
QTableView *view = ui.cylinderTableWidget->view();
view->setColumnHidden(CylindersModel::START, true);
@@ -276,7 +276,7 @@ DivePlannerWidget::DivePlannerWidget(QWidget *parent, Qt::WindowFlags f) : QWidg
connect(CylindersModel::instance(), SIGNAL(rowsRemoved(QModelIndex, int, int)),
plannerModel, SIGNAL(cylinderModelEdited()));
- ui.tableWidget->setBtnToolTip(tr("add dive data point"));
+ ui.tableWidget->setBtnToolTip(tr("Add dive data point"));
connect(ui.startTime, SIGNAL(timeChanged(QTime)), plannerModel, SLOT(setStartTime(QTime)));
connect(ui.dateEdit, SIGNAL(dateChanged(QDate)), plannerModel, SLOT(setStartDate(QDate)));
connect(ui.ATMPressure, SIGNAL(valueChanged(int)), this, SLOT(atmPressureChanged(int)));
@@ -583,15 +583,15 @@ QVariant DivePlannerPointsModel::headerData(int section, Qt::Orientation orienta
if (role == Qt::DisplayRole && orientation == Qt::Horizontal) {
switch (section) {
case DEPTH:
- return tr("Final Depth");
+ return tr("Final depth");
case RUNTIME:
return tr("Run time");
case DURATION:
return tr("Duration");
case GAS:
- return tr("Used Gas");
+ return tr("Used gas");
case CCSETPOINT:
- return tr("CC Set Point");
+ return tr("CC set point");
}
} else if (role == Qt::FontRole) {
return defaultModelFont();
@@ -884,7 +884,7 @@ struct diveplan &DivePlannerPointsModel::getDiveplan()
void DivePlannerPointsModel::cancelPlan()
{
if (mode == PLAN && rowCount()) {
- if (QMessageBox::warning(MainWindow::instance(), TITLE_OR_TEXT(tr("Discard the Plan?"),
+ if (QMessageBox::warning(MainWindow::instance(), TITLE_OR_TEXT(tr("Discard the plan?"),
tr("You are about to discard your plan.")),
QMessageBox::Discard | QMessageBox::Cancel, QMessageBox::Discard) != QMessageBox::Discard) {
return;
diff --git a/qt-ui/diveplanner.ui b/qt-ui/diveplanner.ui
index 90c9fda97..ad7d92929 100644
--- a/qt-ui/diveplanner.ui
+++ b/qt-ui/diveplanner.ui
@@ -103,7 +103,7 @@
<sizepolicy hsizetype="Expanding" vsizetype="Preferred"/>
</property>
<property name="text">
- <string>Planned Dive Time</string>
+ <string>Planned dive time</string>
</property>
</widget>
</item>
@@ -138,7 +138,7 @@
<item row="2" column="1">
<widget class="QLabel" name="label_2">
<property name="text">
- <string>ATM Pressure</string>
+ <string>ATM pressure</string>
</property>
</widget>
</item>