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
Cosmetics
[GPXSee.git]
/
src
/
misc.h
blob
307ee373b56673e5dec6ef90363f71e626aa7389
1
#ifndef MISC_H
2
#define MISC_H
3
4
#include <QRectF>
5
6
#define ARRAY_SIZE(array) \
7
(sizeof(array) / sizeof((array)[0]))
8
9
double
niceNum
(
double
x
,
int
round
);
10
int
str2int
(
const char
*
str
,
int
len
);
11
QRectF
scaled
(
const
QRectF
&
rect
,
qreal factor
);
12
13
#endif
// MISC_H