summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2013-08-09 13:58:49 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-14 11:18:59 +0200
commitb2acf349efe64b828e46494612ecff8d8a5d8b3c (patch)
tree018c044e522c00dfda59d9f49631617fc2532215
parent1fc385db0a06e54e35fbce3d1857b621bf08f82b (diff)
Improve weather app icon layouts to decrease chance of overlap
Change-Id: I2f236d0bda50f92840f908305916a082fb59700c Reviewed-by: QTBUG-18405 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
-rw-r--r--examples/weatherinfo/components/BigForecastIcon.qml2
-rw-r--r--examples/weatherinfo/weatherinfo.qml4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/weatherinfo/components/BigForecastIcon.qml b/examples/weatherinfo/components/BigForecastIcon.qml
index 0752fa57..6583d6d3 100644
--- a/examples/weatherinfo/components/BigForecastIcon.qml
+++ b/examples/weatherinfo/components/BigForecastIcon.qml
@@ -63,6 +63,7 @@ Item {
weatherIcon: current.weatherIcon
useServerIcon: false
anchors.centerIn: parent
+ anchors.verticalCenterOffset: -15
width: current.smallSide
height: current.smallSide
}
@@ -73,7 +74,6 @@ Item {
anchors {
bottom: current.bottom
right: current.right
- bottomMargin: 20
rightMargin: 5
}
}
diff --git a/examples/weatherinfo/weatherinfo.qml b/examples/weatherinfo/weatherinfo.qml
index 99bcd179..0c69090d 100644
--- a/examples/weatherinfo/weatherinfo.qml
+++ b/examples/weatherinfo/weatherinfo.qml
@@ -139,7 +139,7 @@ Item {
BigForecastIcon {
id: current
- width: main.width - 3
+ width: main.width -12
height: 2 * (main.height - 25 - 12) / 3
weatherIcon: (model.hasValidWeather
@@ -167,7 +167,7 @@ Item {
id: iconRow
spacing: 6
- width: main.width - 3
+ width: main.width - 12
height: (main.height - 25 - 24) / 3
property real iconWidth: iconRow.width / 4 - 10