mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
becaa1227f
commit
3cf958e658
1 changed files with 13 additions and 9 deletions
|
@ -218,20 +218,24 @@ Item {
|
||||||
rowSpacing: Kirigami.Units.smallSpacing * 2
|
rowSpacing: Kirigami.Units.smallSpacing * 2
|
||||||
columnSpacing: Kirigami.Units.smallSpacing
|
columnSpacing: Kirigami.Units.smallSpacing
|
||||||
|
|
||||||
QMLProfile {
|
Rectangle {
|
||||||
id: qmlProfile
|
|
||||||
visible: !noDive
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: Layout.minimumHeight
|
Layout.preferredHeight: Layout.minimumHeight
|
||||||
Layout.minimumHeight: width * 0.75
|
Layout.minimumHeight: width * 0.75
|
||||||
Layout.columnSpan: 3
|
Layout.columnSpan: 3
|
||||||
clip: false
|
clip: true
|
||||||
Rectangle {
|
|
||||||
color: "transparent"
|
QMLProfile {
|
||||||
opacity: 0.6
|
id: qmlProfile
|
||||||
border.width: 1
|
visible: !noDive
|
||||||
border.color: subsurfaceTheme.primaryColor
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
Rectangle {
|
||||||
|
color: "transparent"
|
||||||
|
opacity: 0.6
|
||||||
|
border.width: 1
|
||||||
|
border.color: subsurfaceTheme.primaryColor
|
||||||
|
anchors.fill: parent
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue