qbarset_p.h
80 lines
| 2.0 KiB
| text/x-c
|
CLexer
|
r1248 | /**************************************************************************** | ||
** | ||||
|
r2688 | ** Copyright (C) 2014 Digia Plc | ||
|
r1248 | ** All rights reserved. | ||
|
r2740 | ** For any questions to Digia, please use contact form at http://qt.io | ||
|
r1248 | ** | ||
|
r2740 | ** This file is part of the Qt Charts module. | ||
|
r1248 | ** | ||
|
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. | ||||
|
r1248 | ** | ||
** If you have questions regarding the use of this file, please use | ||||
|
r2740 | ** contact form at http://qt.io | ||
|
r1248 | ** | ||
****************************************************************************/ | ||||
// W A R N I N G | ||||
// ------------- | ||||
// | ||||
|
r2574 | // This file is not part of the Qt Enterprise Chart API. It exists purely as an | ||
|
r1248 | // implementation detail. This header file may change from version to | ||
// version without notice, or even be removed. | ||||
// | ||||
// We mean it. | ||||
|
r938 | #ifndef QBARSET_P_H | ||
#define QBARSET_P_H | ||||
|
r2714 | #include <QtCharts/QBarSet> | ||
#include <QtCore/QMap> | ||||
#include <QtGui/QPen> | ||||
#include <QtGui/QBrush> | ||||
#include <QtGui/QFont> | ||||
|
r938 | |||
|
r2712 | QT_CHARTS_BEGIN_NAMESPACE | ||
|
r938 | |||
class QBarSetPrivate : public QObject | ||||
{ | ||||
Q_OBJECT | ||||
public: | ||||
|
r1429 | QBarSetPrivate(const QString label, QBarSet *parent); | ||
|
r938 | ~QBarSetPrivate(); | ||
|
r1353 | void append(QPointF value); | ||
void append(QList<QPointF> values); | ||||
void append(QList<qreal> values); | ||||
void insert(const int index, const qreal value); | ||||
void insert(const int index, const QPointF value); | ||||
|
r1514 | int remove(const int index, const int count); | ||
|
r1353 | |||
void replace(const int index, const qreal value); | ||||
void replace(const int index, const QPointF value); | ||||
|
r1681 | qreal pos(const int index); | ||
qreal value(const int index); | ||||
|
r1603 | |||
|
r938 | Q_SIGNALS: | ||
|
r1008 | void restructuredBars(); | ||
void updatedBars(); | ||||
|
r1917 | void updatedLayout(); | ||
|
r938 | |||
public: | ||||
QBarSet * const q_ptr; | ||||
|
r1429 | QString m_label; | ||
|
r1167 | QList<QPointF> m_values; | ||
|
r938 | QPen m_pen; | ||
QBrush m_brush; | ||||
QBrush m_labelBrush; | ||||
QFont m_labelFont; | ||||
friend class QBarSet; | ||||
}; | ||||
|
r2712 | QT_CHARTS_END_NAMESPACE | ||
|
r938 | |||
#endif // QBARSETPRIVATE_P_H | ||||