diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-06-11 14:34:02 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-06-12 07:42:20 +0300 |
commit | f4eaee212ddc756669e80cb53a1cbe59176d7716 (patch) | |
tree | 740163e3588d1ba7e56a6ea5bf9959bf13e61b93 /src/axis/chartaxiselement_p.h | |
parent | e7097a7e781d6422b8b20e3f3805fe46bc00d9a0 (diff) |
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>
Diffstat (limited to 'src/axis/chartaxiselement_p.h')
-rw-r--r-- | src/axis/chartaxiselement_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/axis/chartaxiselement_p.h b/src/axis/chartaxiselement_p.h index f7730c3c..62c686a3 100644 --- a/src/axis/chartaxiselement_p.h +++ b/src/axis/chartaxiselement_p.h @@ -59,8 +59,8 @@ public: QAbstractAxis *axis() const { return m_axis; } void setLayout(QVector<qreal> &layout) { m_layout = layout; } QVector<qreal> &layout() { return m_layout; } // Modifiable reference - inline qreal labelPadding() const { return qreal(5.0); } - inline qreal titlePadding() const { return qreal(3.0); } + inline qreal labelPadding() const { return qreal(1.0); } + inline qreal titlePadding() const { return qreal(1.0); } void setLabels(const QStringList &labels) { m_labelsList = labels; } QStringList labels() const { return m_labelsList; } |