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