mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-27 08:25:53 -04:00
38 lines
614 B
QML
38 lines
614 B
QML
import QtQuick 2.0
|
|
import QtQuick.Controls 2.0
|
|
|
|
|
|
Item
|
|
{
|
|
height: innerText.implicitHeight
|
|
|
|
property int iconHeight: 25
|
|
|
|
property alias iconUrl: icon.source
|
|
property alias innerText: innerText.text
|
|
|
|
Image
|
|
{
|
|
id: icon
|
|
|
|
height: iconHeight
|
|
width: height
|
|
|
|
fillMode: Image.PreserveAspectFit
|
|
anchors.left: parent.left
|
|
anchors.leftMargin: 4
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
}
|
|
|
|
Text
|
|
{
|
|
id: innerText
|
|
wrapMode: Text.WrapAnywhere
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
anchors.left: icon.right
|
|
anchors.leftMargin: 5
|
|
}
|
|
|
|
|
|
}
|