summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add pressed, released and doubleClicked signalsTitta Heikkala2014-11-1268-22/+3840
| | | | | | | | | 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>
* Add QML designer pluginTitta Heikkala2014-11-1252-0/+1029
| | | | | | | | | | | | Added QML designer plugin for Charts. It's possible now to add all possible series in ChartView and PolarChartView type. The properties of ChartView and PolarChartView can be set via the QML designer. The properties of the series are not editable via the QML designer. Change-Id: I51cd6bf5bd33cd8d0f7b7f2fb992e7963e344dae Task-number: QTRD-3356 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Fix mingw builds.Miikka Heikkinen2014-11-111-2/+2
| | | | | | | | Previous fix broke mingw builds, as they are bit more picky about the LIBS syntax. Change-Id: Icf40e64cd7d1e6185476191f7b7148a712a5ae6f Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Fix build issue with dynamic OpenGL configurationsMiikka Heikkinen2014-11-111-0/+5
| | | | | Change-Id: Ia22d630ba4361624dfef93ee2923a33e162f4601 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Fix another memory leak.Miikka Heikkinen2014-11-111-1/+3
| | | | | | Change-Id: I7120390b18ac78e5933939f489d959514b557e6d Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Moved manual tests to separate directory.Miikka Heikkinen2014-11-11146-733/+740
| | | | | | | | This allows publishing autotests. Git export attributes changed accordingly. Change-Id: I6db2eb52dabdb8f12e0bc2a992a873abfa15b1a5 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Plugged some memory leaks.Miikka Heikkinen2014-11-1139-57/+142
| | | | | | | | | | | Autotests were also made Valgrind friendly by adding a final one millisecond wait to the end of the test to allow pending deleteLaters to run. Also some minor cosmetic cleanup done to autotests. Change-Id: Ic3719167a22949f243eaf54614e174a681dbe34a Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Fix build issues in testsMiikka Heikkinen2014-11-072-13/+1
| | | | | Change-Id: I477f15192c406572f26d4c1d2fa9497d0ddad230 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Add missing include for QObjectSamuli Piippo2014-11-031-0/+1
| | | | | | | Missing include cased build errors on android. Change-Id: I974cce869b41972e0992fe212672d6128521fe06 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Remove unnecessary Qt version checksTitta Heikkala2014-10-304-12/+4
| | | | | | | | | There's no need to check if the major Qt version is higher than 4 because from now on Charts is supported from Qt 5.4. Change-Id: I7addcb19e5c774ce9835a0f7c6150d9e3bc0404a Task-number: QTRD-2844 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Add cmake supportTitta Heikkala2014-10-304-2/+23
| | | | | | | | Auto test required for cmake are added to Charts. Change-Id: I00f63502214e086c15e49b168160323f5f40fbd0 Task-number: QTRD-2874 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Fix zoomingTitta Heikkala2014-10-291-0/+18
| | | | | | | | | | If chart is zoomed only horizontally or vertically then the range for the other direction should not change. This is now checked by comparing the minimum and maximum values to the axis span. Change-Id: Icb5e14fc41afcedd7f75e60ca3ad6f699b053ae7 Task-number: QTRD-3399 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Add missing QML types to the documentationTitta Heikkala2014-10-286-2/+18
| | | | | | | | | The QML types documented in chartsqml2 project are added to the documentation. Change-Id: I3780566aad820e73d2ff17be1f9fe7dda9aa3a69 Task-number: QTRD-3228 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Removed the old hovered signal from bar chartTitta Heikkala2014-10-2413-591/+1
| | | | | | | | | | A new hovered signal that provides index information has been added for bar chart (QTRD-2161). The old hovered signal has now been removed. Change-Id: Ia65be1c363cbfda942d48bceb5326bd54a3c35ec Task-number: QTRD-2199 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com> Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
* Fix missing QML Types in assistantTitta Heikkala2014-10-241-1/+1
| | | | | | | Fixed drop down selection for missing QML types in assistant. Change-Id: Idd0aaa2a33d7df8ab5d14a332da051c4ac99d2ef Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Fix Charts build when quick module is not buildTitta Heikkala2014-10-241-2/+4
| | | | | | | | | The QML side of Charts should not be built when Qt quick module is not present. Change-Id: Id48fe3c50f365ad195c90da6364d27afd97b90e2 Task-number: QTRD-3273 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Make all Q_DISABLE_COPY declarations private.Miikka Heikkinen2014-10-235-4/+11
| | | | | | Task-number: QTRD-1945 Change-Id: I5cf04319ae2e4e9da1122be888c3c3e49928c748 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Fix designer plugin targetTitta Heikkala2014-10-231-1/+1
| | | | | | | | | The distinction between release and debug dlls for the Charts designer plugin is done by adding 'd' to the dll name for debug version. Change-Id: I7f3a52c94360889452e28a639fadab53b784ce60 Task-number: QTRD-1846 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Fix shades for log and category axes.Miikka Heikkinen2014-10-233-20/+54
| | | | | | | | Partial spans at the chart edges are now shaded properly. Task-number: QTRD-1940 Change-Id: Ibe03a2b9638ccb16d9c8c9bc7f2a0f924a7115d4 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Fix bar category axis labelsTitta Heikkala2014-10-231-1/+1
| | | | | | | | | The labels are now created only for the categories within the current range. Change-Id: I1f1b5c9245254b18c87f810986e29d73a1a7a72e Task-number: QTRD-3016 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Fix QAbstractAxis::AxisTypes enum values.Miikka Heikkinen2014-10-223-23/+8
| | | | | | | | | QAbstractAxis::AxisTypes is declared as QFlags, but the values weren't OR-able. Task-number: QTRD-1998 Change-Id: I4def5f1a4a8c2b3b944d212fd5a637f8696da7e6 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Fix axis attachments in QML.Miikka Heikkinen2014-10-222-35/+41
| | | | | | | | | | Now attaching same axis to multiple series is possible without spawning an extraneous default axis. Task-number: QTRD-3321 Change-Id: I561b3ca5c814e3046ed4078a2070e2c3e6ddf030 Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com> Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Removed unnecessary Q_REVISION(n) macros.Miikka Heikkinen2014-10-216-65/+65
| | | | | | | | | Q_REVISION macros are only needed on invokables and signals. They are not needed on the properly revisioned property accessors. Change-Id: I3f30ae8f49c38ba266e1c6f091d39a045939a960 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Added plotAreaChanged signal to chart.Miikka Heikkinen2014-10-215-17/+16
| | | | | | | | | | The plotArea property was also introduced, though it was previously available via getter function. The signal with same name on QML side was linked to the new signal. Task-number: QTRD-3330 Change-Id: I8d985762194800e1b8743d0a7429ef4d0356bd98 Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
* Fix chart axis label formatTitta Heikkala2014-10-211-1/+1
| | | | | | | | | The label format for axis can now be set so that there's a separator for thousands, for example, with setLabelFormat("%'5.2f") Change-Id: Ic159776039d04a91a7ccf648800bd9720c41246e Task-number: QTRD-3347 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Fix include syntaxTitta Heikkala2014-10-20529-2091/+2092
| | | | | | | | | The includes for the whole project are changed to syntax: '#include <module/class> Change-Id: If32f8b6c3f47516ad6bc30ed40789ea9042d5664 Task-number: QTRD-3373 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Suppress a warning in msvc 64bit buildsMiikka Heikkinen2014-10-161-0/+6
| | | | | | | | | | Using std:sort causes warning C4267 in 64bit msvc builds, because size_t and int are of different size. There should never be a case where list indexes grow so large that this causes problems, so just suppress the warning. Change-Id: I0e4904f88542178177afc51a82bbbd18b094eb32 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Qt Charts project file structure changeTitta Heikkala2014-10-141533-73669/+65384
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Charts repository structure is changed to follow the structure of a Qt Add-On module. The task includes following changes: - All macros and definitions named 'commercial' have been renamed. - Compile errors related to QString and qSort usage have been fixed. - Old demos are moved under examples. The QML examples now support only Qt Quick 2.0, the support for Qt Quick 1 is removed. - The QML examples with multiple views are updated so that they are usable also with touch devices. - Unnecessary version checks are removed from examples. - The build stamp has been removed as it was only meant for Charts development purposes and it's no longer needed. Also development build related debug prints are removed as __DATE__ can't be used for all OS thus it doesn't make much sense. - Documentation structure has been updated based on the new module structure. The raw HTML files have been removed. Demos are combined to examples. - Unnecessary .qdocinc files are no longer needed. The content is moved to the corresponding .cpp files. - The Charts widget designer plugin is updated according to the module change. - The test cases updated according to the project structure change. Tests are added also for version 2.0. - cmake modules generation is not needed with Qt 5.4 and Qt Charts so it's disabled. - The new module name and version are updated to the plugin.qmltypes file. Task-number: QTRD-2844, QTRD-3217, QTRD-3218, QTRD-3277, QTRD-3228, QTRD-2526, QTRD-3233, QTRD-3222 Change-Id: Ib7fb26057cde710ffaf6bc780c8bf52a16f45160 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Fix empty domain detectionTitta Heikkala2014-09-191-1/+1
| | | | | | | | | | Instead of using qFuzzyIsNull to detect if domain is empty use qFuzzyCompare. This will make it possible to draw axises with small ranges. Change-Id: Iea39f74e3eb317f20aab3061cd942cafca9ef08a Task-number: QTRD-3296 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Misc fixesMiikka Heikkinen2014-09-186-4/+94
| | | | | | | | | | | | - Default value for localizeNumbers is now false, as it would look weird if numbers were localized in otherwise unlocalized app. - Added locale property to qml ChartView. - Added registrations for latest revisions of all QML types for 2.0, since apparently this is necessary to make them visible when importing Charts 2.0 Change-Id: I46997b3af4458c6dbf6755a19e01115d5393013a Reviewed-by: Titta Heikkala <titta.heikkala@digia.com>
* Additional fixes to label localizationMiikka Heikkinen2014-09-176-9/+20
| | | | | | | | | | | - The default bar/boxplot categories were not localized. - Might as well support "%i" format, as it is equivalent to "%d", and some of our own examples use it. - If precision is not specified in the label format, default to six instead of zero. Change-Id: I937b6a76128fc506d8db4b9974569e590d85ac5f Reviewed-by: Titta Heikkala <titta.heikkala@digia.com>
* Added QChart::locale propertyMiikka Heikkinen2014-09-178-11/+42
| | | | | | | | | | This locale is used for localizing the numbers on various labels when localizeNumbers is set to true. It is also the locale that QDateTimeAxis labels use for month and day names. Task-number: QTRD-3179 Change-Id: Ib9a9cad770c5a6890311fe45a1d4cabd5f40aff4 Reviewed-by: Mika Salmela <mika.salmela@digia.com>
* Added QChart::localizeNumbersMiikka Heikkinen2014-09-1717-75/+232
| | | | | | | | | | When this property is true, the default QLocale is used to convert various values to strings for series and axis labels instead of corresponding QString functions, which always use "C" locale. Task-number: QTRD-3231 Change-Id: I95a936ae6d49c2589a7c53a481fd850c90846ae4 Reviewed-by: Titta Heikkala <titta.heikkala@digia.com>
* Fix long label visibilityTitta Heikkala2014-09-161-1/+3
| | | | | | | | | The detection of overlapping items has been corrected. By default, item text is truncated thus only the ellipsis can overlap. Change-Id: I856f440184006b91c23e44d63ddef5b1796f38a1 Task-number: QTRD-3310 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Add QVBoxPlotModelMapper and QBoxPlotModelMapper as types for QtQuick 2Andy Shaw2014-09-102-1/+45
| | | | | Change-Id: I2683c981acee51d9929234d79e7da100cfc6a608 Reviewed-by: Titta Heikkala <titta.heikkala@digia.com>
* Make the prf file be in sync with config.priAndy Shaw2014-08-221-14/+6
| | | | | | | | This is needed especially for iOS as the library names are modified for the simulator Change-Id: I8be427e4be582b74b835ec1498e9e9dfec991dab Reviewed-by: Titta Heikkala <titta.heikkala@digia.com>
* WinRT: Fix compilationMaurice Kalinowski2014-06-161-1/+1
| | | | | | Change-Id: I2700c9d9847aaa02cec2348307ca2611bf3ee25e Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com> Reviewed-by: Titta Heikkala <titta.heikkala@digia.com>
* Fix compilation on platforms without QtQuick1Maurice Kalinowski2014-06-165-11/+22
| | | | | | | | | WinRT is one of those, but you might want to configure Qt in that way also on other platforms. Change-Id: I40e5d0b8bc0c347f058d5f30d64ddbf55653f904 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com> Reviewed-by: Titta Heikkala <titta.heikkala@digia.com>
* iOS Qt Quick 1 problem added to READMErelease-1.4.0Tomi Korpipää2014-06-091-0/+1
| | | | | Change-Id: I847f8e941385c00df0e76e2ab2d9732540b042b1 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* iOS example fixTomi Korpipää2014-06-091-1/+0
| | | | | Change-Id: I1875dab1c2ca26206250772f518a83525e071ffa Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Fix QValueAxis range settingTitta Heikkala2014-06-061-2/+14
| | | | | | | | | | As explained in Qt documentation, comparing values where either of them is 0.0 with qFuzzyCompare does not work. Adding 1 to both values fixes the problem. Task-number: QTRD-3172 Change-Id: I3e7be0ea3c53947b31fd45abe20b00773bf474b5 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* iOS compilation fixTomi Korpipää2014-06-061-1/+1
| | | | | Change-Id: Iabdd394d268e7ea4b5ad51a67f11f40576d09f9f Reviewed-by: Titta Heikkala <titta.heikkala@digia.com>
* Fix bar value label positionTitta Heikkala2014-06-064-12/+16
| | | | | | | | | The bar value labels are positioned so that they don't overlap with the border drawn around the bar. Task-number: QTRD-3171 Change-Id: Icf6344214195e91ae66eed31ca587414e02291b9 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Fix point label position for QXYSeriesTitta Heikkala2014-06-065-8/+13
| | | | | | | | | The point label is positioned above the line or the marker based on the pen width and marker size. Task-number: QTRD-3167 Change-Id: I67b0eabce025235ef2e19bf50c41b8ee1382dd7e Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Fix order of initializationTitta Heikkala2014-06-044-4/+4
| | | | | | | | The initialization order of the member variables is the same as the order they are listed in. Change-Id: I8b0b9149b83181a9a251a490013c2f27cf544e82 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Fix axes issues with oscilloscope demosTitta Heikkala2014-06-042-0/+4
| | | | | | | | | | The metatype declarations for QAbstractAxis are added to the oscilloscope demo applications for them to recognize the axis type correctly. Task-number: QTRD-3162 Change-Id: I6aadb97d8191bcab6b92a3833dc8c44a1ab79cee Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Updated Charts version and README file for releaseTitta Heikkala2014-05-306-37/+32
| | | | | | | | Updated Charts version to 1.4.0 and updated README accordingly. Task-number: QTRD-3088 Change-Id: I4f2f3ef0874dce8a6c38e9ecb7b1b253481e1445 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Remove warnings about unmatched parenthesesTitta Heikkala2014-05-303-20/+10
| | | | | | | | | | Property declarations divided into several lines caused qmake to warn of cat() function about deprecated unmatched parentheses. The property declarations are now done in one line. Task-number: QTRD-3159 Change-Id: Ieb839ff81d707a5a40cdebd62a52ac32f51517b7 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Add invokable clear() for QML bar category axisTitta Heikkala2014-05-305-3/+21
| | | | | | | | Changed clear() method to invokable for QBarCategoryAxis. Task-number: QTRD-2631 Change-Id: I0aa00a44ae5c6bd5b59ecf630d938b5cc484f62e Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Fix assert failure with percent bar seriesTitta Heikkala2014-05-276-16/+75
| | | | | | | | Category groups with zero values are not drawn. Task-number: QTRD-3087 Change-Id: Ie6f85e48398e751213b11d88c0c6a8de2ce8247a Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>