forked from qt-creator/qt-creator
26 lines
561 B
QML
26 lines
561 B
QML
|
|
import QtQuick 1.0
|
||
|
|
import "custom" as Components
|
||
|
|
|
||
|
|
// jb : Size should not depend on background, we should make it consistent
|
||
|
|
|
||
|
|
Components.CheckBox {
|
||
|
|
id:radiobutton
|
||
|
|
property string text
|
||
|
|
property string hint
|
||
|
|
width:110
|
||
|
|
height:20
|
||
|
|
|
||
|
|
background: QStyleItem {
|
||
|
|
elementType:"radiobutton"
|
||
|
|
sunken:pressed
|
||
|
|
on:checked || pressed
|
||
|
|
hover:containsMouse
|
||
|
|
text:radiobutton.text
|
||
|
|
enabled:radiobutton.enabled
|
||
|
|
focus:radiobutton.focus
|
||
|
|
hint:radiobutton.hint
|
||
|
|
}
|
||
|
|
Keys.onSpacePressed:clicked()
|
||
|
|
}
|
||
|
|
|