summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-09 20:34:04 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-09 20:47:16 -0700
commit27f55cb964a67edcd7146aa43bc4af640378bb67 (patch)
treee26899c347c3ed72a6987d3407b5c7ed5e4e46da
parent121f9f1902ce8d6ae761f5fdb4361fa9c30880dd (diff)
downloadsubsurface-27f55cb964a67edcd7146aa43bc4af640378bb67.tar.gz
Use mobile icon for subsurface-mobile
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--icons/subsurface-mobile-icon.pngbin0 -> 18816 bytes
-rw-r--r--qt-gui.cpp1
-rw-r--r--subsurface.qrc1
3 files changed, 2 insertions, 0 deletions
diff --git a/icons/subsurface-mobile-icon.png b/icons/subsurface-mobile-icon.png
new file mode 100644
index 000000000..302cc6bba
--- /dev/null
+++ b/icons/subsurface-mobile-icon.png
Binary files differ
diff --git a/qt-gui.cpp b/qt-gui.cpp
index e5ff6aa23..a3a61e408 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -46,6 +46,7 @@ void run_ui()
engine.load(QUrl(QStringLiteral("qrc:///qml/main.qml")));
QObject *mainWindow = engine.rootObjects().value(0);
QQuickWindow *qml_window = qobject_cast<QQuickWindow *>(mainWindow);
+ qml_window->setIcon(QIcon(":/subsurface-mobile-icon"));
qml_window->show();
#else
window->show();
diff --git a/subsurface.qrc b/subsurface.qrc
index b8129285f..1eaa8cc70 100644
--- a/subsurface.qrc
+++ b/subsurface.qrc
@@ -2,6 +2,7 @@
<qresource prefix="/">
<file alias="star">icons/star.svg</file>
<file alias="subsurface-icon">icons/subsurface-icon.png</file>
+ <file alias="subsurface-mobile-icon">icons/subsurface-mobile-icon.png</file>
<file alias="plus">icons/plus.png</file>
<file alias="trash">icons/trash.png</file>
<file alias="units">icons/units.png</file>