##// END OF EJS Templates
Adjust various margins and paddings....
Miikka Heikkinen -
r2569:f4eaee212ddc
parent child
Show More
@@ -59,8 +59,8 public:
59 QAbstractAxis *axis() const { return m_axis; }
59 QAbstractAxis *axis() const { return m_axis; }
60 void setLayout(QVector<qreal> &layout) { m_layout = layout; }
60 void setLayout(QVector<qreal> &layout) { m_layout = layout; }
61 QVector<qreal> &layout() { return m_layout; } // Modifiable reference
61 QVector<qreal> &layout() { return m_layout; } // Modifiable reference
62 inline qreal labelPadding() const { return qreal(5.0); }
62 inline qreal labelPadding() const { return qreal(1.0); }
63 inline qreal titlePadding() const { return qreal(3.0); }
63 inline qreal titlePadding() const { return qreal(1.0); }
64 void setLabels(const QStringList &labels) { m_labelsList = labels; }
64 void setLabels(const QStringList &labels) { m_labelsList = labels; }
65 QStringList labels() const { return m_labelsList; }
65 QStringList labels() const { return m_labelsList; }
66
66
@@ -38,8 +38,8 LegendMarkerItem::LegendMarkerItem(QLegendMarkerPrivate *marker, QGraphicsObject
38 m_boundingRect(0,0,0,0),
38 m_boundingRect(0,0,0,0),
39 m_textItem(new QGraphicsTextItem(this)),
39 m_textItem(new QGraphicsTextItem(this)),
40 m_rectItem(new QGraphicsRectItem(this)),
40 m_rectItem(new QGraphicsRectItem(this)),
41 m_margin(4),
41 m_margin(1),
42 m_space(4),
42 m_space(2),
43 m_hovering(false),
43 m_hovering(false),
44 m_pressPos(0, 0)
44 m_pressPos(0, 0)
45 {
45 {
General Comments 0
You need to be logged in to leave comments. Login now