EffectComposer: Show scrollbar on show more error view

Fixes: QDS-14238
Change-Id: I5f352b224ead4745100180c724b5e6270a68cea7
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Miikka Heikkinen
2024-11-29 17:10:15 +02:00
parent 7c01a532c6
commit 27c8a0673d
2 changed files with 14 additions and 18 deletions

View File

@@ -37,26 +37,21 @@ Rectangle {
} }
} }
MouseArea {
id: errorMouseArea
hoverEnabled: true
acceptedButtons: Qt.NoButton
anchors.fill: parent
HelperWidgets.Button { HelperWidgets.Button {
id: showLessButton
width: 100 width: 100
height: 30 height: 30
text: qsTr("Show Less") text: qsTr("Show Less")
visible: root.showErrorDetails visible: root.showErrorDetails
opacity: errorMouseArea.containsMouse ? 1 : 0.3 opacity: scrollView.hovered || showLessButton.hovered ? 1 : 0.3
anchors.right: parent.right anchors.right: parent.right
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.margins: 4 anchors.bottomMargin: 8
anchors.rightMargin: 8 + StudioTheme.Values.scrollBarThicknessHover
onClicked: root.showErrorDetails = false onClicked: root.showErrorDetails = false
} }
}
Column { Column {
anchors.centerIn: parent anchors.centerIn: parent

View File

@@ -15,7 +15,6 @@ Flickable {
readonly property bool horizontalScrollBarVisible: horizontalScrollBar.scrollBarVisible readonly property bool horizontalScrollBarVisible: horizontalScrollBar.scrollBarVisible
readonly property bool bothVisible: flickable.verticalScrollBarVisible readonly property bool bothVisible: flickable.verticalScrollBarVisible
&& flickable.horizontalScrollBarVisible && flickable.horizontalScrollBarVisible
property bool hideVerticalScrollBar: false property bool hideVerticalScrollBar: false
property bool hideHorizontalScrollBar: false property bool hideHorizontalScrollBar: false
@@ -24,6 +23,8 @@ Flickable {
default property alias content: areaItem.children default property alias content: areaItem.children
property bool adsFocus: false property bool adsFocus: false
property alias hovered: hoverHandler.hovered
// objectName is used by the dock widget to find this particular ScrollView // objectName is used by the dock widget to find this particular ScrollView
// and set the ads focus on it. // and set the ads focus on it.
objectName: "__mainSrollView" objectName: "__mainSrollView"