support inverted layout

This commit is contained in:
Marco Martin 2014-05-21 15:03:37 +02:00
parent 409d340fba
commit bb10131fd4
2 changed files with 4 additions and 0 deletions

View File

@ -114,6 +114,8 @@ Item {
}
}
LayoutMirroring.enabled: (Qt.application.layoutDirection === Qt.RightToLeft)
LayoutMirroring.childrenInherit: true
implicitHeight: Math.floor(Math.max(theme.mSize(theme.defaultFont).height*1.6, minimumHeight))
// TODO: needs to define if there will be specific graphics for

View File

@ -94,6 +94,8 @@ Item {
*/
property real minimumHeight: Math.max(units.iconSizes.small, label.paintedHeight) + delegate.margins.top + delegate.margins.top
LayoutMirroring.enabled: (Qt.application.layoutDirection === Qt.RightToLeft)
LayoutMirroring.childrenInherit: true
implicitWidth: {
if (label.text.length == 0) {
height;