barSetsChanged is now emitted when we append, remove, clear, take, insert or replace
countChanged is now emitted when we append, remove, clear or insert
X and Y axisChanged are now emitted when its setter function is called
Fixes: QTBUG-129425
Pick-to: 6.8
Change-Id: Id7b21592ec38441bec100963cece0ceca33ed5c1
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit 9a057632b7)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Also added sliders for valuesMultiplier to qmlTestBed donut chart so it is possible to manually test this
Task-number: QTBUG-131117
Pick-to: 6.8
Change-Id: I2da2d22847203e93ac058ae1be80b1bc1ec03c34
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit d6d7fcb369)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Change XYSeries' list append to emit pointsAdded signal and use
list append in XYSeries' list append instead of individual append.
Task-number: QTBUG-122336
Change-Id: I32598b3250fc8300d03fe8f7e745acc6dd516adc
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit d49b448a5f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This aims to fix issue with new barsets not creating connection with handleSet
slots when replace function is used. Also fixes issue of double signal sent
when setvisibility function is used.
Fixes: QTBUG-128661
Fixes: QTBUG-128863
Pick-to: 6.8
Change-Id: I432349a70032bf4b373142e063a38c46b35688db
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Allow setting alignment property for axis and based on that, render the
axis on left/right/top/bottom.
Task-number: QTBUG-120503
Change-Id: Ieda65627ebed644c2a1ddd2c4ed611fb268a401c
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
`timezone` feature might be unavailable on some platforms, which causes
tests to fail. Exclude them from building in such case.
Pick-to: 6.7 6.8
Task-number: QTBUG-115777
Change-Id: I3b31b70f249cb6ab21a6b749c331952dbf06edd7
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
- Remove axis orientation property. It wasn't working correctly
as a CONSTANT and doesn't seem relevant for the users.
- Remove axis alignment property. It doesn't work until
QTBUG-120503 (and will probably not be CONSTANT then) so better
to remove for now.
- Remove m_axis list as it isn't needed.
Task-number: QTBUG-120503
Pick-to: 6.8
Change-Id: Ida70a8fdb20b3e2369dd4ecd24e21f6e90b1bcf2
Reviewed-by: Owais Akhtar <owais.akhtar@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Another option would be to allow the user to signify the timezone in the
DateTimeAxis itself, but that could be looked at separately.
Task-number: QTBUG-127493
Pick-to: 6.8
Change-Id: I2364fbde6c360a0ea0d8da5778cdada5e8530d68
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
When axis gets deleted, remove it properly from then GraphsView.
Includes autotest to verify.
Task-number: QTBUG-127460
Pick-to: 6.8
Change-Id: I4ad6ee477dde6ac09e65bcab690783603a2de2be
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
3D autotest are named tst_qg* and 2D autotests tst_qg*2d
Pick-to: 6.8
Change-Id: I442ed36884897bcaa6b09e765bb5516e5aefcf8c
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
This issue also seems to appear for XYSeries in general which is also
fixed in this patch. Also fixed: AreaRenderer does not clear shape when
point is removed and size goes below 2.
Fixes: QTBUG-126875
Pick-to: 6.8
Change-Id: Ie50d114117518c1b769736e55412c61171c42ec7
Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Remove major/minor and instead use grid/subGrid in grid and
tick/subTick in axis.
Task-number: QTBUG-124679
Change-Id: I1dd3a54112ae2dab46854321e3be6a31cad7ff44
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Use delegate in the names of the QML component properties.
Task-number: QTBUG-125881
Change-Id: Iae80dec6b522196f59b2f9888bf7bfbe1df0a86f
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
Use is* with boolean getters, except with plurals there should not be
is* or are*.
Task-number: QTBUG-125376
Change-Id: Ibe1f252627c6da3fbb10b404f6d1acc157479b57
Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Default to -1, so borderWidth comes from the theme by default, similarly
to colors. Also improve the API documentation.
Task-number: QTBUG-125462
Change-Id: I801294f44ad56186500e111a76069589bafc0c63
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
- Remove GraphsTheme from QAbstractSeries.
- Add seriesColors and borderColors properties into QBarSeries.
Other series behave differently so these aren't useful for them.
- Small fixes to theme update and documentation.
- Take the changes into use in everywhere.
Task-number: QTBUG-124889
Change-Id: I8f91bd6aa52356376fd2febcbe9ba88282ece006
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
There are some type conversion issues on ios build
to be fixed by this patch
Change-Id: Idce02b43f1689900ff773af2bff8779ee7410591
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
Add exposed QML methods between series if not shared.
Task-number: QTBUG-124828
Change-Id: If9fed5f94aaa38f0da42b887192c0fd8941a08ed
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
Since the dates on the axis are not clamped anymore, this test is incorrect. Any valid QDateTime should be acceptable now.
Task-number: QTBUG-125109
Change-Id: I2ec1b63c76a9731ded88b13f5fdbca74287c0435
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Add labelComponent property into QAbstractAxis. This QML component
will be created into position of labels, allowing custom labels.
Task-number: QTBUG-124507
Change-Id: I9f8c77031535e9bee0d047df79b392afb7487b5d
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
Also moves orientation from BarSeries to GraphView although other
series don't yet support horizontal orientation.
Task-number: QTBUG-125007
Change-Id: Id8cd724d0f74cc61185e66ad884db110efd84293
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
Add draggable property to XYSeries. Point doesn't have to be selected
now to be draggable.
Task-number: QTBUG-124516
Change-Id: Idddd3d9f42b39c42102fb4bbe530837fc809e67b
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: <owais.akhtar@qt.io>
Remove special selection markers and allow Line and SplineSeries
without markers to be selected.
In ScatterSeries, use QML Component based point marker system even if
the user has not set the pointMarker property by creating a temp QML
point marker.
Also remove separate markerSize property for XYSeries and update
used pointMarker if the property is changed by the user.
Task-number: QTBUG-122431
Change-Id: I2e77dd060dbc69acac572e8db3d51617bcefe70c
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Support showing bars values with the existing API. Also add a new
property "labelsMargin" to control how much margin there is
between the labels and bars sides.
Task-number: QTBUG-121692
Change-Id: I60dec5bad48a5b9948e1a93de475824a415186ad
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: <owais.akhtar@qt.io>
Change all enums to scoped ones and:
- Rename enums to not contain type in the beginning.
- AxisType can be normal enum (not flags) and AxisTypeNoAxis is
not needed.
- Fix BarThemes example initial color & font reset.
Fixes: QTBUG-123794
Change-Id: I8d7305dc7c09d0d6ac09b88cfc6f7297035e0207
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Remove abstract QAbstractBarSeries class and move all implementation
into QBarSeries.
Fixes: QTBUG-123754
Change-Id: Ic8b6cbae3aca53c87ce03f9715513fca826ad21c
Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
According to QUIP-18 [1], all build system
files should be BSD-3-Clause
[1]: https://contribute.qt-project.org/quips/18
Pick-to: 6.7
Task-number: QTBUG-121787
Change-Id: Ie1b4144b758f37c4c95b23d24818f59373ef5464
Reviewed-by: Kai Köhne <kai.koehne@qt.io>