summaryrefslogtreecommitdiff
path: root/src/widgets/CheckBox.qml
blob: 6bca05d7b47e52d0d58ad4f77b5ba95237ca1d53 (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
import QtQuick 1.0
import "custom" as Components
import "plugin"

// jb : Size should not depend on background, we should make it consistent

Components.CheckBox{
    id:checkbox
    property variant text
    width:100
    height:18

    background: QStyleBackground {
        id:styleitem
        style:QStyleItem {
            elementType:"checkbox"
            sunken:pressed
            on:checked || pressed
            hover:containsMouse
            text:checkbox.text
            enabled:checkbox.enabled
        }
    }
    checkmark: null
}