Fix compilation with GCC 6
qtcharts/tests/manual/chartwidgettest/mainwidget.cpp:211:74: error: call of overloaded ‘abs(double)’ is ambiguous
newColumn.append(abs(sin(3.14159265358979 / 50 * i) * 100));
The file included <cmath>, but used C's math.h abs(), which
is integer-only. ^
Change-Id: Iaa7e19f282a460a8c2d79475a14c7372b9740d26
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Make public headers compile with -Wzero-as-null-pointer-constant
... or equivalent.
QtBase 5.6 headers already compile that way, so let the other
modules follow suit.
Change-Id: I79c74046eaf224235cc80a4323fefd2c083b007f
Task-number: QTBUG-45291
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Fix model resetting in with model mappers
Change-Id: I22afd1d361aaf0561b4d94b6a3656bfe7b0d9812
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Fix crash when using linuxfb and 2D renderer
No longer should call any OpenGL functions on QML charts applications
if we don't have a valid OpenGL context.
Task-number: QTBUG-51387
Change-Id: Ic393f69921e300f19dc42c83fc07677ce7869273
Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Explicitly update GLWidget when we set new points
QOpenGLWidget was modified to not trigger some extra paint calls,
which charts used to rely on, so now we do explicit updates instead.
Change-Id: Ibe06c2f88ac7efe4e61351d582f2eff9d350f073
Task-number: QTBUG-51000
Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com>
Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Add support for showing tooltips when the legend text is truncated
Change-Id: Ie0b90489eb51633a0294db12410f9056f740d086
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Add support for reversed axis when useOpenGL is true
Change-Id: If8b6690585c767b65eaa4a43e179c86183903637
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>