~ubuntu-branches/ubuntu/vivid/youker-assistant/vivid

« back to all changes in this revision

Viewing changes to qml/func/common/defaultstyle/CheckBoxStyle.qml

  • Committer: Package Import Robot
  • Author(s): Kobe Lee (kylinkobe)
  • Date: 2013-09-18 16:22:14 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130918162214-6nqyjyf3cd3ynqky
Tags: 0.2.1-0ubuntu1
* Modify the mouse events of MonitorBall.
* Add reset button for clear pages.
* Add policykit for apt clear in sudodbus.
* Fixed the bug about software status and add masklayer.
* Rewrite the code of system information.
* Add some signals and slots.
* Fixed the bug about Software signals(LP: #1226389).
* Modify KThread and add base.py.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
            BorderImage {
21
21
                anchors.fill: parent
22
22
//                source: "../../../img/icons/checkbox-0.png"
23
 
                source: (styleflag == "radio") ? "../../../img/icons/radiobox.png" : "../../../img/icons/checkbox-0.png"
 
23
                source: {
 
24
                    if(styleflag == "radio")
 
25
                         "../../../img/icons/radiobox.png";
 
26
                    else if(styleflag == "flowradio")
 
27
                        "../../../img/icons/flowradio-01.png";
 
28
                    else
 
29
                        "../../../img/icons/checkbox-0.png";
 
30
                }
 
31
 
 
32
//                source: (styleflag == "radio") ? "../../../img/icons/radiobox.png" : "../../../img/icons/checkbox-0.png"
24
33
                smooth: true
25
34
                border.left: 6; border.top: 3
26
35
                border.right: 6; border.bottom: 3
31
40
    property Component checkmark: Component {
32
41
        Image {
33
42
//            source: "../../../img/icons/checkbox.png"
34
 
            source: (styleflag == "radio") ? "../../../img/icons/radiobox-check.png" : "../../../img/icons/checkbox.png"
 
43
            source: {
 
44
                if(styleflag == "radio")
 
45
                     "../../../img/icons/radiobox-check.png";
 
46
                else if(styleflag == "flowradio")
 
47
                    "../../../img/icons/flowradio-02.png";
 
48
                else
 
49
                    "../../../img/icons/checkbox.png";
 
50
            }
 
51
//            source: (styleflag == "radio") ? "../../../img/icons/radiobox-check.png" : "../../../img/icons/checkbox.png"
35
52
//            anchors.verticalCenterOffset: 1
36
53
//            anchors.horizontalCenterOffset: 1
37
54
            anchors.centerIn: parent