blob: 2993bc493fb61fcf821e5448b1a3caff594bd1f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Controls.Material 2.12
import QtQuick.Controls.Material.impl 2.12
import "../themes/themes.js" as Theme
MaterialRadioButton {
id: control
width: parent.width
property var location
/* this works for the pointer, but breaks the onClick connection
XXX need to dig into RadioButton implementation.
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
}
*/
contentItem: Label {
text: control.text
font: control.font
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter
leftPadding: control.indicator.width + control.spacing
wrapMode: Label.Wrap
}
}
|