@@ -1,116 +1,116 | |||||
1 | /**************************************************************************** |
|
1 | /**************************************************************************** | |
2 | ** |
|
2 | ** | |
3 | ** Copyright (C) 2012 Digia Plc |
|
3 | ** Copyright (C) 2012 Digia Plc | |
4 | ** All rights reserved. |
|
4 | ** All rights reserved. | |
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com |
|
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com | |
6 | ** |
|
6 | ** | |
7 | ** This file is part of the Qt Commercial Charts Add-on. |
|
7 | ** This file is part of the Qt Commercial Charts Add-on. | |
8 | ** |
|
8 | ** | |
9 | ** $QT_BEGIN_LICENSE$ |
|
9 | ** $QT_BEGIN_LICENSE$ | |
10 | ** Licensees holding valid Qt Commercial licenses may use this file in |
|
10 | ** Licensees holding valid Qt Commercial licenses may use this file in | |
11 | ** accordance with the Qt Commercial License Agreement provided with the |
|
11 | ** accordance with the Qt Commercial License Agreement provided with the | |
12 | ** Software or, alternatively, in accordance with the terms contained in |
|
12 | ** Software or, alternatively, in accordance with the terms contained in | |
13 | ** a written agreement between you and Digia. |
|
13 | ** a written agreement between you and Digia. | |
14 | ** |
|
14 | ** | |
15 | ** If you have questions regarding the use of this file, please use |
|
15 | ** If you have questions regarding the use of this file, please use | |
16 | ** contact form at http://qt.digia.com |
|
16 | ** contact form at http://qt.digia.com | |
17 | ** $QT_END_LICENSE$ |
|
17 | ** $QT_END_LICENSE$ | |
18 | ** |
|
18 | ** | |
19 | ****************************************************************************/ |
|
19 | ****************************************************************************/ | |
20 |
|
20 | |||
21 | import QtQuick 1.0 |
|
21 | import QtQuick 1.0 | |
22 |
|
22 | |||
23 | Flow { |
|
23 | Flow { | |
24 | anchors.fill: parent |
|
24 | anchors.fill: parent | |
25 | property variant chart |
|
25 | property variant chart | |
26 | flow: Flow.TopToBottom |
|
26 | flow: Flow.TopToBottom | |
27 | spacing: 5 |
|
27 | spacing: 5 | |
28 | Button { |
|
28 | Button { | |
29 | text: "visible" |
|
29 | text: "visible" | |
30 | onClicked: chart.visible = !chart.visible; |
|
30 | onClicked: chart.visible = !chart.visible; | |
31 | } |
|
31 | } | |
32 | Button { |
|
32 | Button { | |
33 | text: "theme +" |
|
33 | text: "theme +" | |
34 | onClicked: chart.theme++; |
|
34 | onClicked: chart.theme++; | |
35 | } |
|
35 | } | |
36 | Button { |
|
36 | Button { | |
37 | text: "theme -" |
|
37 | text: "theme -" | |
38 | onClicked: chart.theme--; |
|
38 | onClicked: chart.theme--; | |
39 | } |
|
39 | } | |
40 | Button { |
|
40 | Button { | |
41 | text: "animation opt +" |
|
41 | text: "animation opt +" | |
42 | onClicked: chart.animationOptions++; |
|
42 | onClicked: chart.animationOptions++; | |
43 | } |
|
43 | } | |
44 | Button { |
|
44 | Button { | |
45 | text: "animation opt -" |
|
45 | text: "animation opt -" | |
46 | onClicked: chart.animationOptions--; |
|
46 | onClicked: chart.animationOptions--; | |
47 | } |
|
47 | } | |
48 | Button { |
|
48 | Button { | |
49 | text: "background color" |
|
49 | text: "background color" | |
50 | onClicked: chart.backgroundColor = main.nextColor(); |
|
50 | onClicked: chart.backgroundColor = main.nextColor(); | |
51 | } |
|
51 | } | |
52 | Button { |
|
52 | Button { | |
53 | text: "drop shadow enabled" |
|
53 | text: "drop shadow enabled" | |
54 | onClicked: chart.dropShadowEnabled = !chart.dropShadowEnabled; |
|
54 | onClicked: chart.dropShadowEnabled = !chart.dropShadowEnabled; | |
55 | } |
|
55 | } | |
56 | Button { |
|
56 | Button { | |
57 | text: "zoom +" |
|
57 | text: "zoom +" | |
58 | onClicked: chart.zoom(2); |
|
58 | onClicked: chart.zoom(2); | |
59 | } |
|
59 | } | |
60 | Button { |
|
60 | Button { | |
61 | text: "zoom -" |
|
61 | text: "zoom -" | |
62 | onClicked: chart.zoom(0.5); |
|
62 | onClicked: chart.zoom(0.5); | |
63 | } |
|
63 | } | |
64 | Button { |
|
64 | Button { | |
65 | text: "scroll left" |
|
65 | text: "scroll left" | |
66 | onClicked: chart.scrollLeft(10); |
|
66 | onClicked: chart.scrollLeft(10); | |
67 | } |
|
67 | } | |
68 | Button { |
|
68 | Button { | |
69 | text: "scroll right" |
|
69 | text: "scroll right" | |
70 | onClicked: chart.scrollRight(10); |
|
70 | onClicked: chart.scrollRight(10); | |
71 | } |
|
71 | } | |
72 | Button { |
|
72 | Button { | |
73 | text: "scroll up" |
|
73 | text: "scroll up" | |
74 | onClicked: chart.scrollUp(10); |
|
74 | onClicked: chart.scrollUp(10); | |
75 | } |
|
75 | } | |
76 | Button { |
|
76 | Button { | |
77 | text: "scroll down" |
|
77 | text: "scroll down" | |
78 | onClicked: chart.scrollDown(10); |
|
78 | onClicked: chart.scrollDown(10); | |
79 | } |
|
79 | } | |
80 | Button { |
|
80 | Button { | |
81 | text: "title color" |
|
81 | text: "title color" | |
82 | onClicked: chart.titleColor = main.nextColor(); |
|
82 | onClicked: chart.titleColor = main.nextColor(); | |
83 | } |
|
83 | } | |
84 | Button { |
|
84 | Button { | |
85 |
text: "top m |
|
85 | text: "top margin +" | |
86 | onClicked: chart.margins.top += 5; |
|
86 | onClicked: chart.margins.top += 5; | |
87 | } |
|
87 | } | |
88 | Button { |
|
88 | Button { | |
89 |
text: "top m |
|
89 | text: "top margin -" | |
90 | onClicked: chart.margins.top -= 5; |
|
90 | onClicked: chart.margins.top -= 5; | |
91 | } |
|
91 | } | |
92 | Button { |
|
92 | Button { | |
93 |
text: "bottom m |
|
93 | text: "bottom margin +" | |
94 | onClicked: chart.margins.bottom += 5; |
|
94 | onClicked: chart.margins.bottom += 5; | |
95 | } |
|
95 | } | |
96 | Button { |
|
96 | Button { | |
97 |
text: "bottom m |
|
97 | text: "bottom margin -" | |
98 | onClicked: chart.margins.bottom -= 5; |
|
98 | onClicked: chart.margins.bottom -= 5; | |
99 | } |
|
99 | } | |
100 | Button { |
|
100 | Button { | |
101 |
text: "left m |
|
101 | text: "left margin +" | |
102 | onClicked: chart.margins.left += 5; |
|
102 | onClicked: chart.margins.left += 5; | |
103 | } |
|
103 | } | |
104 | Button { |
|
104 | Button { | |
105 |
text: "left m |
|
105 | text: "left margin -" | |
106 | onClicked: chart.margins.left -= 5; |
|
106 | onClicked: chart.margins.left -= 5; | |
107 | } |
|
107 | } | |
108 | Button { |
|
108 | Button { | |
109 |
text: "right m |
|
109 | text: "right margin +" | |
110 | onClicked: chart.margins.right += 5; |
|
110 | onClicked: chart.margins.right += 5; | |
111 | } |
|
111 | } | |
112 | Button { |
|
112 | Button { | |
113 |
text: "right m |
|
113 | text: "right margin -" | |
114 | onClicked: chart.margins.right -= 5; |
|
114 | onClicked: chart.margins.right -= 5; | |
115 | } |
|
115 | } | |
116 | } |
|
116 | } |
General Comments 0
You need to be logged in to leave comments.
Login now