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
ToolButton
Item
{
height: icon.height + 5
height: innerText.implicitHeight
property int iconHeight: 25
property alias iconUrl: icon.source
property alias innerText: innerText.text
Image
{
id: icon
height: innerText.contentHeight
width: innerText.contentHeight
height: iconHeight
width: height
fillMode: Image.PreserveAspectFit
anchors.left: parent.left