##// END OF EJS Templates
Fix compilation with namespaced Qt....
Fix compilation with namespaced Qt. Change-Id: I359bbf5c89bd23bb1b6db1aeed8a2a4aa2ca12bf Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>

File last commit:

r2774:7b74d88b3f3d
r2774:7b74d88b3f3d
Show More
qpiemodelmapper.h
69 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
Christian Kandeler
Fix compilation with namespaced Qt....
r2774 QT_BEGIN_NAMESPACE
Marek Rosa
All model related methods and members removed from the series. QML stuff commented out where complaining
r1230 class QAbstractItemModel;
Christian Kandeler
Fix compilation with namespaced Qt....
r2774 QT_END_NAMESPACE
Marek Rosa
All model related methods and members removed from the series. QML stuff commented out where complaining
r1230
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