##// END OF EJS Templates
minor. removes hardcoded label padding drom datetime axis
Michal Klocek -
r2112:0680e5f566cd
parent child
Show More
@@ -26,9 +26,6
26 26 #include <QFontMetrics>
27 27 #include <qmath.h>
28 28
29
30 static int label_padding = 5;
31
32 29 QTCOMMERCIALCHART_BEGIN_NAMESPACE
33 30
34 31 ChartDateTimeAxisX::ChartDateTimeAxisX(QDateTimeAxis *axis,ChartPresenter *presenter) : HorizontalAxis(axis,presenter),
@@ -94,7 +91,7 QSizeF ChartDateTimeAxisX::sizeHint(Qt::SizeHint which, const QSizeF& constraint
94 91 {
95 92 QRectF rect = fn.boundingRect(ticksList.at(i));
96 93 width+=rect.width();
97 height+=qMax(rect.height()+label_padding,height);
94 height+=qMax(rect.height()+labelPadding(),height);
98 95 }
99 96 sh = QSizeF(width,height);
100 97 break;
@@ -26,9 +26,6
26 26 #include <QDateTime>
27 27 #include <qmath.h>
28 28
29
30 static int label_padding = 5;
31
32 29 QTCOMMERCIALCHART_BEGIN_NAMESPACE
33 30
34 31 ChartDateTimeAxisY::ChartDateTimeAxisY(QDateTimeAxis *axis,ChartPresenter *presenter) : VerticalAxis(axis,presenter),
@@ -95,7 +92,7 QSizeF ChartDateTimeAxisY::sizeHint(Qt::SizeHint which, const QSizeF& constraint
95 92 {
96 93 QRectF rect = fn.boundingRect(ticksList.at(i));
97 94 width+=rect.width();
98 height+=qMax(rect.height()+label_padding,height);
95 height+=qMax(rect.height()+labelPadding(),height);
99 96 }
100 97 sh = QSizeF(width,height);
101 98 break;
General Comments 0
You need to be logged in to leave comments. Login now