summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-17 10:35:57 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-18 07:34:46 -0800
commit3cf958e658ad30d0ddd3cb5bac884424955d8340 (patch)
tree1e5a64940fea568d576cab6665a4a12026974185 /mobile-widgets
parentbecaa1227f5fcb987c1ebe7173c00235d57cf81e (diff)
downloadsubsurface-3cf958e658ad30d0ddd3cb5bac884424955d8340.tar.gz
mobile/profile: add invisible rectangle around QMLProfile
This way we can clip the profile to it's designated size. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DiveDetailsView.qml22
1 files changed, 13 insertions, 9 deletions
diff --git a/mobile-widgets/qml/DiveDetailsView.qml b/mobile-widgets/qml/DiveDetailsView.qml
index fbbf7e7c7..a7fbf4412 100644
--- a/mobile-widgets/qml/DiveDetailsView.qml
+++ b/mobile-widgets/qml/DiveDetailsView.qml
@@ -218,20 +218,24 @@ Item {
rowSpacing: Kirigami.Units.smallSpacing * 2
columnSpacing: Kirigami.Units.smallSpacing
- QMLProfile {
- id: qmlProfile
- visible: !noDive
+ Rectangle {
Layout.fillWidth: true
Layout.preferredHeight: Layout.minimumHeight
Layout.minimumHeight: width * 0.75
Layout.columnSpan: 3
- clip: false
- Rectangle {
- color: "transparent"
- opacity: 0.6
- border.width: 1
- border.color: subsurfaceTheme.primaryColor
+ clip: true
+
+ QMLProfile {
+ id: qmlProfile
+ visible: !noDive
anchors.fill: parent
+ Rectangle {
+ color: "transparent"
+ opacity: 0.6
+ border.width: 1
+ border.color: subsurfaceTheme.primaryColor
+ anchors.fill: parent
+ }
}
}
Controls.Label {