##// END OF EJS Templates
Adjust various margins and paddings....
Adjust various margins and paddings. The text items have been changed to use QGraphicsTextItem bounding rects instead of calculating dimensions using QFontMetrics. It seems that QGraphicsTextItem boundingRect involves a lot more of a margin than QFontMetrics provided. To compensate, various margins and paddings have been adjusted lower. Change-Id: Idebf939f5dd804fb96daeaea4bbf1b45f4f02908 Reviewed-by: Mika Salmela <mika.salmela@digia.com>

File last commit:

r2561:3dd93906f007
r2569:f4eaee212ddc
Show More
qboxset_p.h
84 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
Miikka Heikkinen
Further crash fixes to boxplot...
r2561 class QBoxPlotSeriesPrivate;
Mika Salmela
A new box-and-whiskers series type added to charts....
r2548 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;
Miikka Heikkinen
Further crash fixes to boxplot...
r2561 QBoxPlotSeriesPrivate *m_series;
Mika Salmela
A new box-and-whiskers series type added to charts....
r2548
friend class QBoxSet;
friend class QBoxPlotSeriesPrivate;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QBOXSET_P_H