summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@theqtcompany.com>2015-08-13 16:48:49 +0200
committerAndras Becsi <andras.becsi@theqtcompany.com>2015-08-13 16:48:49 +0200
commitff12628305c02cda0de13d4895bab73d0ea42646 (patch)
treef878b325c7d2ebfec2dd9b1f121b7c720ef3fdde /src
parentd5bc55c8a10bad4075b94aad9b3b937179250b7c (diff)
Show a shipped Qt icon for qt.io pages
qt.io does not provide a high resolution apple-touch-icon which would look strange on a demo ;)
Diffstat (limited to 'src')
-rw-r--r--src/qml/HomeScreen.qml3
-rw-r--r--src/resources.qrc1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/HomeScreen.qml b/src/qml/HomeScreen.qml
index a7b5761..2e6d919 100644
--- a/src/qml/HomeScreen.qml
+++ b/src/qml/HomeScreen.qml
@@ -67,7 +67,8 @@ Rectangle {
homeScreen.forceActiveFocus()
return
}
- var element = { "title": title, "url": url, "iconUrl": iconUrl, "fallbackColor": fallbackColor }
+ var icon = url.indexOf("qt.io") != -1 ? "qrc:///qt" : iconUrl
+ var element = { "title": title, "url": url, "iconUrl": icon, "fallbackColor": fallbackColor }
listModel.append(element)
set(listModel.count - 1)
}
diff --git a/src/resources.qrc b/src/resources.qrc
index 1081a1b..bc8d3a6 100644
--- a/src/resources.qrc
+++ b/src/resources.qrc
@@ -27,6 +27,7 @@
<file alias="up">qml/assets/icons/Btn_Up.png</file>
<file alias="search">qml/assets/icons/Btn_Search.png</file>
<file alias="error">qml/assets/icons/Error_Icon.png</file>
+ <file alias="qt">qml/assets/icons/qt.png</file>
<file alias="icon">qml/assets/icons/AppLogoColor.png</file>
<file alias="icon_grey">qml/assets/icons/AppLogoGrey.png</file>
</qresource>