repo.or.cz
/
GPXSee.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Human-friendly links
[GPXSee.git]
/
src
/
range.cpp
blob
216391067398331b906cc1ff3f62f2719cdb0384
1
#include
"range.h"
2
3
void
RangeF
::
resize
(
qreal size
)
4
{
5
qreal adj
= (
size
/
2
-
this
->
size
()/
2
);
6
7
_min
-=
adj
;
8
_max
+=
adj
;
9
}
10
11
QDebug
operator
<<(
QDebug dbg
,
const
RangeF
&
range
)
12
{
13
dbg
.
nospace
() <<
"RangeF("
<<
range
.
min
() <<
", "
<<
range
.
max
() <<
")"
;
14
return
dbg
.
maybeSpace
();
15
}