##// END OF EJS Templates
Fix box-and-whiskers animations...
Fix box-and-whiskers animations Change-Id: I406a9b5320caa7c971f692330077ea3b71206655 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>

File last commit:

r2548:b76baa838f46
r2560:a2f72685ff33
Show More
qboxset_p.h
81 lines | 2.0 KiB | text/x-c | CLexer
Mika Salmela
A new box-and-whiskers series type added to charts....
r2548 /****************************************************************************
**
** Copyright (C) 2013 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$
**
****************************************************************************/
// W A R N I N G
// -------------
//
// This file is not part of the QtCommercial Chart API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
#ifndef QBOXSET_P_H
#define QBOXSET_P_H
#include "qboxset.h"
#include <QMap>
#include <QPen>
#include <QBrush>
#include <QFont>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QBoxSetPrivate : public QObject
{
Q_OBJECT
public:
QBoxSetPrivate(const QString label, QBoxSet *parent);
~QBoxSetPrivate();
bool append(qreal value);
bool append(QList<qreal> values);
int remove(const int index, const int count);
void clear();
void setValue(const int index, const qreal value);
qreal value(const int index);
Q_SIGNALS:
void restructuredBox();
void updatedBox();
void updatedLayout();
private:
const QBoxSet *q_ptr;
QString m_label;
const int m_valuesCount;
qreal *m_values;
int m_appendCount;
QPen m_pen;
QBrush m_brush;
QBrush m_labelBrush;
QFont m_labelFont;
friend class QBoxSet;
friend class QBoxPlotSeriesPrivate;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QBOXSET_P_H