diff options
author | Sebastian Kügler <sebas@kde.org> | 2015-12-08 03:27:47 +0100 |
---|---|---|
committer | Sebastian Kügler <sebas@kde.org> | 2015-12-08 04:55:56 +0100 |
commit | 946cc5fec2bc17e1a31856571e1715c0d22230a8 (patch) | |
tree | 7e38107b127b6c6e62cd19c63b2d6c5c135c1335 | |
parent | 6b3df6597be1a66214f8ad6836eca72c778c29de (diff) | |
download | subsurface-946cc5fec2bc17e1a31856571e1715c0d22230a8.tar.gz |
fix vertical alignment in divelist
left and right of the items and the headings are now synced and
consistent with other pages.
Signed-off-by: Sebastian Kügler <sebas@kde.org>
-rw-r--r-- | qt-mobile/qml/DiveList.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml index a104f1e6e..12c36b0c8 100644 --- a/qt-mobile/qml/DiveList.qml +++ b/qt-mobile/qml/DiveList.qml @@ -20,6 +20,7 @@ MobileComponents.Page { checked: diveListView.currentIndex == model.index property real detailsOpacity : 0 + property int horizontalPadding: MobileComponents.Units.gridUnit / 2 - MobileComponents.Units.smallSpacing + 1 //When clicked, the mode changes to details view @@ -56,7 +57,7 @@ MobileComponents.Page { maximumLineCount: 1 // needed for elide to work at all anchors { left: parent.left - leftMargin: MobileComponents.Units.gridUnit / 2 + leftMargin: horizontalPadding top: parent.top right: dateLabel.left } @@ -74,9 +75,9 @@ MobileComponents.Page { Row { anchors { left: parent.left - leftMargin: MobileComponents.Units.gridUnit / 2 + leftMargin: horizontalPadding right: parent.right - rightMargin: MobileComponents.Units.gridUnit / 2 + rightMargin: horizontalPadding bottom: numberText.bottom } MobileComponents.Label { @@ -107,7 +108,6 @@ MobileComponents.Page { opacity: 0.6 anchors { right: parent.right - rightMargin: MobileComponents.Units.gridUnit / 2 top: locationText.bottom } } |