summaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-12 10:52:44 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-12 10:52:44 -0700
commitac074bf239e6d4aa6712752ef43df27d5e2dcb76 (patch)
treed8b6b9f8bf6f41fe35a45fc7b5243705aba7ef45 /qt-mobile
parent4088f9f652f447a65f5af00f0712f38bd97b4172 (diff)
downloadsubsurface-ac074bf239e6d4aa6712752ef43df27d5e2dcb76.tar.gz
QML UI: start making things resolution independent
Don't hard code sizes as devices tend to have much higher pixel density than desktop computers. Instead make sizes relative to the content. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/DiveList.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-mobile/DiveList.qml b/qt-mobile/DiveList.qml
index 3ba2de3c7..40507e26a 100644
--- a/qt-mobile/DiveList.qml
+++ b/qt-mobile/DiveList.qml
@@ -17,7 +17,7 @@ Rectangle {
property real detailsOpacity : 0
width: diveListView.width
- height: 70
+ height: childrenRect.height
//Bounded rect for the background
Rectangle {
@@ -38,11 +38,11 @@ Rectangle {
//And other details at the bottom.
Row {
id: topLayout
- x: 10; y: 10; height: 60; width: parent.width
+ x: 10; y: 10; height: childrenRect.height; width: parent.width
spacing: 10
Column {
- width: background.width; height: 60
+ width: background.width; height: childrenRect.height * 1.1
spacing: 5
Text {