mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
794d4e88be
commit
84a47c0cb4
1 changed files with 1 additions and 17 deletions
|
@ -63,7 +63,7 @@ MobileComponents.Page {
|
||||||
Item {
|
Item {
|
||||||
Layout.columnSpan: 2
|
Layout.columnSpan: 2
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: qmlProfile.visible ? qmlProfile.height : profileHideButton.height
|
Layout.preferredHeight: qmlProfile.height
|
||||||
QMLProfile {
|
QMLProfile {
|
||||||
id: qmlProfile
|
id: qmlProfile
|
||||||
height: MobileComponents.Units.gridUnit * 25
|
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
|
//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 {
|
MobileComponents.Label {
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue