summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/main.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-28 22:49:46 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-28 22:49:46 -0800
commitba4bb567019297e6073f4bcea9938b249e06da73 (patch)
tree5fab17a4bb09d639ec6dc81d5acc45c88d0fc77e /qt-mobile/qml/main.qml
parent66b08f53f274e46e672354b8c8e8ab1ed446ddae (diff)
downloadsubsurface-ba4bb567019297e6073f4bcea9938b249e06da73.tar.gz
QML UI: better way to determine dive details edit width
Instead of passing magic values around, calculate the columnWidth as part of the SubsurfaceTheme object. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/main.qml')
-rw-r--r--qt-mobile/qml/main.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml
index 3b81c615e..9c4a36c43 100644
--- a/qt-mobile/qml/main.qml
+++ b/qt-mobile/qml/main.qml
@@ -209,6 +209,7 @@ MobileComponents.ApplicationWindow {
property color accentColor: "#2d5b9a"
property color shadedColor: "#132744"
property color accentTextColor: "#ececec"
+ property int columnWidth: Math.round(rootItem.width/(MobileComponents.Units.gridUnit*30)) > 0 ? Math.round(rootItem.width / Math.round(rootItem.width/(MobileComponents.Units.gridUnit*30))) : rootItem.width
}
toolBar: TopBar {