forked from qt-creator/qt-creator
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:
@@ -37,25 +37,20 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
HelperWidgets.Button {
|
||||||
id: errorMouseArea
|
id: showLessButton
|
||||||
|
|
||||||
hoverEnabled: true
|
width: 100
|
||||||
acceptedButtons: Qt.NoButton
|
height: 30
|
||||||
anchors.fill: parent
|
text: qsTr("Show Less")
|
||||||
|
visible: root.showErrorDetails
|
||||||
|
opacity: scrollView.hovered || showLessButton.hovered ? 1 : 0.3
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.bottomMargin: 8
|
||||||
|
anchors.rightMargin: 8 + StudioTheme.Values.scrollBarThicknessHover
|
||||||
|
|
||||||
HelperWidgets.Button {
|
onClicked: root.showErrorDetails = false
|
||||||
width: 100
|
|
||||||
height: 30
|
|
||||||
text: qsTr("Show Less")
|
|
||||||
visible: root.showErrorDetails
|
|
||||||
opacity: errorMouseArea.containsMouse ? 1 : 0.3
|
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
anchors.margins: 4
|
|
||||||
|
|
||||||
onClicked: root.showErrorDetails = false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
@@ -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"
|
||||||
|
Reference in New Issue
Block a user