diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-07-09 20:34:04 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-09 20:47:16 -0700 |
commit | 27f55cb964a67edcd7146aa43bc4af640378bb67 (patch) | |
tree | e26899c347c3ed72a6987d3407b5c7ed5e4e46da | |
parent | 121f9f1902ce8d6ae761f5fdb4361fa9c30880dd (diff) | |
download | subsurface-27f55cb964a67edcd7146aa43bc4af640378bb67.tar.gz |
Use mobile icon for subsurface-mobile
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | icons/subsurface-mobile-icon.png | bin | 0 -> 18816 bytes | |||
-rw-r--r-- | qt-gui.cpp | 1 | ||||
-rw-r--r-- | subsurface.qrc | 1 |
3 files changed, 2 insertions, 0 deletions
diff --git a/icons/subsurface-mobile-icon.png b/icons/subsurface-mobile-icon.png Binary files differnew file mode 100644 index 000000000..302cc6bba --- /dev/null +++ b/icons/subsurface-mobile-icon.png 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> |