##// END OF EJS Templates
QXYModelMapper: Handle model reset....
QXYModelMapper: Handle model reset. Task-number: QTRD-3519 Change-Id: I312f377dec6574ecef2ebc8b897f0aa1c5e92be1 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>

File last commit:

r2740:377e4516d036
r2773:7a4cd1d34c08
Show More
qpiemodelmapper.h
67 lines | 1.7 KiB | text/x-c | CLexer
Marek Rosa
Added Vertical and Horizontal PieModelMapper
r1237 /****************************************************************************
**
Titta Heikkala
Update copyright year...
r2688 ** Copyright (C) 2014 Digia Plc
Marek Rosa
Added Vertical and Horizontal PieModelMapper
r1237 ** All rights reserved.
Titta Heikkala
Updated license headers...
r2740 ** For any questions to Digia, please use contact form at http://qt.io
Marek Rosa
Added Vertical and Horizontal PieModelMapper
r1237 **
Titta Heikkala
Updated license headers...
r2740 ** This file is part of the Qt Charts module.
Marek Rosa
Added Vertical and Horizontal PieModelMapper
r1237 **
Titta Heikkala
Updated license headers...
r2740 ** Licensees holding valid commercial license for Qt may use this file in
** accordance with the Qt License Agreement provided with the Software
** or, alternatively, in accordance with the terms contained in a written
** agreement between you and Digia.
Marek Rosa
Added Vertical and Horizontal PieModelMapper
r1237 **
** If you have questions regarding the use of this file, please use
Titta Heikkala
Updated license headers...
r2740 ** contact form at http://qt.io
Marek Rosa
Added Vertical and Horizontal PieModelMapper
r1237 **
****************************************************************************/
Marek Rosa
Mapper class added for xyseries and pieseries. Model support commented out for barseries for now.
r1164 #ifndef QPIEMODELMAPPER_H
#define QPIEMODELMAPPER_H
Titta Heikkala
Fix include syntax...
r2714 #include <QtCharts/QChartGlobal>
#include <QtCore/QObject>
Marek Rosa
Mapper class added for xyseries and pieseries. Model support commented out for barseries for now.
r1164
Marek Rosa
All model related methods and members removed from the series. QML stuff commented out where complaining
r1230 class QAbstractItemModel;
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_BEGIN_NAMESPACE
Marek Rosa
Mapper class added for xyseries and pieseries. Model support commented out for barseries for now.
r1164
Marek Rosa
ModelMapper proposal
r1229 class QPieModelMapperPrivate;
Marek Rosa
All model related methods and members removed from the series. QML stuff commented out where complaining
r1230 class QPieSeries;
Marek Rosa
ModelMapper proposal
r1229
Titta Heikkala
Qt Charts project file structure change...
r2712 class QT_CHARTS_EXPORT QPieModelMapper : public QObject
Marek Rosa
Mapper class added for xyseries and pieseries. Model support commented out for barseries for now.
r1164 {
Q_OBJECT
Tero Ahola
Now using only one declarative model
r1169
Marek Rosa
Added Vertical and Horizontal PieModelMapper
r1237 protected:
Marek Rosa
Removed some unnecessary includes
r1668 explicit QPieModelMapper(QObject *parent = 0);
Marek Rosa
ModelMapper proposal
r1229
Jani Honkonen
more coding style fixes for src-folder...
r2104 QAbstractItemModel *model() const;
Marek Rosa
All model related methods and members removed from the series. QML stuff commented out where complaining
r1230 void setModel(QAbstractItemModel *model);
Jani Honkonen
more coding style fixes for src-folder...
r2104 QPieSeries *series() const;
Marek Rosa
All model related methods and members removed from the series. QML stuff commented out where complaining
r1230 void setSeries(QPieSeries *series);
Tero Ahola
Now using only one declarative model
r1169
Marek Rosa
Mapper class added for xyseries and pieseries. Model support commented out for barseries for now.
r1164 int first() const;
void setFirst(int first);
int count() const;
void setCount(int count);
Marek Rosa
Fixed problem with PieModelMapper
r1320 int valuesSection() const;
void setValuesSection(int valuesSection);
Marek Rosa
Mapper class added for xyseries and pieseries. Model support commented out for barseries for now.
r1164
Marek Rosa
Fixed problem with PieModelMapper
r1320 int labelsSection() const;
void setLabelsSection(int labelsSection);
Marek Rosa
Mapper class added for xyseries and pieseries. Model support commented out for barseries for now.
r1164
Marek Rosa
Added Vertical and Horizontal PieModelMapper
r1237 Qt::Orientation orientation() const;
void setOrientation(Qt::Orientation orientation);
Marek Rosa
Mapper class added for xyseries and pieseries. Model support commented out for barseries for now.
r1164
Marek Rosa
QPieModelMapper: added support for labelChanged and valueChanged signals from the slice
r1236 protected:
Jani Honkonen
fix compilation error with qpiemodelmapper
r1234 QPieModelMapperPrivate * const d_ptr;
Marek Rosa
ModelMapper proposal
r1229 Q_DECLARE_PRIVATE(QPieModelMapper)
Marek Rosa
Mapper class added for xyseries and pieseries. Model support commented out for barseries for now.
r1164 };
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_END_NAMESPACE
Marek Rosa
Mapper class added for xyseries and pieseries. Model support commented out for barseries for now.
r1164
#endif // QPIEMODELMAPPER_H