Fix color setting
For some elements the brush and pen colors were set so that the default
brush and pen style was used. This resulted wrong pattern for the
colors.
Change-Id: Ie67d954f1e6e91201a034921433e0bccf6745159
Task-number: QTRD-3736
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Clear chart image to transparent when necessary.
If there is any transparency in the background, image clear should
be done every time chart is rendered to avoid artifacts from
previous render. Background shape change also triggers the clear,
but that is needed only once.
Change-Id: If0a762d2e2e01cf3a94a5d2f6845613deb619bdd
Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
Use Item instead of Rectangle as a background item where possible
Using Rectangle as background is not recommended if it is only for
color. It is more efficient to simply set the window color.
Change-Id: I3447ca394d74fa415bde4e9d2f210c81f354555e
Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
Fixed build failure related to QOpenGLBuffer include
Change-Id: Id3e1a5bd1e4c327570dc6b551d2ea848fb8fb838
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>