2016-03-27 13:23:00 +02:00
|
|
|
#include "range.h"
|
|
|
|
|
|
|
|
void RangeF::resize(qreal size)
|
|
|
|
{
|
|
|
|
qreal adj = (size/2 - this->size()/2);
|
|
|
|
|
|
|
|
_min -= adj;
|
|
|
|
_max += adj;
|
|
|
|
}
|
|
|
|
|
2017-09-09 12:33:43 +02:00
|
|
|
QDebug operator<<(QDebug dbg, const Range &range)
|
|
|
|
{
|
|
|
|
dbg.nospace() << "Range(" << range.min() << ", " << range.max() << ")";
|
|
|
|
return dbg.space();
|
|
|
|
}
|
|
|
|
|
2016-03-27 13:23:00 +02:00
|
|
|
QDebug operator<<(QDebug dbg, const RangeF &range)
|
|
|
|
{
|
|
|
|
dbg.nospace() << "RangeF(" << range.min() << ", " << range.max() << ")";
|
2017-08-15 15:13:34 +02:00
|
|
|
return dbg.space();
|
2016-03-27 13:23:00 +02:00
|
|
|
}
|