forked from qt-creator/qt-creator
QmlDesigner: Force hide scrollbar in certain mode
Force hide vertical scrollbar in landscape mode. Force hide horizontal scrollbar in portrait mode. Task-number: QDS-7850 Change-Id: I1c1d4c879a58309a61ceb646a6aeaccc2300f243 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
1cee5e08b1
commit
8f69e5c0f2
@@ -587,6 +587,7 @@ Rectangle {
|
|||||||
y: scrollView.height - height
|
y: scrollView.height - height
|
||||||
width: scrollView.availableWidth
|
width: scrollView.availableWidth
|
||||||
orientation: Qt.Horizontal
|
orientation: Qt.Horizontal
|
||||||
|
visible: root.isLandscape
|
||||||
|
|
||||||
show: (scrollView.hovered || scrollView.focus || scrollView.adsFocus)
|
show: (scrollView.hovered || scrollView.focus || scrollView.adsFocus)
|
||||||
&& horizontalBar.isNeeded
|
&& horizontalBar.isNeeded
|
||||||
@@ -601,6 +602,7 @@ Rectangle {
|
|||||||
y: scrollView.topPadding
|
y: scrollView.topPadding
|
||||||
height: scrollView.availableHeight
|
height: scrollView.availableHeight
|
||||||
orientation: Qt.Vertical
|
orientation: Qt.Vertical
|
||||||
|
visible: !root.isLandscape
|
||||||
|
|
||||||
show: (scrollView.hovered || scrollView.focus || scrollView.adsFocus)
|
show: (scrollView.hovered || scrollView.focus || scrollView.adsFocus)
|
||||||
&& verticalBar.isNeeded
|
&& verticalBar.isNeeded
|
||||||
|
Reference in New Issue
Block a user