##// END OF EJS Templates
Fix android build issues...
Heikkinen Miikka -
r2522:e2eb16a7c3b1
parent child
Show More
@@ -921,8 +921,8 QAbstractAxisPrivate::QAbstractAxisPrivate(QAbstractAxis *q)
921 m_titleBrush(QChartPrivate::defaultBrush()),
921 m_titleBrush(QChartPrivate::defaultBrush()),
922 m_titleFont(QChartPrivate::defaultFont()),
922 m_titleFont(QChartPrivate::defaultFont()),
923 m_shadesVisible(false),
923 m_shadesVisible(false),
924 m_shadesBrush(QChartPrivate::defaultBrush()),
925 m_shadesPen(QChartPrivate::defaultPen()),
924 m_shadesPen(QChartPrivate::defaultPen()),
925 m_shadesBrush(QChartPrivate::defaultBrush()),
926 m_shadesOpacity(1.0),
926 m_shadesOpacity(1.0),
927 m_dirty(false)
927 m_dirty(false)
928 {
928 {
@@ -40,7 +40,12
40 #endif
40 #endif
41
41
42 #ifndef DEVELOPMENT_BUILD
42 #ifndef DEVELOPMENT_BUILD
43 #ifdef Q_OS_ANDROID
44 // Android builds do not have __DATE__
45 const char *buildTime = __TIME__;
46 #else
43 const char *buildTime = __TIME__" "__DATE__;
47 const char *buildTime = __TIME__" "__DATE__;
48 #endif
44 const char *gitHead = "unknown";
49 const char *gitHead = "unknown";
45 #else
50 #else
46 #include "qchartversion_p.h"
51 #include "qchartversion_p.h"
@@ -49,8 +49,8 public:
49
49
50 protected:
50 protected:
51 explicit ChartTheme(QChart::ChartTheme id = QChart::ChartThemeLight):m_id(id),
51 explicit ChartTheme(QChart::ChartTheme id = QChart::ChartThemeLight):m_id(id),
52 m_backgroundShades(BackgroundShadesNone),
53 m_backgroundShadesBrush(Qt::SolidPattern),
52 m_backgroundShadesBrush(Qt::SolidPattern),
53 m_backgroundShades(BackgroundShadesNone),
54 m_backgroundDropShadowEnabled(false)
54 m_backgroundDropShadowEnabled(false)
55 {};
55 {};
56 public:
56 public:
@@ -73,20 +73,20 MainWindow::MainWindow(QWidget *parent) :
73 m_angularTitle(QString("Angular Title")),
73 m_angularTitle(QString("Angular Title")),
74 m_radialTitle(QString("Radial Title")),
74 m_radialTitle(QString("Radial Title")),
75 m_base(2.0),
75 m_base(2.0),
76 m_dateFormat(QString("mm-ss-zzz")),
76 m_chart(0),
77 m_chart(0),
77 m_angularAxis(0),
78 m_angularAxis(0),
78 m_radialAxis(0),
79 m_radialAxis(0),
79 m_angularAxisMode(AxisModeNone),
80 m_angularAxisMode(AxisModeNone),
80 m_radialAxisMode(AxisModeNone),
81 m_radialAxisMode(AxisModeNone),
82 m_moreCategories(false),
81 m_series1(0),
83 m_series1(0),
82 m_series2(0),
84 m_series2(0),
83 m_series3(0),
85 m_series3(0),
84 m_series4(0),
86 m_series4(0),
85 m_series5(0),
87 m_series5(0),
86 m_series6(0),
88 m_series6(0),
87 m_series7(0),
89 m_series7(0)
88 m_dateFormat(QString("mm-ss-zzz")),
89 m_moreCategories(false)
90 {
90 {
91 ui->setupUi(this);
91 ui->setupUi(this);
92
92
@@ -913,17 +913,17 void MainWindow::arrowIndexChanged(int index)
913
913
914 void MainWindow::angularRangeChanged(qreal min, qreal max)
914 void MainWindow::angularRangeChanged(qreal min, qreal max)
915 {
915 {
916 if (!qFuzzyCompare(ui->angularMinSpin->value(), min))
916 if (!qFuzzyCompare(qreal(ui->angularMinSpin->value()), min))
917 ui->angularMinSpin->setValue(min);
917 ui->angularMinSpin->setValue(min);
918 if (!qFuzzyCompare(ui->angularMaxSpin->value(), max))
918 if (!qFuzzyCompare(qreal(ui->angularMaxSpin->value()), max))
919 ui->angularMaxSpin->setValue(max);
919 ui->angularMaxSpin->setValue(max);
920 }
920 }
921
921
922 void MainWindow::radialRangeChanged(qreal min, qreal max)
922 void MainWindow::radialRangeChanged(qreal min, qreal max)
923 {
923 {
924 if (!qFuzzyCompare(ui->radialMinSpin->value(), min))
924 if (!qFuzzyCompare(qreal(ui->radialMinSpin->value()), min))
925 ui->radialMinSpin->setValue(min);
925 ui->radialMinSpin->setValue(min);
926 if (!qFuzzyCompare(ui->radialMaxSpin->value(), max))
926 if (!qFuzzyCompare(qreal(ui->radialMaxSpin->value()), max))
927 ui->radialMaxSpin->setValue(max);
927 ui->radialMaxSpin->setValue(max);
928 }
928 }
929
929
General Comments 0
You need to be logged in to leave comments. Login now