##// END OF EJS Templates
minor. compilation fix for test widget
Michal Klocek -
r154:be42f5df02e7
parent child
Show More
@@ -14,9 +14,7 DeclarativeChart::DeclarativeChart(QDeclarativeItem *parent)
14 DeclarativeChart::ChartTheme DeclarativeChart::theme()
14 DeclarativeChart::ChartTheme DeclarativeChart::theme()
15 {
15 {
16 if (m_chart)
16 if (m_chart)
17 return (ChartTheme) m_chart->theme();
17 return (ChartTheme) m_chart->chartTheme();
18 else
19 return ThemeInvalid;
20 }
18 }
21
19
22 void DeclarativeChart::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
20 void DeclarativeChart::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
@@ -17,7 +17,6 class DeclarativeChart : public QDeclarativeItem
17
17
18 public:
18 public:
19 enum ChartTheme {
19 enum ChartTheme {
20 ThemeInvalid = QChart::ChartThemeInvalid,
21 ThemeDefault,
20 ThemeDefault,
22 ThemeVanilla,
21 ThemeVanilla,
23 ThemeIcy,
22 ThemeIcy,
@@ -31,7 +30,7 public: // From QDeclarativeItem/QGraphicsItem
31 void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry);
30 void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry);
32
31
33 public:
32 public:
34 void setTheme(ChartTheme theme) {m_chart->setTheme((QChart::ChartThemeId) theme);}
33 void setTheme(ChartTheme theme) {m_chart->setChartTheme((QChart::ChartTheme) theme);}
35 ChartTheme theme();
34 ChartTheme theme();
36
35
37 public:
36 public:
@@ -363,7 +363,7 void MainWidget::yMaxChanged(int value)
363 void MainWidget::changeChartTheme(int themeIndex)
363 void MainWidget::changeChartTheme(int themeIndex)
364 {
364 {
365 qDebug() << "changeChartTheme: " << themeIndex;
365 qDebug() << "changeChartTheme: " << themeIndex;
366 m_chartWidget->setTheme((QChart::ChartThemeId) themeIndex);
366 m_chartWidget->setChartTheme((QChart::ChartTheme) themeIndex);
367 }
367 }
368
368
369 void MainWidget::setPieSizeFactor(double size)
369 void MainWidget::setPieSizeFactor(double size)
General Comments 0
You need to be logged in to leave comments. Login now