1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-26 12:45:53 +01:00
GPXSee/src/range.cpp

18 lines
354 B
C++
Raw Normal View History

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;
}
QDebug operator<<(QDebug dbg, const RangeF &range)
{
2017-08-14 11:16:48 +02:00
const bool ais = dbg.autoInsertSpaces();
2016-03-27 13:23:00 +02:00
dbg.nospace() << "RangeF(" << range.min() << ", " << range.max() << ")";
2017-08-14 11:16:48 +02:00
dbg.setAutoInsertSpaces(ais);
2016-03-27 13:23:00 +02:00
return dbg.maybeSpace();
}