##// END OF EJS Templates
QML: VPieModelMapper as a child for PieSeries
QML: VPieModelMapper as a child for PieSeries

File last commit:

r1230:39fc8bad4e45
r1254:7867f67d21c3
Show More
qpieseries.h
89 lines | 2.7 KiB | text/x-c | CLexer
Jani Honkonen
Add license headers
r794 /****************************************************************************
**
** Copyright (C) 2012 Digia Plc
** All rights reserved.
** For any questions to Digia, please use contact form at http://qt.digia.com
**
** This file is part of the Qt Commercial Charts Add-on.
**
** $QT_BEGIN_LICENSE$
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
** contact form at http://qt.digia.com
** $QT_END_LICENSE$
**
****************************************************************************/
Jani Honkonen
Pie chart refactoring
r142 #ifndef PIESERIES_H
#define PIESERIES_H
Tero Ahola
Renamed QSeries to QAbstractSeries
r988 #include <qabstractseries.h>
Jani Honkonen
Pie chart refactoring
r142
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Jani Honkonen
Adding PIMPL to pie
r669 class QPieSeriesPrivate;
Jani Honkonen
Refactor pie (again). QPieSlice's now emit signals and no id's anymore. Just pointers in the interface.
r203 class QPieSlice;
Jani Honkonen
Use signals from pieseries, visible hover and exploding slices
r157
Tero Ahola
Renamed QSeries to QAbstractSeries
r988 class QTCOMMERCIALCHART_EXPORT QPieSeries : public QAbstractSeries
Jani Honkonen
Pie chart refactoring
r142 {
Q_OBJECT
Tero Ahola
QSeries name and QPieSeries properties to QML api
r884 Q_PROPERTY(qreal horizontalPosition READ horizontalPosition WRITE setHorizontalPosition)
Q_PROPERTY(qreal verticalPosition READ verticalPosition WRITE setVerticalPosition)
Q_PROPERTY(qreal size READ pieSize WRITE setPieSize)
Q_PROPERTY(qreal startAngle READ pieStartAngle WRITE setPieStartAngle)
Q_PROPERTY(qreal endAngle READ pieEndAngle WRITE setPieEndAngle)
Tero Ahola
Now using only one declarative model
r1169 Q_PROPERTY(int count READ count)
Jani Honkonen
pie: remove changed() signal and replace it with more refined signals...
r1224 Q_PROPERTY(qreal sum READ sum)
Jani Honkonen
Pie chart refactoring
r142
public:
Michal Klocek
Fixes explicit issues in cstr
r970 explicit QPieSeries(QObject *parent = 0);
Jani Honkonen
Refactor pie (again). QPieSlice's now emit signals and no id's anymore. Just pointers in the interface.
r203 virtual ~QPieSeries();
Jani Honkonen
Pie chart refactoring
r142
Michal Klocek
Fixes to API , QSeriesType -> SeriesType , add missing getters
r1107 QAbstractSeries::SeriesType type() const;
Jani Honkonen
Pie chart refactoring
r142
Jani Honkonen
pieseries: bool return value for append/insert/remove...
r1104 bool append(QPieSlice* slice);
bool append(QList<QPieSlice*> slices);
Jani Honkonen
API review changes for pie
r1009 QPieSeries& operator << (QPieSlice* slice);
Jani Honkonen
pie: change the order of parameters when creating slices to be more intuitive
r1206 QPieSlice* append(QString label, qreal value);
Jani Honkonen
pieseries: bool return value for append/insert/remove...
r1104 bool insert(int index, QPieSlice* slice);
bool remove(QPieSlice* slice);
Jani Honkonen
Refactor pie (again). QPieSlice's now emit signals and no id's anymore. Just pointers in the interface.
r203 void clear();
Jani Honkonen
Pie chart refactoring
r142
Jani Honkonen
Add documentation to pie
r314 QList<QPieSlice*> slices() const;
Jani Honkonen
Added a pie chart customization example and refactoring the pie interface.
r437 int count() const;
Jani Honkonen
Refactoring pie series and animations.
r621 bool isEmpty() const;
Jani Honkonen
API review changes for pie
r1009
Jani Honkonen
Rename pie series total() -> sum() to be consistent with bar series.
r939 qreal sum() const;
Jani Honkonen
Added a pie chart customization example and refactoring the pie interface.
r437
Tero Ahola
QSeries name and QPieSeries properties to QML api
r884 void setHorizontalPosition(qreal relativePosition);
qreal horizontalPosition() const;
void setVerticalPosition(qreal relativePosition);
qreal verticalPosition() const;
Jani Honkonen
API review changes for pie
r1009
Jani Honkonen
Renamed the "factor" stuff from pie series API.
r498 void setPieSize(qreal relativeSize);
qreal pieSize() const;
Jani Honkonen
API review changes for pie
r1009
Jani Honkonen
Renamed the "factor" stuff from pie series API.
r498 void setPieStartAngle(qreal startAngle);
qreal pieStartAngle() const;
void setPieEndAngle(qreal endAngle);
qreal pieEndAngle() const;
Jani Honkonen
Refactor pie (again). QPieSlice's now emit signals and no id's anymore. Just pointers in the interface.
r203
Jani Honkonen
Review corrections for pie
r386 void setLabelsVisible(bool visible = true);
Jani Honkonen
Refactor pie (again). QPieSlice's now emit signals and no id's anymore. Just pointers in the interface.
r203
Jani Honkonen
Use signals from pieseries, visible hover and exploding slices
r157 Q_SIGNALS:
Jani Honkonen
pie: make slice added/removed signals public (again)
r1213 void added(QList<QPieSlice*> slices);
void removed(QList<QPieSlice*> slices);
Jani Honkonen
API review changes for pie
r1009 void clicked(QPieSlice* slice);
void hovered(QPieSlice* slice, bool state);
Jani Honkonen
Implementing slice label
r181
Jani Honkonen
Refactoring piechart API (and internals)
r174 private:
Jani Honkonen
Adding PIMPL to pie
r669 Q_DECLARE_PRIVATE(QPieSeries)
Q_DISABLE_COPY(QPieSeries)
Jani Honkonen
Pie chart refactoring
r142 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif // PIESERIES_H