##// END OF EJS Templates
Add 5.7.0 changes file...
Add 5.7.0 changes file Change-Id: I72ac7ecf67786a2fe4491e848863367fdfd54c01 Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>

File last commit:

r2878:97bb01ce5d85 merge
r2881:7bc9c012efbb
Show More
qabstractbarseries.h
121 lines | 4.2 KiB | text/x-c | CLexer
/ src / charts / barchart / qabstractbarseries.h
Miikka Heikkinen
Updated license...
r2854 /****************************************************************************
Jani Honkonen
Add license headers
r794 **
Miikka Heikkinen
Updated license...
r2854 ** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
Jani Honkonen
Add license headers
r794 **
Miikka Heikkinen
Updated license...
r2854 ** This file is part of the Qt Charts module of the Qt Toolkit.
Jani Honkonen
Add license headers
r794 **
Miikka Heikkinen
Updated license...
r2854 ** $QT_BEGIN_LICENSE:GPL$
Titta Heikkala
Updated license headers...
r2845 ** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
Miikka Heikkinen
Updated license...
r2854 ** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
Jani Honkonen
Add license headers
r794 **
Titta Heikkala
Updated license headers...
r2845 ** $QT_END_LICENSE$
**
Miikka Heikkinen
Updated license...
r2854 ****************************************************************************/
Jani Honkonen
Add license headers
r794
Jani Honkonen
Spit&polish public headers
r2046 #ifndef QABSTRACTBARSERIES_H
#define QABSTRACTBARSERIES_H
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
Titta Heikkala
Fix include syntax...
r2714 #include <QtCharts/QAbstractSeries>
#include <QtCore/QStringList>
sauimone
BarGroup and Bar as ChartItems instead of GraphicItems
r74
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_BEGIN_NAMESPACE
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
sauimone
removed barchartseriesbase. functionality is now in model
r172 class QBarSet;
sauimone
QBarSeries to QAbstractBarSeries
r1584 class QAbstractBarSeriesPrivate;
sauimone
removed barchartseriesbase. functionality is now in model
r172
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 // Container for series
Titta Heikkala
Qt Charts project file structure change...
r2712 class QT_CHARTS_EXPORT QAbstractBarSeries : public QAbstractSeries
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 {
sauimone
Improved bar chart series
r71 Q_OBJECT
Tero Ahola
Removed unnecessary bar width signal from QBarSeries
r1487 Q_PROPERTY(qreal barWidth READ barWidth WRITE setBarWidth)
Tero Ahola
Minor modifications to properties of abstract, area and bar series
r1462 Q_PROPERTY(int count READ count NOTIFY countChanged)
sauimone
changed barset name to label to be consistent with pie series. Series have names, barsets and pieslices have labels
r1429 Q_PROPERTY(bool labelsVisible READ isLabelsVisible WRITE setLabelsVisible NOTIFY labelsVisibleChanged)
Titta Heikkala
Remove warnings about unmatched parentheses...
r2692 Q_PROPERTY(QString labelsFormat READ labelsFormat WRITE setLabelsFormat NOTIFY labelsFormatChanged)
Q_PROPERTY(LabelsPosition labelsPosition READ labelsPosition WRITE setLabelsPosition NOTIFY labelsPositionChanged)
Miikka Heikkinen
Added support for bar series value label angle...
r2802 Q_PROPERTY(qreal labelsAngle READ labelsAngle WRITE setLabelsAngle NOTIFY labelsAngleChanged)
Titta Heikkala
Added possibility to show series value...
r2689 Q_ENUMS(LabelsPosition)
public:
enum LabelsPosition {
LabelsCenter = 0,
LabelsInsideEnd,
LabelsInsideBase,
LabelsOutsideEnd
};
Tero Ahola
Color properties to QML BarSet API
r1302
sauimone
made qabstractbarseries constructor protected. Updated tests
r1587 public:
sauimone
QBarSeries to QAbstractBarSeries
r1584 virtual ~QAbstractBarSeries();
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
sauimone
barmargin replaced with barwidth
r1425 void setBarWidth(qreal width);
qreal barWidth() const;
sauimone
bar margin setter to series
r1283
sauimone
Fixed category handling of barcharts. Now the categories can be undefined. Updated documentation.
r1208 bool append(QBarSet *set);
bool remove(QBarSet *set);
sauimone
Implemented QBarSeries::take(), updated tests
r1802 bool take(QBarSet *set);
Jani Honkonen
more coding style fixes for src-folder...
r2104 bool append(QList<QBarSet *> sets);
Marek Rosa
Added insert method to QBarSeries
r1362 bool insert(int index, QBarSet *set);
Tero Ahola
Minor modifications to properties of abstract, area and bar series
r1462 int count() const;
Jani Honkonen
more coding style fixes for src-folder...
r2104 QList<QBarSet *> barSets() const;
Marek Rosa
BarModelMapper: implemented model updated slots. Some more work needed with categories
r1295 void clear();
Michal Klocek
Adds BarCategories typedef
r703
sauimone
renamed barchart floating values with labels to be consistent with piechart
r820 void setLabelsVisible(bool visible = true);
Marek Rosa
Added insert method to QBarSeries
r1362 bool isLabelsVisible() const;
sauimone
values visibility handling changed in barchart
r813
Titta Heikkala
Added possibility to show series value...
r2689 void setLabelsFormat(const QString &format);
QString labelsFormat() const;
Miikka Heikkinen
Added support for bar series value label angle...
r2802 void setLabelsAngle(qreal angle);
qreal labelsAngle() const;
Titta Heikkala
Added possibility to show series value...
r2689 void setLabelsPosition(QAbstractBarSeries::LabelsPosition position);
QAbstractBarSeries::LabelsPosition labelsPosition() const;
Michal Klocek
Refactor to use qseries private for implmentation interface...
r943 protected:
Marc Mutz
Make public headers compile with -Wzero-as-null-pointer-constant...
r2871 explicit QAbstractBarSeries(QAbstractBarSeriesPrivate &d, QObject *parent = Q_NULLPTR);
Michal Klocek
Refactor to use qseries private for implmentation interface...
r943
sauimone
Q_SIGNALS and Q_SLOTS
r775 Q_SIGNALS:
sauimone
removed double signal emitting from barseries/set
r1563 void clicked(int index, QBarSet *barset);
Titta Heikkala
Add hovered signal with index for bar charts...
r2600 void hovered(bool status, int index, QBarSet *barset);
Titta Heikkala
Add pressed, released and doubleClicked signals...
r2739 void pressed(int index, QBarSet *barset);
void released(int index, QBarSet *barset);
void doubleClicked(int index, QBarSet *barset);
Tero Ahola
Minor modifications to properties of abstract, area and bar series
r1462 void countChanged();
sauimone
barchart signals for properties and changes
r1353 void labelsVisibleChanged();
Titta Heikkala
Added possibility to show series value...
r2689 void labelsFormatChanged(const QString &format);
void labelsPositionChanged(QAbstractBarSeries::LabelsPosition position);
Miikka Heikkinen
Added support for bar series value label angle...
r2802 void labelsAngleChanged(qreal angle);
sauimone
barchart signals for properties and changes
r1353
Jani Honkonen
more coding style fixes for src-folder...
r2104 void barsetsAdded(QList<QBarSet *> sets);
void barsetsRemoved(QList<QBarSet *> sets);
sauimone
Barset and barcategory implememtation. Updated test application
r171
sauimone
refactoring. QStackedBarSeries and QPercentBarSeries are now derived from QBarSeries.
r281 protected:
sauimone
QBarSeries to QAbstractBarSeries
r1584 Q_DECLARE_PRIVATE(QAbstractBarSeries)
sauimone
refactoring internal barchart items
r1674 friend class AbstractBarChartItem;
sauimone
barchart PIMPL part 2. Cleaning up leftovers in public api
r962 friend class PercentBarChartItem;
friend class StackedBarChartItem;
Mika Salmela
A new box-and-whiskers series type added to charts....
r2548 friend class BoxPlotChartItem;
sauimone
refactoring internal barchart items
r1674 friend class BarChartItem;
sauimone
horizontal barchart & example
r1681 friend class HorizontalBarChartItem;
sauimone
horizontal stacked barchart
r1685 friend class HorizontalStackedBarChartItem;
sauimone
horizontal percent barchart & example
r1688 friend class HorizontalPercentBarChartItem;
Miikka Heikkinen
Return empty brush/pen/font via API rather than the weird default one...
r2519 friend class BarSet;
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 };
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_END_NAMESPACE
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
Jani Honkonen
Spit&polish public headers
r2046 #endif // QABSTRACTBARSERIES_H