Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:epopov:branches:openSUSE:Factory
plasma-framework
2000-expandablelistitem.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2000-expandablelistitem.patch of Package plasma-framework
diff --git a/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml b/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml index ce925c958df15b4bab5e5f45b7585c65df768878..3fabac4f5002428046fdeee1d66666251687310c 100644 --- a/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml +++ b/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml @@ -417,8 +417,9 @@ Item { // We still need a MouseArea to handle right-click MouseArea { - anchors.fill: parent + id: mouseArea + anchors.fill: parent acceptedButtons: Qt.RightButton hoverEnabled: true @@ -538,8 +539,10 @@ Item { PlasmaComponents3.ToolButton { id: defaultActionButton + display: PlasmaComponents3.AbstractButton.IconOnly visible: defaultActionButtonAction && listItem.defaultActionButtonVisible + && (mouseArea.containsMouse || expandedView.visible) && (!busyIndicator.visible || listItem.showDefaultActionButtonWhenBusy) KeyNavigation.tab: expandToggleButton @@ -548,12 +551,16 @@ Item { Keys.onUpPressed: event => listItem.Keys.onUpPressed(event) Accessible.name: action !== null ? action.text : "" + + PlasmaComponents3.ToolTip { + text: parent.text + } } // Expand/collapse button PlasmaComponents3.ToolButton { id: expandToggleButton - visible: listItem.hasExpandableContent + visible: listItem.hasExpandableContent && (mouseArea.containsMouse || expandedView.visible) display: PlasmaComponents3.AbstractButton.IconOnly text: expandedView.expanded ? i18ndc("libplasma5", "@action:button", "Collapse") : i18ndc("libplasma5", "@action:button", "Expand")
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor