@@ -1,61 +1,62 | |||||
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 | #ifndef CHARTTHEMELIGHT_P_H |
|
21 | #ifndef CHARTTHEMELIGHT_P_H | |
22 | #define CHARTTHEMELIGHT_P_H |
|
22 | #define CHARTTHEMELIGHT_P_H | |
23 |
|
23 | |||
24 | #include "charttheme_p.h" |
|
24 | #include "charttheme_p.h" | |
25 |
|
25 | |||
26 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
26 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | |
27 |
|
27 | |||
28 | class ChartThemeLight: public ChartTheme |
|
28 | class ChartThemeLight: public ChartTheme | |
29 | { |
|
29 | { | |
30 | public: |
|
30 | public: | |
31 | ChartThemeLight() : ChartTheme(QChart::ChartThemeLight) |
|
31 | ChartThemeLight() : ChartTheme(QChart::ChartThemeLight) | |
32 | { |
|
32 | { | |
33 | // Series colors |
|
33 | // Series colors | |
34 | m_seriesColors << QRgb(0x209fdf); |
|
34 | m_seriesColors << QRgb(0x209fdf); | |
35 | m_seriesColors << QRgb(0x99ca53); |
|
35 | m_seriesColors << QRgb(0x99ca53); | |
36 | m_seriesColors << QRgb(0xf6a625); |
|
36 | m_seriesColors << QRgb(0xf6a625); | |
37 | m_seriesColors << QRgb(0x6d5fd5); |
|
37 | m_seriesColors << QRgb(0x6d5fd5); | |
38 | m_seriesColors << QRgb(0xbf593e); |
|
38 | m_seriesColors << QRgb(0xbf593e); | |
39 | generateSeriesGradients(); |
|
39 | generateSeriesGradients(); | |
40 |
|
40 | |||
41 | // Background |
|
41 | // Background | |
42 | QLinearGradient backgroundGradient; |
|
42 | QLinearGradient backgroundGradient; | |
43 | backgroundGradient.setColorAt(0.0, QRgb(0xffffff)); |
|
43 | backgroundGradient.setColorAt(0.0, QRgb(0xffffff)); | |
44 | backgroundGradient.setColorAt(1.0, QRgb(0xffffff)); |
|
44 | backgroundGradient.setColorAt(1.0, QRgb(0xffffff)); | |
45 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); |
|
45 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | |
46 | m_chartBackgroundGradient = backgroundGradient; |
|
46 | m_chartBackgroundGradient = backgroundGradient; | |
47 | m_backgroundDropShadowEnabled = true; |
|
47 | // There is a performance issue in the drop shadow implementation, so disabled for now | |
|
48 | // m_backgroundDropShadowEnabled = true; | |||
48 |
|
49 | |||
49 | // Axes and other |
|
50 | // Axes and other | |
50 | m_axisLinePen = QPen(0xd6d6d6); |
|
51 | m_axisLinePen = QPen(0xd6d6d6); | |
51 | m_axisLinePen.setWidth(1); |
|
52 | m_axisLinePen.setWidth(1); | |
52 | m_axisLabelBrush = QBrush(QRgb(0x404044)); |
|
53 | m_axisLabelBrush = QBrush(QRgb(0x404044)); | |
53 | m_gridLinePen = QPen(QRgb(0xe2e2e2)); |
|
54 | m_gridLinePen = QPen(QRgb(0xe2e2e2)); | |
54 | m_gridLinePen.setWidth(1); |
|
55 | m_gridLinePen.setWidth(1); | |
55 | m_backgroundShades = BackgroundShadesNone; |
|
56 | m_backgroundShades = BackgroundShadesNone; | |
56 | } |
|
57 | } | |
57 | }; |
|
58 | }; | |
58 |
|
59 | |||
59 | QTCOMMERCIALCHART_END_NAMESPACE |
|
60 | QTCOMMERCIALCHART_END_NAMESPACE | |
60 |
|
61 | |||
61 | #endif |
|
62 | #endif |
General Comments 0
You need to be logged in to leave comments.
Login now