File 2000-expandablelistitem.patch of Package libplasma6

diff --git a/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml b/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml
index 2744e22665f9308e9d649ee994fb8f419f95a1dd..b6e5e284a4cda1639a109efc8bb5559c49c5843e 100644
--- a/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml
+++ b/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml
@@ -377,8 +377,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
@@ -496,8 +497,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
@@ -506,12 +509,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")
openSUSE Build Service is sponsored by