mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
Fix bug height binding loop
This commit is contained in:
parent
77c6db2155
commit
03773d131b
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue