fix layout
This commit is contained in:
parent
4e25b59b8e
commit
6f8f9a9c64
@ -33,13 +33,14 @@ Row {
|
||||
property int preferredTextWidth: theme.mSize(theme.defaultFont).width * 40
|
||||
property int _s: units.largeSpacing / 2
|
||||
|
||||
width: childrenRect.width + _s
|
||||
height: childrenRect.height + _s * 2
|
||||
width: implicitWidth + _s
|
||||
height: implicitHeight + _s * 2
|
||||
|
||||
spacing: _s*2
|
||||
|
||||
Item {
|
||||
id: imageContainer
|
||||
visible: toolTip != null && (toolTip.image != null || toolTip.icon != null)
|
||||
visible: toolTip != null && (toolTip.image || toolTip.icon)
|
||||
width: Math.max(tooltipImage.width, tooltipIcon.width)
|
||||
height: Math.max(tooltipImage.height, tooltipIcon.height)
|
||||
x: _s
|
||||
|
Loading…
Reference in New Issue
Block a user