22 #if !defined(QSTRING_H) || !defined(QCHAR_H)
26 #if defined(__APPLE__) && (defined(__GNUC__) || defined(__xlC__) || defined(__xlc__))
30 # define Q_OS_DARWIN64
32 # define Q_OS_DARWIN32
34 #elif !defined(SAG_COM) && (defined(WIN64) || defined(_WIN64) || defined(__WIN64__))
37 #elif !defined(SAG_COM) && (defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__))
38 # if defined(WINCE) || defined(_WIN32_WCE)
43 #elif defined(__linux__) || defined(__linux)
45 #elif defined(VXWORKS)
47 #elif defined(__MAKEDEPEND__)
49 # error "Qt has not been ported to this OS - talk to qt-bugs@trolltech.com"
52 #if defined(Q_OS_WIN32) || defined(Q_OS_WIN64) || defined(Q_OS_WINCE)
56 #if defined(Q_OS_WIN) && !defined(Q_CC_GNU) && !defined(Q_CC_MWERKS)
57 # define Q_INT64_C(c) c ## i64
58 # define Q_UINT64_C(c) c ## ui64
60 typedef unsigned __int64
quint64;
62 # define Q_INT64_C(c) static_cast<long long>(c ## LL)
63 # define Q_UINT64_C(c) static_cast<unsigned long long>(c ## ULL)
101 {
return ((rgb >> 16) & 0xff); }
104 {
return ((rgb >> 8) & 0xff); }
107 {
return (rgb & 0xff); }
110 {
return rgb >> 24; }
112 inline int qGray(
int r,
int g,
int b)
113 {
return (r*11+g*16+b*5)/32; }
119 {
return (0xffu << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); }
122 {
return ((a & 0xff) << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); }
QRgb qRgb(int r, int g, int b)
QRgb qRgba(int r, int g, int b, int a)
unsigned long long quint64
int qGray(int r, int g, int b)