@@ -72,7 +72,7 QLegend::QLegend(QGraphicsItem *parent) : QGraphicsObject(parent), | |||||
72 | m_minimumSize(50,20), // TODO: magic numbers |
|
72 | m_minimumSize(50,20), // TODO: magic numbers | |
73 | m_maximumSize(150,100), |
|
73 | m_maximumSize(150,100), | |
74 | m_size(m_minimumSize), |
|
74 | m_size(m_minimumSize), | |
75 | m_brush(Qt::darkGray), |
|
75 | m_brush(Qt::darkGray), // TODO: default should come from theme | |
76 | m_alignment(QLegend::LayoutTop), |
|
76 | m_alignment(QLegend::LayoutTop), | |
77 | mFirstMarker(0) |
|
77 | mFirstMarker(0) | |
78 | { |
|
78 | { | |
@@ -104,7 +104,7 void QLegend::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, Q | |||||
104 | painter->setOpacity(opacity()); |
|
104 | painter->setOpacity(opacity()); | |
105 | painter->setPen(m_pen); |
|
105 | painter->setPen(m_pen); | |
106 | painter->setBrush(m_brush); |
|
106 | painter->setBrush(m_brush); | |
107 | painter->drawRect(boundingRect()); |
|
107 | // painter->drawRect(boundingRect()); | |
108 | } |
|
108 | } | |
109 |
|
109 | |||
110 | /*! |
|
110 | /*! |
General Comments 0
You need to be logged in to leave comments.
Login now