Use icons relative path.

Icon paths are defined in one place only - application's embedded resources.

Signed-off-by: Martin Měřinský <mermar@centrum.cz>
This commit is contained in:
Martin Měřinský 2017-11-28 08:37:01 +01:00 committed by Dirk Hohndel
parent 9cc0d04048
commit 0855f6f315
26 changed files with 51 additions and 51 deletions

View file

@ -24,7 +24,7 @@
</property>
<property name="windowIcon">
<iconset resource="../subsurface.qrc">
<normaloff>:/subsurface-icon</normaloff>:/subsurface-icon</iconset>
<normaloff>:subsurface-icon</normaloff>:subsurface-icon</iconset>
</property>
<property name="modal">
<bool>true</bool>
@ -39,7 +39,7 @@
<string/>
</property>
<property name="pixmap">
<pixmap resource="../subsurface.qrc">:/subsurface-icon</pixmap>
<pixmap resource="../subsurface.qrc">:subsurface-icon</pixmap>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>

View file

@ -215,7 +215,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/icons/ostc3.png</normaloff>:/icons/ostc3.png</iconset>
<normaloff>:icons/ostc3.png</normaloff>:icons/ostc3.png</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>:icons/suunto_vyper.png</normaloff>:icons/suunto_vyper.png</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>:icons/ostc2n.png</normaloff>:icons/ostc2n.png</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>:icons/ostc4.png</normaloff>:icons/ostc4.png</iconset>
</property>
</item>
</widget>

View file

@ -24,7 +24,7 @@
</property>
<property name="windowIcon">
<iconset>
<normalon>:/subsurface-icon</normalon>
<normalon>:subsurface-icon</normalon>
</iconset>
</property>
<layout class="QVBoxLayout" name="verticalLayout">

View file

@ -18,7 +18,7 @@
</property>
<property name="windowIcon">
<iconset>
<normalon>:/subsurface-icon</normalon>
<normalon>:subsurface-icon</normalon>
</iconset>
</property>
<layout class="QVBoxLayout" name="verticalLayout">

View file

@ -15,7 +15,7 @@
</property>
<property name="windowIcon">
<iconset>
<normalon>:/subsurface-icon</normalon>
<normalon>:subsurface-icon</normalon>
</iconset>
</property>
<layout class="QGridLayout" name="gridLayout">

View file

@ -15,7 +15,7 @@
</property>
<property name="windowIcon">
<iconset>
<normalon>:/subsurface-icon</normalon>
<normalon>:subsurface-icon</normalon>
</iconset>
</property>
<layout class="QVBoxLayout" name="verticalLayout">

View file

@ -15,7 +15,7 @@
</property>
<property name="windowIcon">
<iconset>
<normalon>:/subsurface-icon</normalon>
<normalon>:subsurface-icon</normalon>
</iconset>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">

View file

@ -74,7 +74,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/filter-reset</normaloff>:/filter-reset</iconset>
<normaloff>:filter-reset</normaloff>:filter-reset</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>:filter-hide</normaloff>:filter-hide</iconset>
</property>
<property name="autoRaise">
<bool>true</bool>
@ -102,7 +102,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/filter-close</normaloff>:/filter-close</iconset>
<normaloff>:filter-close</normaloff>:filter-close</iconset>
</property>
<property name="autoRaise">
<bool>true</bool>

View file

@ -77,7 +77,7 @@
</property>
<property name="icon">
<iconset>
<normaloff>:/satellite</normaloff>:/satellite</iconset>
<normaloff>:satellite</normaloff>:satellite</iconset>
</property>
</widget>
</item>
@ -166,7 +166,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/mapwidget-marker-selected</normaloff>:/mapwidget-marker-selected</iconset>
<normaloff>:mapwidget-marker-selected</normaloff>:mapwidget-marker-selected</iconset>
</property>
</widget>
</item>

View file

@ -1108,7 +1108,7 @@ void MainWindow::on_actionYearlyStatistics_triggered()
d.setWindowFlags(Qt::Window | Qt::CustomizeWindowHint
| Qt::WindowCloseButtonHint | Qt::WindowTitleHint);
d.setWindowTitle(tr("Yearly statistics"));
d.setWindowIcon(QIcon(":/subsurface-icon"));
d.setWindowIcon(QIcon(":subsurface-icon"));
d.exec();
}

View file

@ -454,7 +454,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/icon_o2</normaloff>:/icon_o2</iconset>
<normaloff>:icon_o2</normaloff>:icon_o2</iconset>
</property>
<property name="text">
<string>Toggle pO₂ graph</string>
@ -466,7 +466,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/icon_n2</normaloff>:/icon_n2</iconset>
<normaloff>:icon_n2</normaloff>:icon_n2</iconset>
</property>
<property name="text">
<string>Toggle pN₂ graph</string>
@ -478,7 +478,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/icon_he</normaloff>:/icon_he</iconset>
<normaloff>:icon_he</normaloff>:icon_he</iconset>
</property>
<property name="text">
<string>Toggle pHe graph</string>
@ -490,7 +490,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/icon_ceiling_dc</normaloff>:/icon_ceiling_dc</iconset>
<normaloff>:icon_ceiling_dc</normaloff>:icon_ceiling_dc</iconset>
</property>
<property name="text">
<string>Toggle DC reported ceiling</string>
@ -502,7 +502,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/icon_ceiling_calculated</normaloff>:/icon_ceiling_calculated</iconset>
<normaloff>:icon_ceiling_calculated</normaloff>:icon_ceiling_calculated</iconset>
</property>
<property name="text">
<string>Toggle calculated ceiling</string>
@ -514,7 +514,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/icon_ceiling_alltissues</normaloff>:/icon_ceiling_alltissues</iconset>
<normaloff>:icon_ceiling_alltissues</normaloff>:icon_ceiling_alltissues</iconset>
</property>
<property name="text">
<string>Toggle calculating all tissues</string>
@ -526,7 +526,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/icon_ceiling_3m</normaloff>:/icon_ceiling_3m</iconset>
<normaloff>:icon_ceiling_3m</normaloff>:icon_ceiling_3m</iconset>
</property>
<property name="text">
<string>Toggle calculated ceiling with 3m increments</string>
@ -538,7 +538,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/icon_HR</normaloff>:/icon_HR</iconset>
<normaloff>:icon_HR</normaloff>:icon_HR</iconset>
</property>
<property name="text">
<string>Toggle heart rate</string>
@ -550,7 +550,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/icon_mod</normaloff>:/icon_mod</iconset>
<normaloff>:icon_mod</normaloff>:icon_mod</iconset>
</property>
<property name="text">
<string>Toggle MOD</string>
@ -562,7 +562,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/icon_ead</normaloff>:/icon_ead</iconset>
<normaloff>:icon_ead</normaloff>:icon_ead</iconset>
</property>
<property name="text">
<string>Toggle EAD, END, EADD</string>
@ -574,7 +574,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/icon_NDLTTS</normaloff>:/icon_NDLTTS</iconset>
<normaloff>:icon_NDLTTS</normaloff>:icon_NDLTTS</iconset>
</property>
<property name="text">
<string>Toggle NDL, TTS</string>
@ -586,7 +586,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/icon_lung</normaloff>:/icon_lung</iconset>
<normaloff>:icon_lung</normaloff>:icon_lung</iconset>
</property>
<property name="text">
<string>Toggle SAC rate</string>
@ -598,7 +598,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/ruler</normaloff>:/ruler</iconset>
<normaloff>:ruler</normaloff>:ruler</iconset>
</property>
<property name="text">
<string>Toggle ruler</string>
@ -610,7 +610,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/scale</normaloff>:/scale</iconset>
<normaloff>:scale</normaloff>:scale</iconset>
</property>
<property name="text">
<string>Scale graph</string>
@ -622,7 +622,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/pictures</normaloff>:/pictures</iconset>
<normaloff>:pictures</normaloff>:pictures</iconset>
</property>
<property name="text">
<string>Toggle pictures</string>
@ -634,7 +634,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/gaschange</normaloff>:/gaschange</iconset>
<normaloff>:gaschange</normaloff>:gaschange</iconset>
</property>
<property name="text">
<string>Toggle gas bar</string>
@ -657,7 +657,7 @@
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
<normaloff>:/icon_tissue</normaloff>:/icon_tissue</iconset>
<normaloff>:icon_tissue</normaloff>:icon_tissue</iconset>
</property>
<property name="text">
<string>Toggle tissue heat-map</string>

View file

@ -15,7 +15,7 @@
</property>
<property name="windowIcon">
<iconset>
<normalon>:/subsurface-icon</normalon>
<normalon>:subsurface-icon</normalon>
</iconset>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">

View file

@ -8,7 +8,7 @@
#include <ctime>
PreferencesGeoreference::PreferencesGeoreference() : AbstractPreferencesWidget(tr("Georeference"), QIcon(":/georeference"), 9)
PreferencesGeoreference::PreferencesGeoreference() : AbstractPreferencesWidget(tr("Georeference"), QIcon(":georeference"), 9)
{
ui = new Ui::PreferencesGeoreference();
ui->setupUi(this);

View file

@ -10,7 +10,7 @@
#include "qt-models/models.h"
PreferencesLanguage::PreferencesLanguage() : AbstractPreferencesWidget(tr("Language"), QIcon(":/language"), 4)
PreferencesLanguage::PreferencesLanguage() : AbstractPreferencesWidget(tr("Language"), QIcon(":language"), 4)
{
ui = new Ui::PreferencesLanguage();
ui->setupUi(this);

View file

@ -18,7 +18,7 @@
</property>
<property name="windowIcon">
<iconset>
<normalon>:/subsurface-icon</normalon>
<normalon>:subsurface-icon</normalon>
</iconset>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">

View file

@ -18,7 +18,7 @@
</property>
<property name="windowIcon">
<iconset>
<normalon>:/subsurface-icon</normalon>
<normalon>:subsurface-icon</normalon>
</iconset>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">

View file

@ -24,7 +24,7 @@
</property>
<property name="windowIcon">
<iconset>
<normalon>:/subsurface-icon</normalon>
<normalon>:subsurface-icon</normalon>
</iconset>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">

View file

@ -24,7 +24,7 @@
</property>
<property name="windowIcon">
<iconset>
<normalon>:/subsurface-icon</normalon>
<normalon>:subsurface-icon</normalon>
</iconset>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">

View file

@ -30,13 +30,13 @@ public:
MinMaxAvgWidgetPrivate(MinMaxAvgWidget *owner)
{
avgIco = new QLabel(owner);
avgIco->setPixmap(QIcon(":/average").pixmap(16, 16));
avgIco->setPixmap(QIcon(":average").pixmap(16, 16));
avgIco->setToolTip(QObject::tr("Average"));
minIco = new QLabel(owner);
minIco->setPixmap(QIcon(":/minimum").pixmap(16, 16));
minIco->setPixmap(QIcon(":minimum").pixmap(16, 16));
minIco->setToolTip(QObject::tr("Minimum"));
maxIco = new QLabel(owner);
maxIco->setPixmap(QIcon(":/maximum").pixmap(16, 16));
maxIco->setPixmap(QIcon(":maximum").pixmap(16, 16));
maxIco->setToolTip(QObject::tr("Maximum"));
avgValue = new QLabel(owner);
minValue = new QLabel(owner);

View file

@ -226,7 +226,7 @@
</property>
<property name="icon">
<iconset resource="../../subsurface.qrc">
<normaloff>:/geocode</normaloff>:/geocode</iconset>
<normaloff>:geocode</normaloff>:geocode</iconset>
</property>
</widget>
</item>

View file

@ -104,7 +104,7 @@ void UpdateManager::requestReceived()
#ifndef SUBSURFACE_MOBILE
if (haveNewVersion || !isAutomaticCheck) {
msgbox.setWindowTitle(msgTitle);
msgbox.setWindowIcon(QIcon(":/subsurface-icon"));
msgbox.setWindowIcon(QIcon(":subsurface-icon"));
msgbox.setText(msgText);
msgbox.setTextFormat(Qt::RichText);
msgbox.exec();

View file

@ -74,7 +74,7 @@ UserManual::UserManual(QWidget *parent) : QWidget(parent)
addAction(actionHideSearch);
setWindowTitle(tr("User manual"));
setWindowIcon(QIcon(":/subsurface-icon"));
setWindowIcon(QIcon(":subsurface-icon"));
#ifdef USE_WEBENGINE
userManual = new MyQWebEngineView(this);

View file

@ -126,7 +126,7 @@ void UserSurvey::requestReceived()
}
msgbox.setWindowTitle(msgTitle);
msgbox.setWindowIcon(QIcon(":/subsurface-icon"));
msgbox.setWindowIcon(QIcon(":subsurface-icon"));
msgbox.setText(msgText);
msgbox.setTextFormat(Qt::RichText);
msgbox.exec();

View file

@ -15,7 +15,7 @@
</property>
<property name="windowIcon">
<iconset>
<normalon>:/subsurface-icon</normalon>
<normalon>:subsurface-icon</normalon>
</iconset>
</property>
<layout class="QGridLayout" name="gridLayout">

View file

@ -329,7 +329,7 @@
<string/>
</property>
<property name="pixmap">
<pixmap resource="../subsurface.qrc">:/subsurface-icon</pixmap>
<pixmap resource="../subsurface.qrc">:subsurface-icon</pixmap>
</property>
<property name="scaledContents">
<bool>true</bool>

View file

@ -101,7 +101,7 @@ void run_ui()
exit(1);
}
QQuickWindow *qml_window = qobject_cast<QQuickWindow *>(qqWindowObject);
qml_window->setIcon(QIcon(":/subsurface-mobile-icon"));
qml_window->setIcon(QIcon(":subsurface-mobile-icon"));
qqWindowObject->setProperty("messageText", QVariant("Subsurface-mobile startup"));
qDebug() << "qqwindow devicePixelRatio" << qml_window->devicePixelRatio() << qml_window->screen()->devicePixelRatio();
QScreen *screen = qml_window->screen();