1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-12 01:45:11 +02:00

Code cleanup

This commit is contained in:
2016-03-27 13:23:00 +02:00
parent b7f3a64577
commit c9b5e0f2cb
13 changed files with 155 additions and 138 deletions

15
src/range.cpp Normal file
View File

@ -0,0 +1,15 @@
#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();
}