| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It looks like top and bottom was accidentally swapped when the dynamic
tickmarks feature was added. This resulted in the minor tickmarks being
drawn on the opposite edge of the canvas from the axis and the major
tickmarks.
Also modified the manual test to make drawing the grid optional, so the
position of the tick marks can be seen more easily.
Fixes: QTBUG-79349
Change-Id: Ia25c656d3d66ee0e6dd908504ec5c81cd2555bde
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
QPainter::HighQualityAntialiasing is deprecated and should be replaced
by QPainter::Antialiasing
Change-Id: Ib4eeea6c17d82d87fb4270f146a6604ce5c8d5fb
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
Fix warnings:
animations/axisanimation.cpp:117:51: warning: 'QVariant qVariantFromValue(const T&) [with T = QVector<double>]' is deprecated: Use QVariant::fromValue() instead. [-Wdeprecated-declarations]
...
axis/chartaxiselement.cpp:385:64: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations]
...
Change-Id: Ib36d7e09b737110323b816442b36ca2b2e79d6a5
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
|
|
|
|
|
|
|
|
|
| |
This patch updates the manual test ChartViewer class to use
QRegularExpression in place of QRegExp which is to be
considered deprecated.
Change-Id: I111c6caedea0e95f87c785ecb57cdc2211dedc51
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
Allow choosing the number of significant digits in the value labels for the
bars. Before this this has been hardcoded to 6, so the default value stays as 6
for backward compatibility.
Task-number: QTBUG-64370
Change-Id: I022bdad21aca7a7750ed46181b4ec97726bd9dc5
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
|
|\
| |
| |
| | |
refs/staging/5.10
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Conflicts:
.qmake.conf
tests/manual/chartwidgettest/mainwidget.cpp
tests/manual/wavechart/wavechart.cpp
Change-Id: I18962ddc37a91daa23571eb04e35eec828aceef8
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is necessary to use math functions with and without the std::
namespace qualifier.
Change-Id: I2f404d0e57a71758ee070b8b752ebcc41c4e292c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
|
|/ /
| |
| |
| |
| | |
Change-Id: I69f37f9304f24709a823fffd14e676c097712329
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
|
| |
| |
| |
| |
| | |
Change-Id: Icd0e0d4b27cb4e5eb892fffd14b5285d43f4afbf
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
|
|/
|
|
|
|
|
|
|
| |
Use M_PI in C++ and Math.PI in JavaScript (including QML).
Use qmath.h's value for M_PI where we can't avoid an explicit value.
Task-number: QTBUG-58083
Change-Id: I80c81444c1867f8f0c07f192fa68de933f48bbc4
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
|
|
|
|
|
|
|
| |
It's going to be deprecated.
Change-Id: I9d176c802f27abf5c817dba8bedf9e5fcd911eca
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now charts properly positions bars if there are more than one bar
series in the chart. Theming was changed to account for more than
one bar series in the chart.
This patch also fixes various animation errors that were exposed
by adding/removing the series to/from an existing chart.
Task-number: QTBUG-52379
Change-Id: I4a8bc7e1675191ff87966ec4ca3d01e2b7cb815d
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
It is now possible to choose between rectangular, circular, and
"from series" shapes for legend markers. The "from series" shape uses
scatter dot items as legend markers in case of scatter series and
a line segment for line and spline series.
Task-number: QTBUG-50682
Change-Id: I58977ead88e1274e1f163516d32c4d290f4410f9
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, bar charts used to recreate the bar chart visuals from
scratch whenever any change to the bar data occurred.
The following changes were made:
- Graphics items are generated only for visible bars and labels
- Graphics items are reused if layout or data changes
- Labels are not generated unless they are visible
- Only newly added bars are animated from scratch; existing bars
will retain their size, making things more visually pleasing.
With these optimizations, the size of the bar series is irrelevant
to the painting performance, only thing that matters is how many
bars and labels are actually within visible range.
Task-number: QTBUG-52442
Change-Id: If3199a86e6819ef6219d2eb5f06d729c0bdbd2ae
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
On QML side, the mouse events for accelerated series work
asynchronously, as the rendering is typically done in
a different thread.
Change-Id: I08c478768b40ed90b34b0904b7a3e74e315c3caa
Reviewed-by: Mika Salmela <mika.salmela@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
OpenGL accelerated series are now antialiased similarly to
non-accelerated series.
Task-number: QTRD-2172
Change-Id: Ie8bc014c82d5fa645cf41ab56bebb99fcf8ad301
Reviewed-by: Mika Salmela <mika.salmela@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
- updated QCandlestickModelMapper
- updated QHCandlestickModelMapper
- updated QVCandlestickModelMapper
- renamed QCandlestickSeries::candlestickSets() to sets()
Task-number: QTBUG-54046
Change-Id: I650e5237a257c85905818db8dc2e2f2cf0af5aad
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- added QCandlestickSeries
- added QCandlestickSet
- added QCandlestickLegendMarker
- added model mappers
- added Candlestick, CandlestickChartItem, CandlestickData
- added SeriesTypeCandlestick to SeriesType enum
- added LegendMarkerTypeCandlestick to LegendMarkerType enum
- added candlestick chart example
- added QML candlestick chart example
- added candlestick tester
- added autotests
- added documentation
[ChangeLog][CandlestickChart] Added new chart type:
Candlestick Chart.
Task-number: QTBUG-50544
Change-Id: I17d18dfa23e0ea209bf51ab1e349585b9cb50a8f
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
.qmake.conf
README
src/charts/qchartglobal.h
Change-Id: I20497b20947f589f9f73239a09ba6ea013b3597a
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
QDateTimeAxis is now only disabled on platforms that define qreal
as float.
Change-Id: I08d393d328c972d74b27bd218e4cd01e844800c9
Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com>
Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
|/
|
|
|
|
| |
Change-Id: I7ad9838039b56b9e3a7fe2c42a2d8ff818f393fb
Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Ic72ee3c9723c2b3f3368c79219b7468f5d95aa84
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Ic7960c91ab6971d5f9317967333370cd2557af15
Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I9e6a1b970a05ce550247fe6023fca11570fcf0f2
Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
|
|
|
|
|
|
| |
Task-number: QTRD-3701
Change-Id: I8efc20300d2aa6065918e02190da746463a5d504
Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
|
|
|
|
|
|
|
| |
Fixed compilation error due to wrong include.
Change-Id: Ia1ddcd82efef5285410028bf41337b54975ed94c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
| |
It's now possible to enable and disable the point label clipping. The
clipping is enabled by default. Clipping cuts the point labels on the
edge of the plot area.
Change-Id: Ifaa6017b4c6d55fe030effeec8b336a7fc317adf
Task-number: QTRD-3520
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
Added possibility to set the color of the grid lines for value
axes.
Change-Id: I38b634410e7f1cb996d80f5ac1650a1be844ca01
Task-number: QTRD-3319
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
|
|
|
|
|
| |
Task-number: QTRD-3688
Change-Id: Iaea85c5f07740aeaf35ff34a2c5227c5105f2f25
Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
Changed the animation API so that it's possible to change the duration
and easing curve of the chart animation.
Change-Id: I2ab3e0664a7f30bc2bb7085daa1d97181edb90ba
Task-number: QTRD-3496
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
|
|
|
|
|
| |
Task-number: QTRD-3249
Change-Id: I98f670f631ec85d58122fab97283802834995b4d
Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
|
|
|
|
|
|
| |
Task-number: QTRD-3515
Change-Id: Icd38469386c7fc923047533f2a25b726f2f6caa5
Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
| |
Added possibility to set minor tick for value axis. By default the
count of minor ticks is zero. The arrow of minor ticks follows the
color and pen of the arrows of the major ticks as it's part of axis.
Change-Id: I8a422caaeedcd18ee6144e8636e3903d16f0632c
Task-number: QTRD-3294
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
Added mapToPosition and mapToValue methods to ChartView. These
correspond to the ones QChart has.
Change-Id: I5d0477d3f704b6f56243b31848d175fd17f24ff6
Task-number: QTRD-3494
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
Added support for reverse axis. This works with line, spline, scatter
and area series with cartesian chart. QBarCategoryAxis is not supported,
nor different bar series.
Change-Id: I60f21372ea9cee7b49918d7d99de24671bdc42c3
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
|
|
|
|
|
|
| |
Copyright header changes for Qt 5.5.
Change-Id: I2b8e9356997de2c87a7436bcefd4d0948d566259
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I359bbf5c89bd23bb1b6db1aeed8a2a4aa2ca12bf
Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
|
|
|
|
|
|
|
| |
Updated new license headers to files that weren't yet updated.
Change-Id: I193f5e46e019b5f82f0a333ee5d883fa193c2b20
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
|
|
|
|
|
|
|
| |
The clicked, released and doubleClicked signals for line, spline and
area series return the point where the press was triggered.
Change-Id: I075bb213657a7cadabdec3a72fde7cf5f412e982
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
|
|
|
|
|
|
| |
Task-number: QTRD-2098
Change-Id: Ib658c8a51af0b73ded5d6b13c8fa58762f859961
Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
|
|
|
|
|
|
|
| |
Updated new license headers and added missing ones to qdoc files.
Change-Id: I9f2af2a8b44c3ebf19fd494628dfaa8775a47b06
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
Added pressed, released and doubleClicked signals for all series. The
signals are also added to QPieSlice and QBoxPlotSet.
Change-Id: If94948be439a3b53ed48c02d0092091e836222a4
Task-number: QTRD-2384
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
|
|
This allows publishing autotests. Git export attributes changed
accordingly.
Change-Id: I6db2eb52dabdb8f12e0bc2a992a873abfa15b1a5
Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
|