##// END OF EJS Templates
Created own boxset class...
Created own boxset class Change-Id: I6a7d0c7eb80ccf757ae761d30f2ab88a7657f711 Reviewed-by: Mika Salmela <mika.salmela@digia.com>

File last commit:

r2486:221296b3ca87
r2486:221296b3ca87
Show More
qboxset_p.h
87 lines | 2.0 KiB | text/x-c | CLexer
/****************************************************************************
**
** 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:
enum DataPositions {
PosLowerExtreme,
PosLowerQuartile,
PosMedian,
PosUpperQuartile,
PosUpperExtreme
};
public:
QBoxSetPrivate(QBoxSet *parent);
~QBoxSetPrivate();
void append(qreal value);
void append(QList<qreal> values);
void insert(const int index, const qreal value);
int remove(const int index, const int count);
void replace(const int index, const qreal value);
qreal value(const int index);
Q_SIGNALS:
void restructuredBox();
void updatedBox();
void updatedLayout();
public:
QBoxSet * const q_ptr;
//QString m_label;
QList<qreal> m_values;
QPen m_pen;
QBrush m_brush;
QBrush m_labelBrush;
QFont m_labelFont;
friend class QBoxSet;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QBOXSET_P_H