From 27f55cb964a67edcd7146aa43bc4af640378bb67 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 9 Jul 2015 20:34:04 -0700 Subject: Use mobile icon for subsurface-mobile Signed-off-by: Dirk Hohndel --- icons/subsurface-mobile-icon.png | Bin 0 -> 18816 bytes qt-gui.cpp | 1 + subsurface.qrc | 1 + 3 files changed, 2 insertions(+) create mode 100644 icons/subsurface-mobile-icon.png diff --git a/icons/subsurface-mobile-icon.png b/icons/subsurface-mobile-icon.png new file mode 100644 index 000000000..302cc6bba Binary files /dev/null and b/icons/subsurface-mobile-icon.png 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(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 @@ icons/star.svg icons/subsurface-icon.png + icons/subsurface-mobile-icon.png icons/plus.png icons/trash.png icons/units.png -- cgit v1.2.3-70-g09d2