⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qglobal.h

📁 motorola E680I的EZK SDK.
💻 H
📖 第 1 页 / 共 2 页
字号:
#else#define _WS_X11_#define Q_WS_X11#endif#endif#if defined(_WS_WIN16_) || defined(_WS_WIN32_)#define _WS_WIN_#define Q_WS_WIN#endif//// Some classes do not permit copies to be made of an object.// These classes contains a private copy constructor and operator=// to disable copying (the compiler gives an error message).// Undefine Q_DISABLE_COPY to turn off this checking.//#define Q_DISABLE_COPY//// Useful type definitions for Qt//#if defined(bool)#define Q_HAS_BOOL_TYPE#elif __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 6)#define Q_HAS_BOOL_TYPE#elif _MSC_VER >= 1100 || __BORLANDC__ >= 0x500#define Q_HAS_BOOL_TYPE#elif defined(sgi) && defined(_BOOL)#define Q_HAS_BOOL_TYPE#endif#if (QT_VERSION >= 300)#error "Use an enum for bool"#endif#if !defined(Q_HAS_BOOL_TYPE)#if defined(_CC_MSVC_)#define _CC_BOOL_DEF_#define bool		int#elsetypedef int		bool;#endif#endiftypedef unsigned char	uchar;typedef unsigned short	ushort;typedef unsigned	uint;typedef unsigned long	ulong;typedef char	       *pchar;typedef uchar	       *puchar;typedef const char     *pcchar;//// Constant bool values//#ifndef TRUEconst bool FALSE = 0;const bool TRUE = !0;#endif#if defined(_CC_MSVC_)// Workaround for static const members.#define QT_STATIC_CONST static#define QT_STATIC_CONST_IMPL#else#define QT_STATIC_CONST static const#define QT_STATIC_CONST_IMPL const#endif//// Utility macros and inline functions//#define QMAX(a,b)	((a) > (b) ? (a) : (b))#define QMIN(a,b)	((a) < (b) ? (a) : (b))#define QABS(a)		((a) >= 0  ? (a) : -(a))inline int qRound( double d ){    return d > 0.0 ? int(d+0.5) : int(d-0.5);}//// Size-dependent types (architechture-dependent byte order)//// QT_CLEAN_NAMESPACE is not defined by default; it would break too// much code.#if !defined(QT_CLEAN_NAMESPACE)typedef signed char	INT8;			// 8 bit signedtypedef unsigned char	UINT8;			// 8 bit unsignedtypedef short		INT16;			// 16 bit signedtypedef unsigned short	UINT16;			// 16 bit unsignedtypedef int		INT32;			// 32 bit signedtypedef unsigned int	UINT32;			// 32 bit unsigned#endiftypedef signed char	Q_INT8;			// 8 bit signedtypedef unsigned char	Q_UINT8;		// 8 bit unsignedtypedef short		Q_INT16;		// 16 bit signedtypedef unsigned short	Q_UINT16;		// 16 bit unsignedtypedef int		Q_INT32;		// 32 bit signedtypedef unsigned int	Q_UINT32;		// 32 bit unsignedtypedef long		Q_INT64;		// up to 64 bit signedtypedef unsigned long	Q_UINT64;		// up to 64 bit unsigned//// Data stream functions is provided by many classes (defined in qdatastream.h)//class QDataStream;#ifdef _WS_WIN_extern bool qt_winunicode;#endif#if defined(QCONFIG)#include QCONFIG#else // everything...#include <qconfig.h>#endif// Permanently unavailable features#define QT_NO_QWS_SVGALIB#define QT_NO_QWS_DEPTH_8GRAYSCALE#define QT_NO_QWS_KDE2_WM_STYLE#ifdef _WS_QWS_#if !defined(QT_EZX_MUNGE)# define QT_NO_MIMECLIPBOARD#endif /* !defined(QT_EZX_MUNGE) */#endif#ifndef QT_H#include <qfeatures.h>#endif // QT_H//// Create Qt DLL if QT_DLL is defined (Windows only)//#if defined(_OS_WIN32_)#if defined(QT_NODLL)#undef QT_MAKEDLL#undef QT_DLL#endif#ifdef QT_DLL#if defined(QT_MAKEDLL)		/* create a Qt DLL library */#undef QT_DLL#define Q_EXPORT  __declspec(dllexport)#define Q_TEMPLATEDLL#undef  Q_DISABLE_COPY		/* avoid unresolved externals */#endif#endif#if defined(QT_DLL)		/* use a Qt DLL library */#define Q_EXPORT  __declspec(dllimport)#define Q_TEMPLATEDLL#undef  Q_DISABLE_COPY		/* avoid unresolved externals */#endif#else // ! _OS_WIN32_#undef QT_MAKEDLL		/* ignore these for other platforms */#undef QT_DLL#endif#ifndef Q_EXPORT#define Q_EXPORT#endif//// System information//Q_EXPORT const char *qVersion();Q_EXPORT bool qSysInfo( int *wordSize, bool *bigEndian );//// Debugging and error handling//#if !defined(NO_CHECK)#define CHECK_STATE				// check state of objects etc.#define CHECK_RANGE				// check range of indexes etc.#define CHECK_NULL				// check null pointers#define CHECK_MATH				// check math functions#endif#if !defined(NO_DEBUG) && !defined(DEBUG)#define DEBUG					// display debug messages#endif//// Avoid some particularly useless warnings from some stupid compilers.// To get ALL C++ compiler warnings, define CC_WARNINGS or comment out// the line "#define Q_NO_WARNINGS"//#if !defined(CC_WARNINGS)#define Q_NO_WARNINGS#endif#if defined(Q_NO_WARNINGS)#if defined(_CC_MSVC_)#pragma warning(disable: 4244)#pragma warning(disable: 4275)#pragma warning(disable: 4514)#pragma warning(disable: 4800)#pragma warning(disable: 4097)#pragma warning(disable: 4706)#elif defined(_CC_BOR_)#pragma option -w-inl#pragma option -w-aus#pragma warn -inl#pragma warn -pia#pragma warn -ccc#pragma warn -rch#pragma warn -sig#elif defined(_CC_MWERKS_)#pragma warn_possunwant off#endif#endif // Q_NO_WARNINGS//// Avoid dead code//#if defined(_CC_EDG_) || defined(_CC_WAT_) || defined(_CC_USLC_)#define Q_NO_DEAD_CODE#endif//// Use to avoid "unused parameter" warnings//#define Q_UNUSED(x) x=x;#define Q_CONST_UNUSED(x) (void)x;Q_EXPORT void qDebug( const char *, ... )	// print debug message#if defined(_CC_GNU_) && !defined(__INSURE__)    __attribute__ ((format (printf, 1, 2)))#endif;Q_EXPORT void qWarning( const char *, ... )	// print warning message#if defined(_CC_GNU_) && !defined(__INSURE__)    __attribute__ ((format (printf, 1, 2)))#endif;Q_EXPORT void qFatal( const char *, ... )	// print fatal message and exit#if defined(_CC_GNU_)    __attribute__ ((format (printf, 1, 2)))#endif;// QT_CLEAN_NAMESPACE is not defined by default; it would break too// much code.#if !defined(QT_CLEAN_NAMESPACE)// in that case, also define the old ones...Q_EXPORT void debug( const char *, ... )	// print debug message#if defined(_CC_GNU_) && !defined(__INSURE__)    __attribute__ ((format (printf, 1, 2)))#endif;Q_EXPORT void warning( const char *, ... )	// print warning message#if defined(_CC_GNU_) && !defined(__INSURE__)    __attribute__ ((format (printf, 1, 2)))#endif;Q_EXPORT void fatal( const char *, ... )	// print fatal message and exit#if defined(_CC_GNU_) && !defined(__INSURE__)    __attribute__ ((format (printf, 1, 2)))#endif;// okay, that was debug()/warning()/fatal()#endif#if !defined(ASSERT)#if defined(CHECK_STATE)#if defined(QT_FATAL_ASSERT)#define ASSERT(x)  ((x) ? (void)0 : qFatal("ASSERT: \"%s\" in %s (%d)",#x,__FILE__,__LINE__))#else#define ASSERT(x)  ((x) ? (void)0 : qWarning("ASSERT: \"%s\" in %s (%d)",#x,__FILE__,__LINE__))#endif#else#define ASSERT(x)#endif#endifQ_EXPORT bool qt_check_pointer( bool c, const char *, int );#if defined(CHECK_NULL)#define CHECK_PTR(p) (qt_check_pointer((p)==0,__FILE__,__LINE__))#else#define CHECK_PTR(p)#endifenum QtMsgType { QtDebugMsg, QtWarningMsg, QtFatalMsg };typedef void (*msg_handler)(QtMsgType, const char *);Q_EXPORT msg_handler qInstallMsgHandler( msg_handler );Q_EXPORT void qSuppressObsoleteWarnings( bool = TRUE );#if !defined(QT_REJECT_OBSOLETE)#define QT_OBSOLETEQ_EXPORT void qObsolete( const char *obj, const char *oldfunc,			 const char *newfunc );Q_EXPORT void qObsolete( const char *obj, const char *oldfunc );Q_EXPORT void qObsolete( const char *message );#endif#endif // QGLOBAL_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -