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) width: handleRow.childrenRect.width + (2 * handleRow.spacing)
height: Math.max(configureButton.height, label.contentHeight, closeButton.height) height: Math.max(configureButton.height, label.contentHeight, closeButton.height)
hoverEnabled: true hoverEnabled: true
LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft
LayoutMirroring.childrenInherit: true
onEntered: hideTimer.stop(); onEntered: hideTimer.stop();
onExited: hideTimer.restart(); onExited: hideTimer.restart();
Row { Row {

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

Loading…
Cancel
Save