#define SCALE(d,z) ((int)(float(d)*z))
#if QT_VERSION >= 200
#define COLOR_PREFIX(x) (Qt::##x)
#define COLOR_PREFIX(x) (Qt::x)
#else
#define COLOR_PREFIX(x) (x)
#endif