Text cleanup to amend lacking consistency

- 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 <subsurface@henrik.synth.no>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Henrik Brautaset Aronsen 2013-12-03 21:44:47 +01:00 committed by Dirk Hohndel
parent a75168dcc9
commit 9b51901f35
3 changed files with 13 additions and 15 deletions

View file

@ -365,8 +365,6 @@ void DiveListView::reloadHeaderActions()
// Populate the context menu of the headers that will show // Populate the context menu of the headers that will show
// the menu to show / hide columns. // the menu to show / hide columns.
if (!header()->actions().size()) { if (!header()->actions().size()) {
QAction *visibleAction = new QAction(tr("Visible:"), header());
header()->addAction(visibleAction);
QSettings s; QSettings s;
s.beginGroup("DiveListColumnState"); s.beginGroup("DiveListColumnState");
for(int i = 0; i < model()->columnCount(); i++) { for(int i = 0; i < model()->columnCount(); i++) {

View file

@ -63,7 +63,7 @@ void CleanerTableModel::setHeaderDataStrings(const QStringList& newHeaders)
CylindersModel::CylindersModel(QObject* parent): current(0), rows(0) CylindersModel::CylindersModel(QObject* parent): current(0), rows(0)
{ {
// enum{REMOVE, TYPE, SIZE, WORKINGPRESS, START, END, O2, HE, DEPTH}; // 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() CylindersModel *CylindersModel::instance()

View file

@ -301,7 +301,7 @@
<item row="0" column="1"> <item row="0" column="1">
<widget class="QRadioButton" name="meter"> <widget class="QRadioButton" name="meter">
<property name="text"> <property name="text">
<string>Meter</string> <string>meter</string>
</property> </property>
<attribute name="buttonGroup"> <attribute name="buttonGroup">
<string notr="true">buttonGroup</string> <string notr="true">buttonGroup</string>
@ -311,7 +311,7 @@
<item row="0" column="2"> <item row="0" column="2">
<widget class="QRadioButton" name="feet"> <widget class="QRadioButton" name="feet">
<property name="text"> <property name="text">
<string>Feet</string> <string>feet</string>
</property> </property>
<attribute name="buttonGroup"> <attribute name="buttonGroup">
<string notr="true">buttonGroup</string> <string notr="true">buttonGroup</string>
@ -328,7 +328,7 @@
<item row="1" column="1"> <item row="1" column="1">
<widget class="QRadioButton" name="bar"> <widget class="QRadioButton" name="bar">
<property name="text"> <property name="text">
<string>Bar</string> <string>bar</string>
</property> </property>
<attribute name="buttonGroup"> <attribute name="buttonGroup">
<string notr="true">buttonGroup_2</string> <string notr="true">buttonGroup_2</string>
@ -338,7 +338,7 @@
<item row="1" column="2"> <item row="1" column="2">
<widget class="QRadioButton" name="psi"> <widget class="QRadioButton" name="psi">
<property name="text"> <property name="text">
<string>Psi</string> <string>psi</string>
</property> </property>
<attribute name="buttonGroup"> <attribute name="buttonGroup">
<string notr="true">buttonGroup_2</string> <string notr="true">buttonGroup_2</string>
@ -355,7 +355,7 @@
<item row="2" column="1"> <item row="2" column="1">
<widget class="QRadioButton" name="liter"> <widget class="QRadioButton" name="liter">
<property name="text"> <property name="text">
<string>Liter</string> <string>liter</string>
</property> </property>
<attribute name="buttonGroup"> <attribute name="buttonGroup">
<string notr="true">buttonGroup_3</string> <string notr="true">buttonGroup_3</string>
@ -365,7 +365,7 @@
<item row="2" column="2"> <item row="2" column="2">
<widget class="QRadioButton" name="cuft"> <widget class="QRadioButton" name="cuft">
<property name="text"> <property name="text">
<string>CuFt</string> <string>cu ft</string>
</property> </property>
<attribute name="buttonGroup"> <attribute name="buttonGroup">
<string notr="true">buttonGroup_3</string> <string notr="true">buttonGroup_3</string>
@ -382,7 +382,7 @@
<item row="3" column="1"> <item row="3" column="1">
<widget class="QRadioButton" name="celsius"> <widget class="QRadioButton" name="celsius">
<property name="text"> <property name="text">
<string>Celsius</string> <string>celsius</string>
</property> </property>
<attribute name="buttonGroup"> <attribute name="buttonGroup">
<string notr="true">buttonGroup_4</string> <string notr="true">buttonGroup_4</string>
@ -392,7 +392,7 @@
<item row="3" column="2"> <item row="3" column="2">
<widget class="QRadioButton" name="fahrenheit"> <widget class="QRadioButton" name="fahrenheit">
<property name="text"> <property name="text">
<string>Fahrenheit</string> <string>fahrenheit</string>
</property> </property>
<attribute name="buttonGroup"> <attribute name="buttonGroup">
<string notr="true">buttonGroup_4</string> <string notr="true">buttonGroup_4</string>
@ -409,7 +409,7 @@
<item row="4" column="1"> <item row="4" column="1">
<widget class="QRadioButton" name="kgs"> <widget class="QRadioButton" name="kgs">
<property name="text"> <property name="text">
<string>Kg</string> <string>kg</string>
</property> </property>
<attribute name="buttonGroup"> <attribute name="buttonGroup">
<string notr="true">buttonGroup_5</string> <string notr="true">buttonGroup_5</string>
@ -497,7 +497,7 @@
<item> <item>
<widget class="QCheckBox" name="po2"> <widget class="QCheckBox" name="po2">
<property name="text"> <property name="text">
<string>pO2</string> <string>pO₂</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -538,7 +538,7 @@
<item> <item>
<widget class="QCheckBox" name="pn2"> <widget class="QCheckBox" name="pn2">
<property name="text"> <property name="text">
<string>pN2</string> <string>pN₂</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -643,7 +643,7 @@
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="text"> <property name="text">
<string>max PPO2</string> <string>max ppO₂</string>
</property> </property>
</widget> </widget>
</item> </item>