summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Martin Měřinský <mermar@centrum.cz>2017-11-29 10:57:08 +0100
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2017-11-29 11:46:35 +0100
commit92e9c6606f6ef3ad16d2e31f9f9a8f5fa14f2c1a (patch)
treeca35a73e433d3c667c7ae805d1776ccdbc5e165a /desktop-widgets
parentb0d98f6e269be9560de1b9c140855c85fecf1dd1 (diff)
downloadsubsurface-92e9c6606f6ef3ad16d2e31f9f9a8f5fa14f2c1a.tar.gz
Use consistent aliases for all icons.
Icon aliases were inconsistent mess. Underscores vs. hyphens vs. camelCase. With vs. without filename suffix. Lower vs. upper case. "icon" suffix vs. prefix vs. nothing. Some were duplicated, eg warning vs. warning-icon. Some icons didn't have alias at all. This changes all icon aliases to one, easy grep-able style which complies to Freedesktop Icon Naming Specification (Guidelines). Signed-off-by: Martin Měřinský <mermar@centrum.cz>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/configuredivecomputerdialog.ui8
-rw-r--r--desktop-widgets/filterwidget.ui4
-rw-r--r--desktop-widgets/locationInformation.ui2
-rw-r--r--desktop-widgets/locationinformation.cpp4
-rw-r--r--desktop-widgets/mainwindow.ui34
-rw-r--r--desktop-widgets/preferences/preferences_defaults.cpp2
-rw-r--r--desktop-widgets/preferences/preferences_georeference.cpp2
-rw-r--r--desktop-widgets/preferences/preferences_graph.cpp2
-rw-r--r--desktop-widgets/preferences/preferences_language.cpp2
-rw-r--r--desktop-widgets/preferences/preferences_network.cpp2
-rw-r--r--desktop-widgets/preferences/preferences_units.cpp2
-rw-r--r--desktop-widgets/searchbar.ui4
-rw-r--r--desktop-widgets/simplewidgets.cpp6
-rw-r--r--desktop-widgets/starwidget.cpp2
-rw-r--r--desktop-widgets/tab-widgets/maintab.ui2
-rw-r--r--desktop-widgets/tableview.cpp2
-rw-r--r--desktop-widgets/usermanual.cpp6
17 files changed, 43 insertions, 43 deletions
diff --git a/desktop-widgets/configuredivecomputerdialog.ui b/desktop-widgets/configuredivecomputerdialog.ui
index d647d1134..1657aaf3a 100644
--- a/desktop-widgets/configuredivecomputerdialog.ui
+++ b/desktop-widgets/configuredivecomputerdialog.ui
@@ -215,7 +215,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:icons/ostc3.png</normaloff>:icons/ostc3.png</iconset>
+ <normaloff>:dc-ostc-3-icon</normaloff>:dc-ostc-3-icon</iconset>
</property>
</item>
<item>
@@ -224,7 +224,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:icons/suunto_vyper.png</normaloff>:icons/suunto_vyper.png</iconset>
+ <normaloff>:dc-suunto-vyper-icon</normaloff>:dc-suunto-vyper-icon</iconset>
</property>
</item>
<item>
@@ -233,7 +233,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:icons/ostc2n.png</normaloff>:icons/ostc2n.png</iconset>
+ <normaloff>:dc-ostc-2n-icon</normaloff>:dc-ostc-2n-icon</iconset>
</property>
</item>
<item>
@@ -242,7 +242,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:icons/ostc4.png</normaloff>:icons/ostc4.png</iconset>
+ <normaloff>:dc-ostc-4-icon</normaloff>:dc-ostc-4-icon</iconset>
</property>
</item>
</widget>
diff --git a/desktop-widgets/filterwidget.ui b/desktop-widgets/filterwidget.ui
index 8e42019ce..99117f031 100644
--- a/desktop-widgets/filterwidget.ui
+++ b/desktop-widgets/filterwidget.ui
@@ -74,7 +74,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:filter-reset</normaloff>:filter-reset</iconset>
+ <normaloff>:edit-clear-icon</normaloff>:edit-clear-icon</iconset>
</property>
<property name="autoRaise">
<bool>true</bool>
@@ -88,7 +88,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:filter-hide</normaloff>:filter-hide</iconset>
+ <normaloff>:show-icon</normaloff>:show-icon</iconset>
</property>
<property name="autoRaise">
<bool>true</bool>
diff --git a/desktop-widgets/locationInformation.ui b/desktop-widgets/locationInformation.ui
index 9103bbc1f..b86bdcc92 100644
--- a/desktop-widgets/locationInformation.ui
+++ b/desktop-widgets/locationInformation.ui
@@ -166,7 +166,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:mapwidget-marker-selected</normaloff>:mapwidget-marker-selected</iconset>
+ <normaloff>:dive-spot-selected-icon</normaloff>:dive-spot-selected-icon</iconset>
</property>
</widget>
</item>
diff --git a/desktop-widgets/locationinformation.cpp b/desktop-widgets/locationinformation.cpp
index 454c4c68f..5212b0bf9 100644
--- a/desktop-widgets/locationinformation.cpp
+++ b/desktop-widgets/locationinformation.cpp
@@ -376,8 +376,8 @@ void DiveLocationModel::resetModel()
QVariant DiveLocationModel::data(const QModelIndex &index, int role) const
{
- static const QIcon plusIcon(":plus");
- static const QIcon geoCode(":geocode");
+ static const QIcon plusIcon(":list-add-icon");
+ static const QIcon geoCode(":geotag-icon");
if (index.row() <= 1) { // two special cases.
if (index.column() == UUID) {
diff --git a/desktop-widgets/mainwindow.ui b/desktop-widgets/mainwindow.ui
index 75b4f7f5c..7c967eba4 100644
--- a/desktop-widgets/mainwindow.ui
+++ b/desktop-widgets/mainwindow.ui
@@ -479,7 +479,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:icon_o2</normaloff>:icon_o2</iconset>
+ <normaloff>:ppo2-icon</normaloff>:ppo2-icon</iconset>
</property>
<property name="text">
<string>Toggle pO₂ graph</string>
@@ -491,7 +491,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:icon_n2</normaloff>:icon_n2</iconset>
+ <normaloff>:ppn2-icon</normaloff>:ppn2-icon</iconset>
</property>
<property name="text">
<string>Toggle pN₂ graph</string>
@@ -503,7 +503,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:icon_he</normaloff>:icon_he</iconset>
+ <normaloff>:pphe-icon</normaloff>:pphe-icon</iconset>
</property>
<property name="text">
<string>Toggle pHe graph</string>
@@ -515,7 +515,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:icon_ceiling_dc</normaloff>:icon_ceiling_dc</iconset>
+ <normaloff>:ceiling-dc-icon</normaloff>:ceiling-dc-icon</iconset>
</property>
<property name="text">
<string>Toggle DC reported ceiling</string>
@@ -527,7 +527,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:icon_ceiling_calculated</normaloff>:icon_ceiling_calculated</iconset>
+ <normaloff>:ceiling-calculated-icon</normaloff>:ceiling-calculated-icon</iconset>
</property>
<property name="text">
<string>Toggle calculated ceiling</string>
@@ -539,7 +539,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:icon_ceiling_alltissues</normaloff>:icon_ceiling_alltissues</iconset>
+ <normaloff>:ceiling-tissues-icon</normaloff>:ceiling-tissues-icon</iconset>
</property>
<property name="text">
<string>Toggle calculating all tissues</string>
@@ -551,7 +551,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:icon_ceiling_3m</normaloff>:icon_ceiling_3m</iconset>
+ <normaloff>:ceiling-increments-icon</normaloff>:ceiling-increments-icon</iconset>
</property>
<property name="text">
<string>Toggle calculated ceiling with 3m increments</string>
@@ -563,7 +563,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:icon_HR</normaloff>:icon_HR</iconset>
+ <normaloff>:heart-rate-icon</normaloff>:heart-rate-icon</iconset>
</property>
<property name="text">
<string>Toggle heart rate</string>
@@ -575,7 +575,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:icon_mod</normaloff>:icon_mod</iconset>
+ <normaloff>:depth-mod-icon</normaloff>:depth-mod-icon</iconset>
</property>
<property name="text">
<string>Toggle MOD</string>
@@ -587,7 +587,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:icon_ead</normaloff>:icon_ead</iconset>
+ <normaloff>:depth-ead-icon</normaloff>:depth-ead-icon</iconset>
</property>
<property name="text">
<string>Toggle EAD, END, EADD</string>
@@ -599,7 +599,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:icon_NDLTTS</normaloff>:icon_NDLTTS</iconset>
+ <normaloff>:depth-ndl-icon</normaloff>:depth-ndl-icon</iconset>
</property>
<property name="text">
<string>Toggle NDL, TTS</string>
@@ -611,7 +611,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:icon_lung</normaloff>:icon_lung</iconset>
+ <normaloff>:sac-rate-icon</normaloff>:sac-rate-icon</iconset>
</property>
<property name="text">
<string>Toggle SAC rate</string>
@@ -623,7 +623,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:ruler</normaloff>:ruler</iconset>
+ <normaloff>:ruler-icon</normaloff>:ruler-icon</iconset>
</property>
<property name="text">
<string>Toggle ruler</string>
@@ -635,7 +635,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:scale</normaloff>:scale</iconset>
+ <normaloff>:scale-icon</normaloff>:scale-icon</iconset>
</property>
<property name="text">
<string>Scale graph</string>
@@ -647,7 +647,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:pictures</normaloff>:pictures</iconset>
+ <normaloff>:photo-icon</normaloff>:photo-icon</iconset>
</property>
<property name="text">
<string>Toggle pictures</string>
@@ -659,7 +659,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:gaschange</normaloff>:gaschange</iconset>
+ <normaloff>:tanks-icon</normaloff>:tanks-icon</iconset>
</property>
<property name="text">
<string>Toggle gas bar</string>
@@ -682,7 +682,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:icon_tissue</normaloff>:icon_tissue</iconset>
+ <normaloff>:tissue-icon</normaloff>:tissue-icon</iconset>
</property>
<property name="text">
<string>Toggle tissue heat-map</string>
diff --git a/desktop-widgets/preferences/preferences_defaults.cpp b/desktop-widgets/preferences/preferences_defaults.cpp
index 0d4e83cc2..42dcae13d 100644
--- a/desktop-widgets/preferences/preferences_defaults.cpp
+++ b/desktop-widgets/preferences/preferences_defaults.cpp
@@ -7,7 +7,7 @@
#include <QFileDialog>
-PreferencesDefaults::PreferencesDefaults(): AbstractPreferencesWidget(tr("General"), QIcon(":defaults"), 0 ), ui(new Ui::PreferencesDefaults())
+PreferencesDefaults::PreferencesDefaults(): AbstractPreferencesWidget(tr("General"), QIcon(":preferences-other-icon"), 0 ), ui(new Ui::PreferencesDefaults())
{
ui->setupUi(this);
}
diff --git a/desktop-widgets/preferences/preferences_georeference.cpp b/desktop-widgets/preferences/preferences_georeference.cpp
index 1d960d4b5..314a37c94 100644
--- a/desktop-widgets/preferences/preferences_georeference.cpp
+++ b/desktop-widgets/preferences/preferences_georeference.cpp
@@ -8,7 +8,7 @@
#include <ctime>
-PreferencesGeoreference::PreferencesGeoreference() : AbstractPreferencesWidget(tr("Georeference"), QIcon(":georeference"), 9)
+PreferencesGeoreference::PreferencesGeoreference() : AbstractPreferencesWidget(tr("Georeference"), QIcon(":geotag-icon"), 9)
{
ui = new Ui::PreferencesGeoreference();
ui->setupUi(this);
diff --git a/desktop-widgets/preferences/preferences_graph.cpp b/desktop-widgets/preferences/preferences_graph.cpp
index 9f45c7db6..20e0918ab 100644
--- a/desktop-widgets/preferences/preferences_graph.cpp
+++ b/desktop-widgets/preferences/preferences_graph.cpp
@@ -7,7 +7,7 @@
#include "qt-models/models.h"
-PreferencesGraph::PreferencesGraph() : AbstractPreferencesWidget(tr("Profile"), QIcon(":graph"), 5)
+PreferencesGraph::PreferencesGraph() : AbstractPreferencesWidget(tr("Profile"), QIcon(":graph-icon"), 5)
{
ui = new Ui::PreferencesGraph();
ui->setupUi(this);
diff --git a/desktop-widgets/preferences/preferences_language.cpp b/desktop-widgets/preferences/preferences_language.cpp
index def46a0e2..687be1399 100644
--- a/desktop-widgets/preferences/preferences_language.cpp
+++ b/desktop-widgets/preferences/preferences_language.cpp
@@ -10,7 +10,7 @@
#include "qt-models/models.h"
-PreferencesLanguage::PreferencesLanguage() : AbstractPreferencesWidget(tr("Language"), QIcon(":language"), 4)
+PreferencesLanguage::PreferencesLanguage() : AbstractPreferencesWidget(tr("Language"), QIcon(":preferences-desktop-locale-icon"), 4)
{
ui = new Ui::PreferencesLanguage();
ui->setupUi(this);
diff --git a/desktop-widgets/preferences/preferences_network.cpp b/desktop-widgets/preferences/preferences_network.cpp
index 6ccf97384..c7ce57f2e 100644
--- a/desktop-widgets/preferences/preferences_network.cpp
+++ b/desktop-widgets/preferences/preferences_network.cpp
@@ -8,7 +8,7 @@
#include "core/subsurface-qt/SettingsObjectWrapper.h"
#include <QNetworkProxy>
-PreferencesNetwork::PreferencesNetwork() : AbstractPreferencesWidget(tr("Network"),QIcon(":network"), 9), ui(new Ui::PreferencesNetwork())
+PreferencesNetwork::PreferencesNetwork() : AbstractPreferencesWidget(tr("Network"),QIcon(":network-icon"), 9), ui(new Ui::PreferencesNetwork())
{
ui->setupUi(this);
diff --git a/desktop-widgets/preferences/preferences_units.cpp b/desktop-widgets/preferences/preferences_units.cpp
index 2ff09f192..5ae03fba2 100644
--- a/desktop-widgets/preferences/preferences_units.cpp
+++ b/desktop-widgets/preferences/preferences_units.cpp
@@ -5,7 +5,7 @@
#include "core/qthelper.h"
#include "core/subsurface-qt/SettingsObjectWrapper.h"
-PreferencesUnits::PreferencesUnits(): AbstractPreferencesWidget(tr("Units"),QIcon(":units"),1), ui(new Ui::PreferencesUnits())
+PreferencesUnits::PreferencesUnits(): AbstractPreferencesWidget(tr("Units"),QIcon(":units-icon"),1), ui(new Ui::PreferencesUnits())
{
ui->setupUi(this);
}
diff --git a/desktop-widgets/searchbar.ui b/desktop-widgets/searchbar.ui
index 22bce39c6..3acd0aab3 100644
--- a/desktop-widgets/searchbar.ui
+++ b/desktop-widgets/searchbar.ui
@@ -73,7 +73,7 @@
<string/>
</property>
<property name="icon">
- <iconset theme="go-up">
+ <iconset theme="go-up-icon">
<normaloff/>
</iconset>
</property>
@@ -97,7 +97,7 @@
<string/>
</property>
<property name="icon">
- <iconset theme="go-down">
+ <iconset theme="go-down-icon">
<normaloff/>
</iconset>
</property>
diff --git a/desktop-widgets/simplewidgets.cpp b/desktop-widgets/simplewidgets.cpp
index 457589dde..f142e6155 100644
--- a/desktop-widgets/simplewidgets.cpp
+++ b/desktop-widgets/simplewidgets.cpp
@@ -30,13 +30,13 @@ public:
MinMaxAvgWidgetPrivate(MinMaxAvgWidget *owner)
{
avgIco = new QLabel(owner);
- avgIco->setPixmap(QIcon(":average").pixmap(16, 16));
+ avgIco->setPixmap(QIcon(":average-icon").pixmap(16, 16));
avgIco->setToolTip(QObject::tr("Average"));
minIco = new QLabel(owner);
- minIco->setPixmap(QIcon(":minimum").pixmap(16, 16));
+ minIco->setPixmap(QIcon(":minimum-icon").pixmap(16, 16));
minIco->setToolTip(QObject::tr("Minimum"));
maxIco = new QLabel(owner);
- maxIco->setPixmap(QIcon(":maximum").pixmap(16, 16));
+ maxIco->setPixmap(QIcon(":maximum-icon").pixmap(16, 16));
maxIco->setToolTip(QObject::tr("Maximum"));
avgValue = new QLabel(owner);
minValue = new QLabel(owner);
diff --git a/desktop-widgets/starwidget.cpp b/desktop-widgets/starwidget.cpp
index 503b094ad..6f65a33a3 100644
--- a/desktop-widgets/starwidget.cpp
+++ b/desktop-widgets/starwidget.cpp
@@ -99,7 +99,7 @@ StarWidget::StarWidget(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f),
int dim = defaultIconMetrics().sz_small;
if (activeStar.isNull()) {
- QSvgRenderer render(QString(":star"));
+ QSvgRenderer render(QString(":star-icon"));
QPixmap renderedStar(dim, dim);
renderedStar.fill(Qt::transparent);
diff --git a/desktop-widgets/tab-widgets/maintab.ui b/desktop-widgets/tab-widgets/maintab.ui
index 6fa611153..7a1be9aed 100644
--- a/desktop-widgets/tab-widgets/maintab.ui
+++ b/desktop-widgets/tab-widgets/maintab.ui
@@ -226,7 +226,7 @@
</property>
<property name="icon">
<iconset resource="../../subsurface.qrc">
- <normaloff>:geocode</normaloff>:geocode</iconset>
+ <normaloff>:geotag-icon</normaloff>:geotag-icon</iconset>
</property>
</widget>
</item>
diff --git a/desktop-widgets/tableview.cpp b/desktop-widgets/tableview.cpp
index 29ccbdbd3..560f98a43 100644
--- a/desktop-widgets/tableview.cpp
+++ b/desktop-widgets/tableview.cpp
@@ -43,7 +43,7 @@ TableView::TableView(QWidget *parent) : QGroupBox(parent)
}
layout()->setContentsMargins(margins);
- QIcon plusIcon(":plus");
+ QIcon plusIcon(":list-add-icon");
plusBtn = new QPushButton(plusIcon, QString(), this);
plusBtn->setFlat(true);
diff --git a/desktop-widgets/usermanual.cpp b/desktop-widgets/usermanual.cpp
index 580dadcfd..69000dd54 100644
--- a/desktop-widgets/usermanual.cpp
+++ b/desktop-widgets/usermanual.cpp
@@ -11,9 +11,9 @@ SearchBar::SearchBar(QWidget *parent): QWidget(parent)
{
ui.setupUi(this);
#if defined(Q_OS_MAC) || defined(Q_OS_WIN)
- ui.findNext->setIcon(QIcon(":icons/subsurface/32x32/actions/go-down.png"));
- ui.findPrev->setIcon(QIcon(":icons/subsurface/32x32/actions/go-up.png"));
- ui.findClose->setIcon(QIcon(":icons/subsurface/32x32/actions/window-close.png"));
+ ui.findNext->setIcon(QIcon(":go-down-icon"));
+ ui.findPrev->setIcon(QIcon(":go-up-icon"));
+ ui.findClose->setIcon(QIcon(":window-close-icon"));
#endif
connect(ui.findNext, SIGNAL(pressed()), this, SIGNAL(searchNext()));