forked from wowlet/wowlet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
570 B
25 lines
570 B
3 years ago
|
import QtQuick 2.7
|
||
|
import QtQuick.Controls 2.0
|
||
|
import "." // QTBUG-34418, singletons require explicit import to load qmldir file
|
||
|
|
||
|
RadioButton {
|
||
|
hoverEnabled: true
|
||
|
contentItem: MyText {
|
||
|
horizontalAlignment: Text.AlignHCenter
|
||
|
verticalAlignment: Text.AlignVCenter
|
||
|
text: parent.text
|
||
|
color: parent.enabled ? "#ffffff" : "#909090"
|
||
|
}
|
||
|
onHoveredChanged: {
|
||
|
if (hovered) {
|
||
|
forceActiveFocus()
|
||
|
} else {
|
||
|
focus = false
|
||
|
}
|
||
|
}
|
||
|
|
||
|
onClicked: {
|
||
|
MyResources.playActivationSound()
|
||
|
}
|
||
|
}
|