From 9b51901f3566b568d6e80d1b5eca985d42e55fcf Mon Sep 17 00:00:00 2001 From: Henrik Brautaset Aronsen Date: Tue, 3 Dec 2013 21:44:47 +0100 Subject: Text cleanup to amend lacking consistency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Removed the "Visible:" header on the column selector. It doesn't have to be there, and it's not in the similar equipment column selector - PO2 --> pO₂ (and others) - Use same initial case in the units selector in preferences Signed-off-by: Henrik Brautaset Aronsen Signed-off-by: Dirk Hohndel --- qt-ui/divelistview.cpp | 2 -- qt-ui/models.cpp | 2 +- qt-ui/preferences.ui | 24 ++++++++++++------------ 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp index b0b14fb9c..27027c84b 100644 --- a/qt-ui/divelistview.cpp +++ b/qt-ui/divelistview.cpp @@ -365,8 +365,6 @@ void DiveListView::reloadHeaderActions() // Populate the context menu of the headers that will show // the menu to show / hide columns. if (!header()->actions().size()) { - QAction *visibleAction = new QAction(tr("Visible:"), header()); - header()->addAction(visibleAction); QSettings s; s.beginGroup("DiveListColumnState"); for(int i = 0; i < model()->columnCount(); i++) { diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 5dbb8ea22..6a1e007b7 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -63,7 +63,7 @@ void CleanerTableModel::setHeaderDataStrings(const QStringList& newHeaders) CylindersModel::CylindersModel(QObject* parent): current(0), rows(0) { // enum{REMOVE, TYPE, SIZE, WORKINGPRESS, START, END, O2, HE, DEPTH}; - setHeaderDataStrings( QStringList() << "" << tr("Type") << tr("Size") << tr("WorkPress") << tr("StartPress") << tr("EndPress") << tr("O2%") << tr("He%") << tr("Switch at")); + setHeaderDataStrings( QStringList() << "" << tr("Type") << tr("Size") << tr("WorkPress") << tr("StartPress") << tr("EndPress") << trUtf8("O" UTF8_SUBSCRIPT_2 "%") << tr("He%") << tr("Switch at")); } CylindersModel *CylindersModel::instance() diff --git a/qt-ui/preferences.ui b/qt-ui/preferences.ui index b58acfed2..e80cc8493 100644 --- a/qt-ui/preferences.ui +++ b/qt-ui/preferences.ui @@ -301,7 +301,7 @@ - Meter + meter buttonGroup @@ -311,7 +311,7 @@ - Feet + feet buttonGroup @@ -328,7 +328,7 @@ - Bar + bar buttonGroup_2 @@ -338,7 +338,7 @@ - Psi + psi buttonGroup_2 @@ -355,7 +355,7 @@ - Liter + liter buttonGroup_3 @@ -365,7 +365,7 @@ - CuFt + cu ft buttonGroup_3 @@ -382,7 +382,7 @@ - Celsius + celsius buttonGroup_4 @@ -392,7 +392,7 @@ - Fahrenheit + fahrenheit buttonGroup_4 @@ -409,7 +409,7 @@ - Kg + kg buttonGroup_5 @@ -497,7 +497,7 @@ - pO2 + pO₂ @@ -538,7 +538,7 @@ - pN2 + pN₂ @@ -643,7 +643,7 @@ false - max PPO2 + max ppO₂ -- cgit v1.2.3-70-g09d2