Commit abbbc0b7 authored by Nate Graham's avatar Nate Graham
Browse files

WindowHeapDelegate: add tooltip and accessibility info to close button

BUG: 456242
FIXED-IN: 5.26
parent 5214417e
Pipeline #200176 canceled with stage
in 5 minutes and 1 second
......@@ -366,10 +366,18 @@ Item {
topMargin: PlasmaCore.Units.smallSpacing
}
LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft
text: i18ndc("kwin_effects", "@info:tooltip as in: 'close this window'", "Close window")
icon.name: "window-close"
implicitWidth: PlasmaCore.Units.iconSizes.medium
implicitHeight: implicitWidth
onClicked: thumb.client.closeWindow();
display: PC3.AbstractButton.IconOnly
PC3.ToolTip.text: text
PC3.ToolTip.visible: hovered && display === PC3.AbstractButton.IconOnly
PC3.ToolTip.delay: Kirigami.Units.toolTipDelay
Accessible.name: text
}
Component.onDestruction: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment