~ubuntu-branches/ubuntu/trusty/ktouch/trusty

« back to all changes in this revision

Viewing changes to src/graph-plugin/qml/LineGraph.qml

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2013-01-03 22:43:59 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20130103224359-py0g4mvtu5mjcokx
Tags: 4:4.9.97-0ubuntu1
New upstream release candidate

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    property alias pointRadius: core.pointRadius
28
28
 
29
29
    property alias backgroundColor: bg.color
 
30
    property color textColor: theme.textColor
30
31
 
31
32
    signal pointClicked(int row, variant point)
32
33
    signal pointEntered(int row, variant point)
35
36
    Rectangle {
36
37
        id: bg
37
38
        anchors.fill: parent
38
 
        color: "white"
 
39
        color: theme.backgroundColor
39
40
    }
40
41
 
41
42
    LineGraphCore {
109
110
            topMargin: core.pointRadius + 2
110
111
        }
111
112
        backgroundItem: bg
 
113
        color: root.textColor
112
114
        dimension: core.dimensions.length > 0? core.dimensions[0]: null
113
115
        valueFactor: 1
114
116
    }
120
122
            topMargin: core.pointRadius + (core.height - 2 * core.pointRadius - 4) / 2 + 2
121
123
        }
122
124
        backgroundItem: bg
 
125
        color: root.textColor
123
126
        dimension: core.dimensions.length > 0? core.dimensions[0]: null
124
127
        valueFactor: 0.5
125
128
    }
131
134
            topMargin: core.pointRadius + 2
132
135
        }
133
136
        backgroundItem: bg
 
137
        color: root.textColor
134
138
        dimension: core.dimensions.length > 1? core.dimensions[1]: null
135
139
        valueFactor: 1
136
140
    }
142
146
            topMargin: core.pointRadius + (core.height - 2 * core.pointRadius) / 2 + 2
143
147
        }
144
148
        backgroundItem: bg
 
149
        color: root.textColor
145
150
        dimension: core.dimensions.length > 1? core.dimensions[1]: null
146
151
        valueFactor: 0.5
147
152
    }