42 #define QT_VERSION 223 43 #define QT_VERSION_STR "2.2.3" 73 #if defined(__APPLE__) || defined(macintosh) 75 # ifdef MAC_OS_X_VERSION_MIN_REQUIRED 76 # undef MAC_OS_X_VERSION_MIN_REQUIRED 78 # define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_3 79 #elif defined(MSDOS) || defined(_MSDOS) || defined(__MSDOS__) 81 #elif defined(OS2) || defined(_OS2) || defined(__OS2__) 87 #elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) 89 #elif defined(__MWERKS__) && defined(__INTEL__) 91 #elif defined(sun) || defined(__sun) || defined(__sun__) 97 #elif defined(hpux) || defined(__hpux) || defined(__hpux__) 99 #elif defined(ultrix) || defined(__ultrix) || defined(__ultrix__) 101 #elif defined(reliantunix) 102 #define _OS_RELIANTUNIX_ 103 #elif defined(linux) || defined(__linux) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) 105 #elif defined(__FreeBSD__) 107 #elif defined(__NetBSD__) 109 #elif defined(__OpenBSD__) 111 #elif defined(sgi) || defined(__sgi) 113 #elif defined(__osf__) 115 #elif defined(bsdi) || defined(__bsdi__) 119 #elif defined(__Lynx__) 121 #elif defined(_UNIXWARE) 122 #define _OS_UNIXWARE_ 125 #elif defined(__QNX__) 127 #elif defined(_SCO_DS) || defined(M_UNIX) || defined(M_XENIX) 129 #elif defined(sco) || defined(_UNIXWARE7) 130 #define _OS_UNIXWARE7_ 131 #elif !defined(_SCO_DS) && defined(__USLC__) && defined(__SCO_VERSION__) 132 #define _OS_UNIXWARE7_ 133 #elif defined(__CYGWIN__) 135 #elif defined(__BEOS__) 137 #elif defined(__MINT__) 140 #error "Qt has not been ported to this OS - talk to qt-bugs@trolltech.com" 143 #if defined(_OS_MAC_) || defined(_OS_MSDOS_) || defined(_OS_OS2_) || defined(_OS_WIN32_) 145 #elif !defined(_OS_UNIX_) 149 #if !defined(QT_CLEAN_NAMESPACE) && !defined(UNIX) 182 #elif defined( __KCC ) 185 #define Q_HAS_BOOL_TYPE 186 #elif defined(applec) 188 #elif defined(__MWERKS__) 190 #define Q_HAS_BOOL_TYPE 191 #elif defined(_MSC_VER) 193 #elif defined(__BORLANDC__) || defined(__TURBOC__) 195 #elif defined(__WATCOMC__) 197 #define Q_HAS_BOOL_TYPE 198 #elif defined(__GNUC__) 200 #if __GNUC__ == 2 && __GNUC_MINOR__ <= 7 201 #define Q_FULL_TEMPLATE_INSTANTIATION 202 #define Q_TEMPLATE_NEEDS_CLASS_DECLARATION 203 #define Q_TEMPLATE_NEEDS_EXPLICIT_CONVERSION 204 #define Q_SPURIOUS_NON_VOID_WARNING 206 #if __GNUC__ == 2 && __GNUC_MINOR__ >= 95 207 #define Q_DELETING_VOID_UNDEFINED 209 #if (defined(__arm__) || defined(__ARMEL__)) && !defined(QT_MOC_CPP) 210 #define Q_PACKED __attribute__ ((packed)) 212 #elif defined(__xlC__) 214 #define Q_FULL_TEMPLATE_INSTANTIATION 216 #define Q_HAS_BOOL_TYPE 218 #if __xlC__ <= 0x0306 219 #define Q_TEMPLATE_NEEDS_EXPLICIT_CONVERSION 221 #elif defined(como40) 224 #define Q_HAS_BOOL_TYPE 225 #define Q_C_CALLBACKS 226 #elif defined(__USLC__) 228 #ifdef __EDG__ // UnixWare7 229 #define Q_HAS_BOOL_TYPE 231 #elif defined(__DECCXX) 233 #if __DECCXX_VER >= 60060005 234 #define Q_HAS_BOOL_TYPE 236 #elif defined(__EDG) || defined(__EDG__) 239 #elif defined(OBJECTCENTER) || defined(CENTERLINE_CLPP) 242 #define Q_HAS_BOOL_TYPE 244 #elif defined(__SUNPRO_CC) 246 #if __SUNPRO_CC >= 0x500 247 #define Q_HAS_BOOL_TYPE 248 #define Q_C_CALLBACKS 250 #elif defined(__CDS__) 252 #define Q_HAS_BOOL_TYPE 253 #elif defined(_OS_HPUX_) 255 #if defined(__HP_aCC) || __cplusplus >= 199707L 258 #define Q_HAS_BOOL_TYPE 262 #define Q_FULL_TEMPLATE_INSTANTIATION 263 #define Q_TEMPLATE_NEEDS_EXPLICIT_CONVERSION 266 #error "Qt has not been tested with this compiler - talk to qt-bugs@trolltech.com" 273 #elif _MSC_VER >= 1310 275 #elif _MSC_VER > 1300 288 #if defined(_OS_MAC_) 290 #elif defined(_OS_MSDOS_) 292 #error "Qt requires Win32 and does not work with Windows 3.x" 293 #elif defined(_WIN32_X11_) 295 #elif defined(_OS_WIN32_) 297 #elif defined(_OS_OS2_) 298 #error "Qt does not work with OS/2 Presentation Manager or Workplace Shell" 299 #elif defined(_OS_UNIX_) 307 #if defined(_WS_WIN16_) || defined(_WS_WIN32_) 319 #define Q_DISABLE_COPY 327 #define Q_HAS_BOOL_TYPE 328 #elif __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 6) 329 #define Q_HAS_BOOL_TYPE 330 #elif _MSC_VER >= 1100 || __BORLANDC__ >= 0x500 331 #define Q_HAS_BOOL_TYPE 332 #elif defined(sgi) && defined(_BOOL) 333 #define Q_HAS_BOOL_TYPE 336 #if (QT_VERSION >= 300) 337 #error "Use an enum for bool" 340 #if !defined(Q_HAS_BOOL_TYPE) 341 #if defined(_CC_MSVC_) 342 #define _CC_BOOL_DEF_ 356 #if defined(_OS_WIN32_) && !defined(_CC_GNU_) 357 typedef __int64
int64;
358 typedef unsigned __int64
uint64;
375 #if defined(_CC_MSVC_) 377 #define QT_STATIC_CONST static 378 #define QT_STATIC_CONST_IMPL 380 #define QT_STATIC_CONST static const 381 #define QT_STATIC_CONST_IMPL const 390 #define QMAX(a,b) ((a) > (b) ? (a) : (b)) 391 #define QMIN(a,b) ((a) < (b) ? (a) : (b)) 392 #define QABS(a) ((a) >= 0 ? (a) : -(a)) 396 return d > 0.0 ?
int(d+0.5) :
int(d-0.5);
406 #if !defined(QT_CLEAN_NAMESPACE) 433 extern bool qt_winunicode;
444 #if defined(_OS_WIN32_) 445 #if defined(QT_NODLL) 450 #if defined(QT_MAKEDLL) 452 #define Q_EXPORT __declspec(dllexport) 453 #define Q_TEMPLATEDLL 454 #undef Q_DISABLE_COPY 458 #define Q_EXPORT __declspec(dllimport) 459 #define Q_TEMPLATEDLL 460 #undef Q_DISABLE_COPY 462 #else // ! _OS_WIN32_ 483 #if !defined(NO_CHECK) 484 #define CHECK_STATE // check state of objects etc. 485 #define CHECK_RANGE // check range of indexes etc. 486 #define CHECK_NULL // check null pointers 487 #define CHECK_MATH // check math functions 490 #if !defined(NO_DEBUG) && !defined(DEBUG) 491 #define DEBUG // display debug messages 500 #if !defined(CC_WARNINGS) 501 #define Q_NO_WARNINGS 503 #if defined(Q_NO_WARNINGS) 504 #if defined(_CC_MSVC_) 505 #pragma warning(disable: 4244) 506 #pragma warning(disable: 4275) 507 #pragma warning(disable: 4514) 508 #pragma warning(disable: 4800) 509 #pragma warning(disable: 4097) 510 #pragma warning(disable: 4706) 511 #elif defined(_CC_BOR_) 512 #pragma option -w-inl 513 #pragma option -w-aus 519 #elif defined(_CC_MWERKS_) 520 #pragma warn_possunwant off 522 #endif // Q_NO_WARNINGS 528 #if defined(_CC_EDG_) || defined(_CC_WAT_) 529 #define Q_NO_DEAD_CODE 536 #define Q_UNUSED(x) x=x; 537 #define Q_CONST_UNUSED(x) (void)x; 540 #if defined(_CC_GNU_) && !defined(__INSURE__) 541 __attribute__ ((
format (printf, 1, 2)))
546 #if defined(_CC_GNU_) && !defined(__INSURE__) 547 __attribute__ ((
format (printf, 1, 2)))
552 #if defined(_CC_GNU_) 553 __attribute__ ((
format (printf, 1, 2)))
560 #if !defined(QT_CLEAN_NAMESPACE) 564 #if defined(_CC_GNU_) && !defined(__INSURE__) 565 __attribute__ ((
format (printf, 1, 2)))
570 #if defined(_CC_GNU_) && !defined(__INSURE__) 571 __attribute__ ((
format (printf, 1, 2)))
576 #if defined(_CC_GNU_) && !defined(__INSURE__) 577 __attribute__ ((
format (printf, 1, 2)))
585 #if defined(CHECK_STATE) 586 #if defined(QT_FATAL_ASSERT) 587 #define ASSERT(x) if ( !(x) )\ 588 qFatal("ASSERT: \"%s\" in %s (%d)",#x,__FILE__,__LINE__) 590 #define ASSERT(x) if ( !(x) )\ 591 qWarning("ASSERT: \"%s\" in %s (%d)",#x,__FILE__,__LINE__) 600 #if defined(CHECK_NULL) 601 #define CHECK_PTR(p) (qt_check_pointer((p)==0,__FILE__,__LINE__)) 614 #if !defined(QT_REJECT_OBSOLETE) 617 const char *newfunc );
623 #define Q_DELETING_VOID_UNDEFINED
Q_EXPORT void qObsolete(const char *obj, const char *oldfunc, const char *newfunc)
Q_EXPORT void fatal(const char *,...)
Q_EXPORT bool qSysInfo(int *wordSize, bool *bigEndian)
Q_EXPORT const char * qVersion()
Q_EXPORT void qSuppressObsoleteWarnings(bool=TRUE)
static bool format(QChar::Decomposition tag, QString &str, int index, int len)
Q_EXPORT void qFatal(const char *,...)
Q_EXPORT bool qt_check_pointer(bool c, const char *, int)
void(* msg_handler)(QtMsgType, const char *)
Q_EXPORT void debug(const char *,...)
Q_EXPORT void warning(const char *,...)
Q_EXPORT void qWarning(const char *,...)
Q_EXPORT msg_handler qInstallMsgHandler(msg_handler)
The QDataStream class provides serialization of binary data to a QIODevice.
unsigned long long uint64
Q_EXPORT void qDebug(const char *,...)