Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:epopov:branches:openSUSE:Factory
libplasma6
2000-expandablelistitem.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2000-expandablelistitem.patch of Package libplasma6
diff --git a/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml b/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml index 32e0b0b5830b1bd1bd2cd84976e8368fc5f5da73..f2ad6f49ef109f1d1a7ee99ecfd0d6d1b35bc89e 100644 --- a/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml +++ b/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml @@ -376,8 +376,9 @@ Item { } MouseArea { - anchors.fill: parent + id: mouseArea + anchors.fill: parent // This MouseArea used to intercept RightButton to open a context // menu, but that has been removed, and now it's only used for hover acceptedButtons: Qt.NoButton @@ -495,8 +496,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 @@ -505,12 +508,16 @@ Item { Keys.onUpPressed: event => listItem.Keys.upPressed(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("libplasma6", "@action:button", "Collapse") : i18ndc("libplasma6", "@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