support RTL to tooltips and previews

v0.7
Michail Vourlakos 7 years ago
parent 19d13ac671
commit f56cdcb758

@ -459,6 +459,9 @@ MouseArea {
width: handleRow.childrenRect.width + (2 * handleRow.spacing)
height: Math.max(configureButton.height, label.contentHeight, closeButton.height)
hoverEnabled: true
LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft
LayoutMirroring.childrenInherit: true
onEntered: hideTimer.stop();
onExited: hideTimer.restart();
Row {

@ -106,6 +106,7 @@ Column {
text: appName
opacity: flatIndex == 0
textFormat: Text.PlainText
horizontalAlignment: Text.AlignLeft
}
// window title
PlasmaComponents.Label {
@ -116,6 +117,7 @@ Column {
elide: Text.ElideRight
text: generateTitle()
textFormat: Text.PlainText
horizontalAlignment: Text.AlignLeft
opacity: 0.75
}
// subtext
@ -127,6 +129,7 @@ Column {
elide: Text.ElideRight
text: isWin ? generateSubText() : ""
textFormat: Text.PlainText
horizontalAlignment: Text.AlignLeft
opacity: 0.6
visible: text !== ""
}

Loading…
Cancel
Save