mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 19:55:53 +01:00
16 lines
281 B
C++
16 lines
281 B
C++
|
#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)
|
||
|
{
|
||
|
dbg.nospace() << "RangeF(" << range.min() << ", " << range.max() << ")";
|
||
|
return dbg.maybeSpace();
|
||
|
}
|