1
|
1 module qt.QGlobal;
|
|
2
|
|
3 public import qt.qtd.Str;
|
|
4
|
|
5 version (Tango)
|
|
6 {
|
|
7 import tango.io.Stdout;
|
|
8 void writeln(string s)
|
|
9 {
|
|
10 Stdout(s).newline;
|
|
11 }
|
|
12 }
|
|
13 else
|
|
14 import std.stdio;
|
|
15
|
|
16 template QT_BEGIN_NAMESPACE() {
|
|
17 }
|
|
18
|
|
19 template QT_END_NAMESPACE() {
|
|
20 }
|
|
21
|
|
22 template QT_BEGIN_HEADER() {
|
|
23 }
|
|
24
|
|
25 template QT_END_HEADER() {
|
|
26 }
|
|
27
|
|
28 mixin QT_BEGIN_HEADER;
|
|
29 mixin QT_BEGIN_NAMESPACE;
|
|
30
|
125
|
31 extern(C) void __qtd_dummy() {}
|
|
32
|
|
33 version(cpp_shared)
|
1
|
34 {
|
|
35 extern (C) void __qtd_qtd_core_initCallBacks(void* toUtf8, void* dummy);
|
|
36 static this() {
|
125
|
37 __qtd_qtd_core_initCallBacks(&_d_toUtf8, &__qtd_dummy);
|
1
|
38 }
|
|
39 }
|
|
40
|
|
41 char[] tr(char[] arg) {
|
|
42 return arg;
|
|
43 }
|
|
44
|
|
45 // TODO(katrina) get this from the C++ side
|
|
46 const char[] QT_VERSION_STR = "4.5.0";
|
|
47 /*
|
|
48 QT_VERSION is (major << 16) + (minor << 8) + patch.
|
|
49 //TODO(katrina) get this from the C++ side
|
|
50 */
|
|
51 const int QT_VERSION = 0x040403;
|
|
52 /*
|
|
53 can be used like #if (QT_VERSION >= QT_VERSION_CHECK(4, 4, 0))
|
|
54 */
|
|
55 bool QT_VERSION_CHECK( ushort major, ushort minor, ushort patch )
|
|
56 {
|
|
57 return cast(bool)((major<<16)|(minor<<8)|(patch));
|
|
58 }
|
|
59 //TODO(katrina) get this from the C++ side
|
|
60 const char[] QT_PACKAGEDATE_STR = "2008-09-27";
|
|
61 //TODO(katrina) get this from the C++ side
|
|
62 const char[] QT_PACKAGE_TAG = "gc9953de622c6a0f655322e0d9f5bd6dc2803b470";
|
|
63
|
|
64 /*
|
|
65 Size-dependent types (architechture-dependent byte order)
|
|
66
|
|
67 Make sure to update QMetaType when changing these typedefs
|
|
68 */
|
|
69
|
|
70 alias char qint8; /* 8 bit signed */
|
|
71 alias char quint8; /* 8 bit unsigned */
|
|
72 alias short qint16; /* 16 bit signed */
|
|
73 alias ushort quint16; /* 16 bit unsigned */
|
|
74 alias int qint32; /* 32 bit signed */
|
|
75 alias uint quint32; /* 32 bit unsigned */
|
|
76 alias long qint64; /* 64 bit signed */
|
|
77 alias ulong quint64; /* 64 bit unsigned */
|
|
78
|
39
|
79 version (X86)
|
|
80 {
|
|
81 alias quint32 quintptr;
|
|
82 alias qint32 qptrdiff;
|
|
83 }
|
|
84 else version (X86_64)
|
|
85 {
|
|
86 alias quint64 quintptr;
|
|
87 alias qint64 qptrdiff;
|
|
88 }
|
|
89
|
1
|
90 const byte QT_POINTER_SIZE = 8;
|
|
91
|
|
92 alias int QNoImplicitBoolCast;
|
|
93
|
|
94 alias double qreal;
|
|
95
|
|
96
|
|
97 /*
|
|
98 Utility macros and inline functions
|
|
99 TODO(katrina) see if we need to do anything to make these
|
|
100 able to be evaluated at compile time
|
|
101 */
|
|
102
|
|
103 T qAbs(T)(T t) { return t >= 0 ? t : -t; }
|
|
104
|
|
105 int qRound(qreal d)
|
|
106 { return d >= 0.0 ? cast(int)(d + 0.5) : cast(int)(d - cast(int)(d-1) + 0.5) + cast(int)(d-1); }
|
|
107
|
|
108 qint64 qRound64(qreal d)
|
|
109 { return d >= 0.0 ? cast(qint64)(d + 0.5) : cast(qint64)(d - cast(qint64)(d-1) + 0.5) + cast(qint64)(d-1); }
|
|
110
|
|
111 T qMin(T)(T a,T b) { if (a < b) return a; return b; }
|
|
112 T qMax(T)(T a, T b) { if (a < b) return b; return a; }
|
|
113 T qBound(T)(T min, T val,T max) { return qMax(min, qMin(max, val)); }
|
|
114
|
|
115 /*
|
|
116 Data stream functions are provided by many classes (defined in qdatastream.h)
|
|
117 */
|
|
118
|
|
119 //class QDataStream;
|
|
120
|
|
121 /*
|
|
122 System information
|
|
123 */
|
|
124
|
|
125 class QSysInfo {
|
|
126 public:
|
|
127 enum Sizes {
|
|
128 WordSize = ((void *).sizeof<<3)
|
|
129 };
|
|
130
|
|
131 enum Endian {
|
|
132 BigEndian,
|
|
133 LittleEndian,
|
|
134 ByteOrder = BigEndian
|
|
135 };
|
|
136 /* needed to bootstrap qmake */
|
|
137 static const int ByteOrder;
|
|
138
|
|
139 enum WinVersion {
|
|
140 WV_32s = 0x0001,
|
|
141 WV_95 = 0x0002,
|
|
142 WV_98 = 0x0003,
|
|
143 WV_Me = 0x0004,
|
|
144 WV_DOS_based= 0x000f,
|
|
145
|
|
146 WV_NT = 0x0010,
|
|
147 WV_2000 = 0x0020,
|
|
148 WV_XP = 0x0030,
|
|
149 WV_2003 = 0x0040,
|
|
150 WV_VISTA = 0x0080,
|
|
151 WV_NT_based = 0x00f0,
|
|
152
|
|
153 WV_CE = 0x0100,
|
|
154 WV_CENET = 0x0200,
|
|
155 WV_CE_5 = 0x0300,
|
|
156 WV_CE_6 = 0x0400,
|
|
157 WV_CE_based = 0x0f00
|
|
158 };
|
|
159 static const WinVersion WindowsVersion;
|
|
160 static WinVersion windowsVersion();
|
|
161
|
|
162 enum MacVersion {
|
|
163 MV_Unknown = 0x0000,
|
|
164
|
|
165 /* version */
|
|
166 MV_9 = 0x0001,
|
|
167 MV_10_0 = 0x0002,
|
|
168 MV_10_1 = 0x0003,
|
|
169 MV_10_2 = 0x0004,
|
|
170 MV_10_3 = 0x0005,
|
|
171 MV_10_4 = 0x0006,
|
|
172 MV_10_5 = 0x0007,
|
|
173
|
|
174 /* codenames */
|
|
175 MV_CHEETAH = MV_10_0,
|
|
176 MV_PUMA = MV_10_1,
|
|
177 MV_JAGUAR = MV_10_2,
|
|
178 MV_PANTHER = MV_10_3,
|
|
179 MV_TIGER = MV_10_4,
|
|
180 MV_LEOPARD = MV_10_5
|
|
181 };
|
|
182 static const MacVersion MacintoshVersion;
|
|
183 };
|
|
184
|
|
185 char[] qVersion();
|
|
186 bool qSharedBuild();
|
|
187
|
|
188 int qMacVersion() { return QSysInfo.MacintoshVersion; }
|
|
189
|
|
190 void qUnused(T)(T x) { cast(void) x; }
|
|
191 void Q_UNUSED(T)(T x) { qUnused(x); }
|
|
192
|
|
193 /*
|
|
194 Debugging and error handling
|
|
195 */
|
|
196
|
|
197 //class QString;
|
|
198 //char[] qPrintable(QString string) { string.toLocal8Bit().constData(); }
|
|
199 //TODO(katrina) These should probably actually call into the c++ functions
|
|
200 void qDebug( char[] str ) /* print debug message */
|
|
201 { writeln(str); }
|
|
202
|
|
203 extern (C) void Qt_qWarning( char * );
|
|
204
|
|
205 void qWarning(char[] str) /* print warning message */
|
|
206 { writeln(str); }
|
|
207
|
|
208 //QString qt_error_string(int errorCode = -1);
|
|
209 void qCritical(char[] str) /* print critical message */
|
|
210 { writeln(str); }
|
|
211
|
|
212 /*
|
|
213 Forward declarations only.
|
|
214
|
|
215 In order to use the qDebug() stream, you must #include<QDebug>
|
|
216 */
|
|
217 //class QDebug;
|
|
218 //class QNoDebug;
|
|
219 //QDebug qDebug();
|
|
220 //QDebug qWarning();
|
|
221 //QDebug qCritical();
|
|
222
|
|
223 void qt_noop() {}
|
|
224 //TODO(katrina) Implement these
|
|
225 void qt_assert(char[] assertion, char[] file, int line);
|
|
226
|
|
227 void qt_assert_x(char[] where, char[] what, char[] file, int line);
|
|
228
|
|
229 void qt_check_pointer(char[], int);
|
|
230
|
|
231 enum QtMsgType { QtDebugMsg, QtWarningMsg, QtCriticalMsg, QtFatalMsg, QtSystemMsg = QtCriticalMsg };
|
|
232
|
|
233 void qt_message_output(QtMsgType, char[] buf);
|
|
234 //class QtMsgHandler;
|
|
235 //QtMsgHandler qInstallMsgHandler(QtMsgHandler);
|
|
236
|
|
237 // forward declaration, since qatomic.h needs qglobal.h
|
|
238 class QBasicAtomicPointer(T);
|
|
239
|
|
240 // POD for Q_GLOBAL_STATIC
|
|
241 class QGlobalStatic(T)
|
|
242 {
|
|
243 public:
|
|
244 QBasicAtomicPointer!(T) pointer;
|
|
245 bool destroyed;
|
|
246 };
|
|
247
|
|
248 // Created as a function-local static to delete a QGlobalStatic<T>
|
|
249 class QGlobalStaticDeleter(T)
|
|
250 {
|
|
251 public:
|
|
252 QGlobalStatic!(T) globalStatic;
|
|
253 this(QGlobalStatic!(T) _globalStatic) {
|
|
254 globalStatic(_globalStatic);
|
|
255 }
|
|
256
|
|
257 ~this()
|
|
258 {
|
|
259 delete globalStatic.pointer;
|
|
260 globalStatic.pointer = 0;
|
|
261 globalStatic.destroyed = true;
|
|
262 }
|
|
263 };
|
|
264
|
|
265 class QBool
|
|
266 {
|
|
267 bool b;
|
|
268
|
|
269 public:
|
|
270 this(bool B) { b = B; }
|
|
271 // void *() const
|
|
272 // { return b ? static_cast<const void *>(this) : static_cast<const void *>(0); }
|
|
273 }
|
|
274
|
|
275 bool qFuzzyCompare(double p1, double p2)
|
|
276 {
|
|
277 return (qAbs(p1 - p2) <= 0.000000000001 * qMin(qAbs(p1), qAbs(p2)));
|
|
278 }
|
|
279
|
|
280 bool qFuzzyCompare(float p1, float p2)
|
|
281 {
|
|
282 return (qAbs(p1 - p2) <= 0.00001f * qMin(qAbs(p1), qAbs(p2)));
|
|
283 }
|
|
284
|
|
285 /*
|
|
286 This function tests a double for a null value. It doesn't
|
|
287 check whether the actual value is 0 or close to 0, but whether
|
|
288 it is binary 0.
|
|
289 */
|
|
290 bool qIsNull(double d)
|
|
291 {
|
|
292 union U {
|
|
293 double d;
|
|
294 quint64 u;
|
|
295 };
|
|
296 U val;
|
|
297 val.d = d;
|
|
298 return val.u == cast(quint64)(0);
|
|
299 }
|
|
300
|
|
301 /*
|
|
302 This function tests a float for a null value. It doesn't
|
|
303 check whether the actual value is 0 or close to 0, but whether
|
|
304 it is binary 0.
|
|
305 */
|
|
306 bool qIsNull(float f)
|
|
307 {
|
|
308 union U {
|
|
309 float f;
|
|
310 quint32 u;
|
|
311 };
|
|
312 U val;
|
|
313 val.f = f;
|
|
314 return val.u == 0u;
|
|
315 }
|
|
316
|
|
317 /*
|
|
318 Compilers which follow outdated template instantiation rules
|
|
319 require a class to have a comparison operator to exist when
|
|
320 a QList of this type is instantiated. It's not actually
|
|
321 used in the list, though. Hence the dummy implementation.
|
|
322 Just in case other code relies on it we better trigger a warning
|
|
323 mandating a real implementation.
|
|
324 */
|
|
325
|
|
326
|
|
327 /*
|
|
328 QTypeInfo - type trait functionality
|
|
329 qIsDetached - data sharing functionality
|
|
330 */
|
|
331
|
|
332 /*
|
|
333 The catch-all template.
|
|
334 */
|
|
335
|
|
336 bool qIsDetached(T)(T) { return true; }
|
|
337
|
|
338 class QTypeInfossss(T)
|
|
339 {
|
|
340 public:
|
|
341 enum {
|
|
342 isPointer = false,
|
|
343 isComplex = true,
|
|
344 isStatic = true,
|
|
345 isLarge = ((T).sizeof>(void*).sizeof),
|
|
346 isDummy = false
|
|
347 };
|
|
348 };
|
|
349
|
|
350 class QTypeInfo(T)
|
|
351 {
|
|
352 public:
|
|
353 enum {
|
|
354 isPointer = true,
|
|
355 isComplex = false,
|
|
356 isStatic = false,
|
|
357 isLarge = false,
|
|
358 isDummy = false
|
|
359 };
|
|
360 };
|
|
361
|
|
362
|
|
363 /*
|
|
364 Specialize a specific type with:
|
|
365
|
|
366 Q_DECLARE_TYPEINFO(type, flags);
|
|
367
|
|
368 where 'type' is the name of the type to specialize and 'flags' is
|
|
369 logically-OR'ed combination of the flags below.
|
|
370 */
|
|
371 enum { /* TYPEINFO flags */
|
|
372 Q_COMPLEX_TYPE = 0,
|
|
373 Q_PRIMITIVE_TYPE = 0x1,
|
|
374 Q_STATIC_TYPE = 0,
|
|
375 Q_MOVABLE_TYPE = 0x2,
|
|
376 Q_DUMMY_TYPE = 0x4
|
|
377 };
|
|
378
|
|
379 /*
|
|
380 Specialize a shared type with:
|
|
381
|
|
382 Q_DECLARE_SHARED(type);
|
|
383
|
|
384 where 'type' is the name of the type to specialize. NOTE: shared
|
|
385 types must declare a 'bool isDetached(void) const;' member for this
|
|
386 to work.
|
|
387 */
|
|
388 void qSwap_helper(T)(ref T value1, ref T value2, T*)
|
|
389 {
|
|
390 T t = value1;
|
|
391 value1 = value2;
|
|
392 value2 = t;
|
|
393 }
|
|
394 bool qIsDetached(T)(ref T t) { return t.isDetached(); }
|
|
395 void qSwap_helper(T)(ref T value1, ref T value2, T*)
|
|
396 {
|
|
397 const T.DataPtr t = value1.data_ptr();
|
|
398 value1.data_ptr() = value2.data_ptr();
|
|
399 value2.data_ptr() = t;
|
|
400 }
|
|
401 void qSwap(T)(ref T value1, ref T value2)
|
|
402 {
|
|
403 const T.DataPtr t = value1.data_ptr();
|
|
404 value1.data_ptr() = value2.data_ptr();
|
|
405 value2.data_ptr() = t;
|
|
406 }
|
|
407
|
|
408 /*
|
|
409 QTypeInfo primitive specializations
|
|
410 TODO(katrina) Find out what we need to do here
|
|
411 */
|
|
412 /*
|
|
413 Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE);
|
|
414 Q_DECLARE_TYPEINFO(char, Q_PRIMITIVE_TYPE);
|
|
415 Q_DECLARE_TYPEINFO(signed char, Q_PRIMITIVE_TYPE);
|
|
416 Q_DECLARE_TYPEINFO(uchar, Q_PRIMITIVE_TYPE);
|
|
417 Q_DECLARE_TYPEINFO(short, Q_PRIMITIVE_TYPE);
|
|
418 Q_DECLARE_TYPEINFO(ushort, Q_PRIMITIVE_TYPE);
|
|
419 Q_DECLARE_TYPEINFO(int, Q_PRIMITIVE_TYPE);
|
|
420 Q_DECLARE_TYPEINFO(uint, Q_PRIMITIVE_TYPE);
|
|
421 Q_DECLARE_TYPEINFO(long, Q_PRIMITIVE_TYPE);
|
|
422 Q_DECLARE_TYPEINFO(ulong, Q_PRIMITIVE_TYPE);
|
|
423 Q_DECLARE_TYPEINFO(qint64, Q_PRIMITIVE_TYPE);
|
|
424 Q_DECLARE_TYPEINFO(quint64, Q_PRIMITIVE_TYPE);
|
|
425 Q_DECLARE_TYPEINFO(float, Q_PRIMITIVE_TYPE);
|
|
426 Q_DECLARE_TYPEINFO(double, Q_PRIMITIVE_TYPE);
|
|
427 #ifndef Q_OS_DARWIN
|
|
428 Q_DECLARE_TYPEINFO(long double, Q_PRIMITIVE_TYPE);
|
|
429 #endif
|
|
430 */
|
|
431 /*
|
|
432 These functions make it possible to use standard C++ functions with
|
|
433 a similar name from Qt header files (especially template classes).
|
|
434 TODO(katrina) Implement these
|
|
435 */
|
|
436 void * qMalloc(size_t size);
|
|
437 void qFree(void * ptr);
|
|
438 void * qRealloc(void * ptr, size_t size);
|
|
439 void * qMemCopy(void * dest, void * src, size_t n);
|
|
440 void * qMemSet(void * dest, int c, size_t n);
|
|
441
|
|
442 struct QFlags(Enum)
|
|
443 {
|
|
444 private:
|
|
445 alias void **Zero;
|
|
446 int i;
|
|
447
|
|
448 public:
|
|
449 alias Enum enum_type;
|
|
450
|
|
451 public static QFlags!(Enum) opCall(Enum)(QFlags f) {
|
|
452 QFlags!(Enum) res;
|
|
453 res.i = f.i;
|
|
454 return res;
|
|
455 }
|
|
456
|
|
457 public static QFlags opCall(Enum)(Enum f) {
|
|
458 QFlags!(Enum) res;
|
|
459 res.i = f;
|
|
460 return res;
|
|
461 }
|
|
462
|
|
463 public static QFlags opCall(Enum)(int f) {
|
|
464 QFlags!(Enum) res;
|
|
465 res.i = cast(Enum) f;
|
|
466 return res;
|
|
467 }
|
|
468
|
|
469 // this(Zero = 0) : i(0) {}
|
|
470 // this(QFlag f) : i(f) {}
|
|
471
|
|
472 // QFlags!(Enum) opAssign(QFlags f) { i = f.i; return *this; }
|
|
473 QFlags!(Enum) opAssign(int f) { i = f; return *this; }
|
|
474 QFlags!(Enum) opAndAssign(int mask) { i &= mask; return *this; }
|
|
475 QFlags!(Enum) opAndAssign(uint mask) { i &= mask; return *this; }
|
|
476 QFlags!(Enum) opOrAssign(QFlags f) { i |= f.i; return *this; }
|
|
477 QFlags!(Enum) opOrAssign(Enum f) { i |= f; return *this; }
|
|
478 QFlags!(Enum) opXorAssign(QFlags f) { i ^= f.i; return *this; }
|
|
479 QFlags!(Enum) opXorAssign(Enum f) { i ^= f; return *this; }
|
|
480
|
|
481 int toInt() { return i; }
|
|
482
|
|
483 QFlags!(Enum) opOr(QFlags f) { QFlags g; g.i = i | f.i; return g; }
|
|
484 QFlags!(Enum) opOr(Enum f) { QFlags g; g.i = i | f; return g; }
|
|
485 QFlags!(Enum) opXor(QFlags f) { QFlags g; g.i = i ^ f.i; return g; }
|
|
486 QFlags!(Enum) opXor(Enum f) { QFlags g; g.i = i ^ f; return g; }
|
|
487 QFlags!(Enum) opAnd(int mask) { QFlags g; g.i = i & mask; return g; }
|
|
488 QFlags!(Enum) opAnd(uint mask) { QFlags g; g.i = i & mask; return g; }
|
|
489 QFlags!(Enum) opAnd(Enum f) { QFlags g; g.i = i & f; return g; }
|
|
490 QFlags!(Enum) opCom() { QFlags g; g.i = ~i; return g; }
|
|
491
|
|
492 // bool operator!() { return !i; }
|
|
493
|
|
494 // bool testFlag(Enum f) { return i & f; }
|
|
495 }
|
|
496
|
|
497 /* TODO typesafety
|
|
498 #define Q_DECLARE_FLAGS(Flags, Enum)\
|
|
499 typedef QFlags<Enum> Flags;
|
|
500 #define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags) \
|
|
501 QFlags<Flags::enum_type> operator|(Flags::enum_type f1, Flags::enum_type f2) \
|
|
502 { return QFlags<Flags::enum_type>(f1) | f2; } \
|
|
503 QFlags<Flags::enum_type> operator|(Flags::enum_type f1, QFlags<Flags::enum_type> f2) \
|
|
504 { return f2 | f1; }
|
|
505 */
|
|
506
|
|
507 char[] QT_TR_NOOP(char[] x) { return x; }
|
|
508 char[] QT_TRANSLATE_NOOP(char[] s, char[] x) { return x; }
|
|
509 char[] QT_TRANSLATE_NOOP3(char[] s, char[] x, char[] comment) { return x; }
|
|
510
|
|
511 //class QByteArray;
|
|
512 //QByteArray qgetenv(char[] varName);
|
|
513 //bool qputenv(char[] varName, QByteArray value);
|
|
514
|
|
515 int qIntCast(double f) { return cast(int)(f); }
|
|
516 int qIntCast(float f) { return cast(int)(f); }
|
|
517
|
|
518 /*
|
|
519 Reentrant versions of basic rand() functions for random number generation
|
|
520 */
|
|
521 void qsrand(uint seed);
|
|
522 int qrand();
|
|
523
|
|
524
|
|
525 /*
|
|
526 This gives us the possibility to check which modules the user can
|
|
527 use. These are purely compile time checks and will generate no code.
|
|
528 */
|
|
529
|
|
530 /* Qt modules */
|
|
531
|
|
532 const ushort QT_MODULE_CORE = 0x0001;
|
|
533 const ushort QT_MODULE_GUI = 0x0002;
|
|
534 const ushort QT_MODULE_NETWORK = 0x0004;
|
|
535 const ushort QT_MODULE_OPENGL = 0x0008;
|
|
536 const ushort QT_MODULE_SQL = 0x0010;
|
|
537 const ushort QT_MODULE_XML = 0x0020;
|
|
538 const ushort QT_MODULE_QT3SUPPORTLIGHT = 0x0040;
|
|
539 const ushort QT_MODULE_QT3SUPPORT = 0x0080;
|
|
540 const ushort QT_MODULE_SVG = 0x0100;
|
|
541 const ushort QT_MODULE_ACTIVEQT = 0x0200;
|
|
542 const ushort QT_MODULE_GRAPHICSVIEW = 0x0400;
|
|
543 const ushort QT_MODULE_SCRIPT = 0x0800;
|
|
544 const ushort QT_MODULE_XMLPATTERNS = 0x1000;
|
|
545 const ushort QT_MODULE_HELP = 0x2000;
|
|
546 const ushort QT_MODULE_TEST = 0x4000;
|
|
547 const ushort QT_MODULE_DBUS = 0x8000;
|
|
548
|
|
549 /* Qt editions */
|
|
550
|
|
551 const ushort QT_EDITION_CONSOLE = (QT_MODULE_CORE
|
|
552 | QT_MODULE_NETWORK
|
|
553 | QT_MODULE_SQL
|
|
554 | QT_MODULE_SCRIPT
|
|
555 | QT_MODULE_XML
|
|
556 | QT_MODULE_XMLPATTERNS
|
|
557 | QT_MODULE_TEST
|
|
558 | QT_MODULE_DBUS);
|
|
559 const ushort QT_EDITION_DESKTOPLIGHT = (QT_MODULE_CORE
|
|
560 | QT_MODULE_GUI
|
|
561 | QT_MODULE_QT3SUPPORTLIGHT
|
|
562 | QT_MODULE_TEST
|
|
563 | QT_MODULE_DBUS);
|
|
564 const ushort QT_EDITION_OPENSOURCE = (QT_MODULE_CORE
|
|
565 | QT_MODULE_GUI
|
|
566 | QT_MODULE_NETWORK
|
|
567 | QT_MODULE_OPENGL
|
|
568 | QT_MODULE_SQL
|
|
569 | QT_MODULE_XML
|
|
570 | QT_MODULE_XMLPATTERNS
|
|
571 | QT_MODULE_SCRIPT
|
|
572 | QT_MODULE_QT3SUPPORTLIGHT
|
|
573 | QT_MODULE_QT3SUPPORT
|
|
574 | QT_MODULE_SVG
|
|
575 | QT_MODULE_GRAPHICSVIEW
|
|
576 | QT_MODULE_HELP
|
|
577 | QT_MODULE_TEST
|
|
578 | QT_MODULE_DBUS);
|
|
579 const ushort QT_EDITION_DESKTOP = (QT_EDITION_OPENSOURCE
|
|
580 | QT_MODULE_ACTIVEQT);
|
|
581 const ushort QT_EDITION_UNIVERSAL = QT_EDITION_DESKTOP;
|
|
582 const ushort QT_EDITION_ACADEMIC = QT_EDITION_DESKTOP;
|
|
583 const ushort QT_EDITION_EDUCATIONAL = QT_EDITION_DESKTOP;
|
|
584 const ushort QT_EDITION_EVALUATION = QT_EDITION_DESKTOP;
|
|
585
|
|
586 mixin QT_END_NAMESPACE;
|
|
587 mixin QT_END_HEADER;
|