summaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Joakim Bygdell <j.bygdell@gmail.com>2015-12-02 19:22:44 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-02 10:36:17 -0800
commit84a47c0cb4e71e1e1e602abdd94d8c1fdf134e7d (patch)
tree195b5015cf670b5002fb8bda5b0489b0b41a2ae2 /qt-mobile
parent794d4e88bef13ee3d6e973eb7e9671ebbb8eeac9 (diff)
downloadsubsurface-84a47c0cb4e71e1e1e602abdd94d8c1fdf134e7d.tar.gz
QML-UI: Remove button from dive details
The button to hide the dive profile serves no purpose anymore. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qml/DiveDetails.qml18
1 files changed, 1 insertions, 17 deletions
diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml
index bff64537a..b3356313a 100644
--- a/qt-mobile/qml/DiveDetails.qml
+++ b/qt-mobile/qml/DiveDetails.qml
@@ -63,7 +63,7 @@ MobileComponents.Page {
Item {
Layout.columnSpan: 2
Layout.fillWidth: true
- Layout.preferredHeight: qmlProfile.visible ? qmlProfile.height : profileHideButton.height
+ Layout.preferredHeight: qmlProfile.height
QMLProfile {
id: qmlProfile
height: MobileComponents.Units.gridUnit * 25
@@ -74,22 +74,6 @@ MobileComponents.Page {
}
//Rectangle { color: "green"; opacity: 0.4; anchors.fill: parent } // used for debugging the dive profile sizing, will be removed later
}
- Button {
- id: profileHideButton
- anchors {
- right: parent.right
- top: parent.top
- }
- text: "Hide Dive Profile"
- onClicked: {
- qmlProfile.visible = !qmlProfile.visible
- if (qmlProfile.visible) {
- text = "Hide Dive Profile"
- } else {
- text = "Show Dive Profile"
- }
- }
- }
}
MobileComponents.Label {
Layout.alignment: Qt.AlignRight