##// END OF EJS Templates
Fixes missing layout updated on ticks,base and format calls
Michal Klocek -
r2333:158c8aa5716a
parent child
Show More
@@ -25,6 +25,7
25 25 #include <QGraphicsLayout>
26 26 #include <QFontMetrics>
27 27 #include <qmath.h>
28 #include <QDebug>
28 29
29 30 QTCOMMERCIALCHART_BEGIN_NAMESPACE
30 31
@@ -72,12 +73,14 void ChartLogValueAxisX::updateGeometry()
72 73 void ChartLogValueAxisX::handleBaseChanged(qreal base)
73 74 {
74 75 Q_UNUSED(base);
76 QGraphicsLayoutItem::updateGeometry();
75 77 if(presenter()) presenter()->layout()->invalidate();
76 78 }
77 79
78 80 void ChartLogValueAxisX::handleLabelFormatChanged(const QString &format)
79 81 {
80 82 Q_UNUSED(format);
83 QGraphicsLayoutItem::updateGeometry();
81 84 if(presenter()) presenter()->layout()->invalidate();
82 85 }
83 86
@@ -72,12 +72,14 void ChartLogValueAxisY::updateGeometry()
72 72 void ChartLogValueAxisY::handleBaseChanged(qreal base)
73 73 {
74 74 Q_UNUSED(base);
75 QGraphicsLayoutItem::updateGeometry();
75 76 if(presenter()) presenter()->layout()->invalidate();
76 77 }
77 78
78 79 void ChartLogValueAxisY::handleLabelFormatChanged(const QString &format)
79 80 {
80 81 Q_UNUSED(format);
82 QGraphicsLayoutItem::updateGeometry();
81 83 if(presenter()) presenter()->layout()->invalidate();
82 84 }
83 85
@@ -275,8 +275,8 void QLogValueAxisPrivate::setRange(qreal min, qreal max)
275 275 }
276 276
277 277 if (changed) {
278 emit q->rangeChanged(min, max);
279 278 emit rangeChanged(min,max);
279 emit q->rangeChanged(min, max);
280 280 }
281 281 }
282 282 }
@@ -72,12 +72,14 void ChartValueAxisX::updateGeometry()
72 72 void ChartValueAxisX::handleTickCountChanged(int tick)
73 73 {
74 74 Q_UNUSED(tick);
75 QGraphicsLayoutItem::updateGeometry();
75 76 if(presenter()) presenter()->layout()->invalidate();
76 77 }
77 78
78 79 void ChartValueAxisX::handleLabelFormatChanged(const QString &format)
79 80 {
80 81 Q_UNUSED(format);
82 QGraphicsLayoutItem::updateGeometry();
81 83 if(presenter()) presenter()->layout()->invalidate();
82 84 }
83 85
@@ -73,12 +73,14 void ChartValueAxisY::updateGeometry()
73 73 void ChartValueAxisY::handleTickCountChanged(int tick)
74 74 {
75 75 Q_UNUSED(tick);
76 QGraphicsLayoutItem::updateGeometry();
76 77 if(presenter()) presenter()->layout()->invalidate();
77 78 }
78 79
79 80 void ChartValueAxisY::handleLabelFormatChanged(const QString &format)
80 81 {
81 82 Q_UNUSED(format);
83 QGraphicsLayoutItem::updateGeometry();
82 84 if(presenter()) presenter()->layout()->invalidate();
83 85 }
84 86
General Comments 0
You need to be logged in to leave comments. Login now