##// END OF EJS Templates
Embedded compile fix
Marek Rosa -
r1779:c1cdb21ee47d
parent child
Show More
@@ -585,7 +585,7 bool QPieSeries::donut() const
585 void QPieSeries::setDonutInnerSize(qreal innerSize)
585 void QPieSeries::setDonutInnerSize(qreal innerSize)
586 {
586 {
587 Q_D(QPieSeries);
587 Q_D(QPieSeries);
588 innerSize = qBound(0.0, innerSize, 1.0);
588 innerSize = qBound((qreal)0.0, innerSize, (qreal)1.0);
589 d->setSizes(innerSize, qMax(d->m_pieRelativeSize, innerSize));
589 d->setSizes(innerSize, qMax(d->m_pieRelativeSize, innerSize));
590 }
590 }
591
591
@@ -640,7 +640,7 qreal QPieSeries::verticalPosition() const
640 void QPieSeries::setPieSize(qreal relativeSize)
640 void QPieSeries::setPieSize(qreal relativeSize)
641 {
641 {
642 Q_D(QPieSeries);
642 Q_D(QPieSeries);
643 relativeSize = qBound(0.0, relativeSize, 1.0);
643 relativeSize = qBound((qreal)0.0, relativeSize, (qreal)1.0);
644 d->setSizes(qMin(d->m_donutRelativeInnerSize, relativeSize), relativeSize);
644 d->setSizes(qMin(d->m_donutRelativeInnerSize, relativeSize), relativeSize);
645
645
646 }
646 }
@@ -292,6 +292,11 void tst_QIntervalsAxis::interval()
292 QCOMPARE(m_intervalsaxis->intervalMin("second"), (qreal)0); // second interval should extend to firstInterval minimum
292 QCOMPARE(m_intervalsaxis->intervalMin("second"), (qreal)0); // second interval should extend to firstInterval minimum
293 QCOMPARE(m_intervalsaxis->intervalMax("second"), (qreal)75);
293 QCOMPARE(m_intervalsaxis->intervalMax("second"), (qreal)75);
294
294
295 // remove one interval
296 m_intervalsaxis->replace("second", "replaced");
297 QCOMPARE(m_intervalsaxis->count(), 2);
298 QCOMPARE(m_intervalsaxis->intervalMin("replaced"), (qreal)0); // second interval should extend to firstInterval minimum
299 QCOMPARE(m_intervalsaxis->intervalMax("replaced"), (qreal)75);
295 }
300 }
296
301
297 QTEST_MAIN(tst_QIntervalsAxis)
302 QTEST_MAIN(tst_QIntervalsAxis)
General Comments 0
You need to be logged in to leave comments. Login now