src/corelib/global/qglobal.h
changeset 7 f7bc934e204c
parent 3 41300fa6a67c
child 29 b72c6db6890b
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtCore module of the Qt Toolkit.
     7 ** This file is part of the QtCore module of the Qt Toolkit.
     8 **
     8 **
    42 #ifndef QGLOBAL_H
    42 #ifndef QGLOBAL_H
    43 #define QGLOBAL_H
    43 #define QGLOBAL_H
    44 
    44 
    45 #include <stddef.h>
    45 #include <stddef.h>
    46 
    46 
    47 #define QT_VERSION_STR   "4.6.1"
    47 #define QT_VERSION_STR   "4.6.3"
    48 /*
    48 /*
    49    QT_VERSION is (major << 16) + (minor << 8) + patch.
    49    QT_VERSION is (major << 16) + (minor << 8) + patch.
    50 */
    50 */
    51 #define QT_VERSION 0x040601
    51 #define QT_VERSION 0x040603
    52 /*
    52 /*
    53    can be used like #if (QT_VERSION >= QT_VERSION_CHECK(4, 4, 0))
    53    can be used like #if (QT_VERSION >= QT_VERSION_CHECK(4, 4, 0))
    54 */
    54 */
    55 #define QT_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch))
    55 #define QT_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch))
    56 
    56 
   811 #      define Q_WS_MAC64
   811 #      define Q_WS_MAC64
   812 #    elif defined(Q_OS_MAC32)
   812 #    elif defined(Q_OS_MAC32)
   813 #      define Q_WS_MAC32
   813 #      define Q_WS_MAC32
   814 #    endif
   814 #    endif
   815 #  elif defined(Q_OS_SYMBIAN)
   815 #  elif defined(Q_OS_SYMBIAN)
   816 #    if !defined(QT_NO_S60) /* :QTP:Version detection not working */
   816 #    if !defined(QT_NO_S60)
   817 #      define Q_WS_S60
   817 #      define Q_WS_S60
   818 #    endif
   818 #    endif
   819 #  elif !defined(Q_WS_QWS)
   819 #  elif !defined(Q_WS_QWS)
   820 #    define Q_WS_X11
   820 #    define Q_WS_X11
   821 #  endif
   821 #  endif
  1672 #    define Q_ASSERT_X(cond, where, what) qt_noop()
  1672 #    define Q_ASSERT_X(cond, where, what) qt_noop()
  1673 #  endif
  1673 #  endif
  1674 #endif
  1674 #endif
  1675 
  1675 
  1676 Q_CORE_EXPORT void qt_check_pointer(const char *, int);
  1676 Q_CORE_EXPORT void qt_check_pointer(const char *, int);
  1677 
       
  1678 #ifndef QT_NO_EXCEPTIONS
       
  1679 Q_CORE_EXPORT void qBadAlloc();
  1677 Q_CORE_EXPORT void qBadAlloc();
  1680 #endif
       
  1681 
  1678 
  1682 #ifdef QT_NO_EXCEPTIONS
  1679 #ifdef QT_NO_EXCEPTIONS
  1683 #  if defined(QT_NO_DEBUG)
  1680 #  if defined(QT_NO_DEBUG)
  1684 #    define Q_CHECK_PTR(p) qt_noop();
  1681 #    define Q_CHECK_PTR(p) qt_noop();
  1685 #  else
  1682 #  else
  2410 QT3_SUPPORT Q_CORE_EXPORT const char *qInstallPathSysconf();
  2407 QT3_SUPPORT Q_CORE_EXPORT const char *qInstallPathSysconf();
  2411 #endif
  2408 #endif
  2412 
  2409 
  2413 #if defined(Q_OS_SYMBIAN)
  2410 #if defined(Q_OS_SYMBIAN)
  2414 
  2411 
  2415 #ifdef SYMBIAN_GRAPHICS_USE_GCE
  2412 #ifdef SYMBIAN_BUILD_GCE
  2416 //RWsPointerCursor is fixed, so don't use low performance sprites
  2413 //RWsPointerCursor is fixed, so don't use low performance sprites
  2417 #define Q_SYMBIAN_FIXED_POINTER_CURSORS
  2414 #define Q_SYMBIAN_FIXED_POINTER_CURSORS
  2418 #define Q_SYMBIAN_HAS_EXTENDED_BITMAP_TYPE
  2415 #define Q_SYMBIAN_HAS_EXTENDED_BITMAP_TYPE
       
  2416 #define Q_SYMBIAN_WINDOW_SIZE_CACHE
       
  2417 #define QT_SYMBIAN_SUPPORTS_ADVANCED_POINTER
       
  2418 
  2419 //enabling new graphics resources
  2419 //enabling new graphics resources
  2420 #define QT_SYMBIAN_SUPPORTS_SGIMAGE
  2420 #ifdef SYMBIAN_GRAPHICS_EGL_SGIMAGELITE
  2421 #define QT_SYMBIAN_SUPPORTS_ADVANCED_POINTER
  2421 #  define QT_SYMBIAN_SUPPORTS_SGIMAGE
       
  2422 #endif
       
  2423 
       
  2424 #ifdef SYMBIAN_GRAPHICS_WSERV_QT_EFFECTS
       
  2425 #  define Q_SYMBIAN_SEMITRANSPARENT_BG_SURFACE
       
  2426 #endif
  2422 #endif
  2427 #endif
  2423 
  2428 
  2424 
  2429 
  2425 //Symbian does not support data imports from a DLL
  2430 //Symbian does not support data imports from a DLL
  2426 #define Q_NO_DATA_RELOCATION
  2431 #define Q_NO_DATA_RELOCATION