We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84c9296 commit 3d02e0fCopy full SHA for 3d02e0f
src/qml/controls/OptionButton.qml
@@ -7,9 +7,10 @@ import QtQuick.Controls 2.15
7
import QtQuick.Layouts 1.15
8
9
Button {
10
+ id: button
11
property string description
12
property bool recommended: false
- id: button
13
+ property string image: ""
14
padding: 15
15
checkable: true
16
implicitWidth: 450
@@ -25,6 +26,19 @@ Button {
25
26
}
27
contentItem: RowLayout {
28
spacing: 3
29
+ Loader {
30
+ active: button.image !== ""
31
+ visible: active
32
+ Layout.rightMargin: 7
33
+ sourceComponent: Button {
34
+ icon.source: button.image
35
+ icon.height: 40
36
+ icon.width: 40
37
+ icon.color: Theme.color.neutral9
38
+ padding: 0
39
+ background: null
40
+ }
41
42
ColumnLayout {
43
44
Layout.fillWidth: true
0 commit comments