summaryrefslogtreecommitdiffstats
path: root/plugins/declarative/declarativechart.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Qt Charts project file structure changeTitta Heikkala2014-10-141-1080/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Misc fixesMiikka Heikkinen2014-09-181-1/+27
| | | | | | | | | | | | - 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>
* Added QChart::locale propertyMiikka Heikkinen2014-09-171-1/+1
| | | | | | | | | | 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-171-0/+22
| | | | | | | | | | 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>
* Update copyright yearTitta Heikkala2014-05-131-1/+1
| | | | | | Task-number: QTRD-3083 Change-Id: Ide516e5299d2363953d46bf9dc5e2f9ec277154e Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Fix documentation pathsTitta Heikkala2013-11-011-1/+1
| | | | | | | | | The paths for qdocinc files and for images has been fixed so that creating the documentation works also for Mac. Task-number: QTRD-2492 Change-Id: Ibfefd06dfb4d85bbdb10b400aadda204ad50c21a Reviewed-by: Mika Salmela <mika.salmela@digia.com>
* Fix Charts documentationTitta Heikkala2013-10-281-13/+13
| | | | | | | | | | | The documentation structure is changed so that it can be generated with both Qt5 and Qt4. Also the erroneous VBarModelMapper is removed from VBoxPlotModelMapper documentation. Task-number: QTRD-2492, QTRD-2495 Change-Id: I45028915ca55f6ff1170db58518a8f08ac4158fb Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Fix ChartView documentationTitta Heikkala2013-10-151-0/+4
| | | | | | | | | The documentation was missing remarks of deprecated properties. A warning of using deprecated property is triggered when the property in question is accessed therefore the documentation should mention it. Change-Id: I5efa185fceb85a9375e41297ab18ce002f3239ed Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Fix dynamic qml axis switchTitta Heikkala2013-08-141-4/+16
| | | | | | | | The axis is set so that previously attached axes are deleted. Task-number: QTRD-1936 Change-Id: I4fc486b3f2552eea168ba5fb44c1b82f1c5ebad0 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Initialize m_updatePendingrelease-1.3.0Heikkinen Miikka2013-06-191-0/+1
| | | | | | | | | No explicit initialization resulted in this sometimes initializing to true, which caused chart to never draw in multithreaded rendering environments (linux/mac) Change-Id: I5c9a4eb54c0a4aef7c1df171aa04d4b8c4c7fe05 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* In QML axisXTop didn't go topMika Salmela2013-06-131-1/+1
| | | | | | | | It looked like the signal was connected to wrong slot. Probably copy&paste bug. Change-Id: Ie4887970891f3b902b71fb0b686c4adbbc1d48b1 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Qt Commercial -> Qt EnterpriseMiikka Heikkinen2013-06-131-3/+3
| | | | | | | Also updated licenses. Change-Id: Ie14327305207e14879c1f1223219fcdfa1669dc0 Reviewed-by: Mika Salmela <mika.salmela@digia.com>
* Added API to set chart background roundnessMiikka Heikkinen2013-06-041-0/+18
| | | | | | | Task-number: QTRD-1631 Change-Id: I8ac70b5ed157211b90aa1c9ef3d168bca78fb27c Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* A new box-and-whiskers series type added to charts.Mika Salmela2013-06-031-0/+6
| | | | | Change-Id: Iab7a05c44026db9925fa0d68afd2b533b3ea2f91 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Further fixes to threaded renderingMiikka Heikkinen2013-05-131-10/+37
| | | | | | | | | - Antialiasing should now work with threaded rendering - Optimize rendering to use old way if single threaded case is detected. Change-Id: I6de87cbd04c108eae7ee55c5a0e27dd5fc07db89 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Fix quick2 support with multithreaded scenegraph rendering.Heikkinen Miikka2013-05-131-3/+43
| | | | | Change-Id: Ia9bf896e1fb2684e4272547704924e5035f78268 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Add API to specify plot area background.Miikka Heikkinen2013-05-071-0/+24
| | | | | | | Task-number: http://jira.sc.local/browse/QTRD-1886 Change-Id: Ica9bd72482fdca14a81574087ba0ec4614169cd2 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Fix mouse events for QtQuick2Miikka Heikkinen2013-05-021-1/+81
| | | | | Change-Id: Ibb6b80765c6433a47670046ca72e156c697b1f97 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* QML support for LogValueAxisMiikka Heikkinen2013-04-261-0/+3
| | | | | | | Task-number: QTRD-1921 Change-Id: I79636832e80c81fe3c7b4687760a87af1b95809b Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Generate charts plugin for QtQuick2 as well as QtQuick1Miikka Heikkinen2013-04-231-12/+51
| | | | | | | | Added quick2 versions of a couple of demos, too. Task-number: QTRD-1922 Change-Id: Ie3e2c1c40c38e06fc6d3afe27289eccc2f997f67 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Add Polar chart supportMiikka Heikkinen2013-04-171-2/+18
| | | | | | | | | | This commit also heavily refactors things as polar chart needs separate implementation of various classes that previously only needed one, such as ChartAxis and ChartLayout. Task-number: QTRD-1757 Change-Id: I3d3db23920314987ceef3ae92879960b833b7136 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* More copyright year changesMiikka Heikkinen2013-03-051-1/+1
|
* Fixed Qt5 specific issue with ChartView.createSeries series typesTero Ahola2012-12-131-6/+1
|
* Restored minimumMargins property to QChartTero Ahola2012-12-101-13/+15
|
* Fixed documentation issues in QML APITero Ahola2012-11-301-4/+0
|
* Fixed a bug in ChartView.axes property when no series addedTero Ahola2012-11-271-1/+1
|
* Added axisXTop and axisYRight properties to QML series APIsTero Ahola2012-11-271-132/+171
|
* Some fixes for Qt5, vs2010 build and qmlJani Honkonen2012-11-261-3/+2
|
* Domains addedMarek Rosa2012-11-261-2/+2
|
* Refactors internalsMichal Klocek2012-11-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | * rewrite axisUpdated signal handling * create handlers for each property of axis * decouple chartdataset, presenter, theme * adds theme manager * adds axis add/remove/attach/detach handling * refactors createGraphics * add initializers (graphics,domain,theme,animations) * refactor the way the charts are constructed (decouple form presenter) * fix initialization issues with qchart * refactor domain logic to handle also geometry size for charts * delegate xyseries geometry calculation to domian * fix lazy initialization of animations * remove hadnleGeomoetryChanged * add shared pointers to handle reference count for domain * moves nice number algorithm to domain * adds applyNiceNumbers(), depreciate setNiceNumbers * refactor multiple charts handling * domain is shared object * each domain can have multiple axis for controlling * multiple charts share now the same domain
* Fixed a bug in dynamic creation of area seriesTero Ahola2012-09-271-2/+5
|
* Fixed documentation bugs in QML ChartViewTero Ahola2012-09-271-12/+2
|
* normalize signal/slot signaturesJani Honkonen2012-09-261-6/+6
|
* coding style fixes for pluginsJani Honkonen2012-09-251-6/+6
|
* coding style: foreach whitespace fixJani Honkonen2012-09-251-2/+2
|
* Rename minimumMargins to margins in QML plugin version 1.2Michal Klocek2012-09-241-9/+9
|
* Fix unintialized chart margins in qml pluginMichal Klocek2012-09-241-0/+4
|
* QML ChartView signals seriesAdded and seriesRemovedTero Ahola2012-09-171-2/+30
|
* Refactors layoutMichal Klocek2012-09-051-1/+2
| | | | | | | | | | | | | | | * adds sizeHints to layout managers * adds sizeHiint to axes * adds "..." wraping to titles * adds title for axes * adds "..." wraping to legend markers * adds logic for layouting axes vs legend vs plotArea * renames minimumMargins to margin * marings size is always keept * legend takes contentMargins into consideration during layout * charts takes contentMargins into consideration during layout * adds "..." wraping to chartvaleaxisY * adds logic to resize plotArea during scale and scroll
* QML: Added possibility to define axes when creating seriesTero Ahola2012-09-041-6/+22
|
* Fixed scrolling left/right mixed up in QML ChartViewTero Ahola2012-09-041-2/+2
|
* Added removeSeries and removeAllSeries to QML APITero Ahola2012-09-031-0/+10
|
* Fixed a bug in setting axes dynamically via QML APITero Ahola2012-09-031-12/+13
|
* Improved ChartView.minimuMargins implementationTero Ahola2012-09-031-27/+15
|
* Normalize signal and slot signaturesJani Honkonen2012-09-031-24/+24
|
* Added ChartView.plotArea to QML APITero Ahola2012-08-311-1/+13
|
* Added ChartView.minimumMargins to QML propertiesTero Ahola2012-08-311-27/+26
|
* Disabled anti-aliasing by default in declarative implTero Ahola2012-08-291-10/+0
|
* Switched order of add series/set axis in declarative chartTero Ahola2012-08-291-5/+8
|
* Implements minimumMarginsMichal Klocek2012-08-281-10/+12
| | | | | | | | | * adds mising margin implementation * setter and getter for minimumMargins * changes return values QMargins instead of QRectF * updates unit tests * QML TODO: not clear what should be handled there margins or plotArea * fixes chartlayout - minimum width of Axis is calculated