Fix bug height binding loop

This commit is contained in:
Angela Mazzurco 2017-07-26 14:43:15 +02:00
parent 77c6db2155
commit 03773d131b

View File

@ -2,20 +2,21 @@ import QtQuick 2.0
import QtQuick.Controls 2.0 import QtQuick.Controls 2.0
ToolButton Item
{ {
height: icon.height + 5 height: innerText.implicitHeight
property int iconHeight: 25
property alias iconUrl: icon.source property alias iconUrl: icon.source
property alias innerText: innerText.text property alias innerText: innerText.text
Image Image
{ {
id: icon id: icon
height: innerText.contentHeight height: iconHeight
width: innerText.contentHeight width: height
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
anchors.left: parent.left anchors.left: parent.left