7import org.kde.kirigami as Kirigami
14 required property string url
16 property alias source: img.source
18 property int maximumHeight: implicitHeight
20 property alias topMargin: img.y
21 property real bottomMargin: 0
24 implicitHeight: img.implicitHeight + root.topMargin + root.bottomMargin
25 implicitWidth: img.implicitWidth
26 height: img.status === Image.Ready ? img.height + root.topMargin + root.bottomMargin : 0
33 width: img.paintedWidth
34 height: img.paintedHeight
35 color: Kirigami.Theme.textColor
36 visible: Kirigami.Theme.backgroundColor.hslLightness < 0.5
42 anchors.horizontalCenter: root.horizontalCenter
43 width: Math.min(root.width, img.implicitWidth)
44 height: Math.min(img.width / img.implicitWidth * img.implicitHeight, root.maximumHeight)
46 fillMode: Image.PreserveAspectFit
51 onClicked: Qt.openUrlExternally(root.url);
53 cursorShape: Qt.PointingHandCursor
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:06:15 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.