# HG changeset patch # User eldar # Date 1242524646 0 # Node ID a5cba313c9245db7894267a56fe12e7c365f2917 # Parent 08631ce8e46a85413c1259db810b51418fd0de60 network and webkit are wrapped now diff -r 08631ce8e46a -r a5cba313c924 CMakeLists.txt --- a/CMakeLists.txt Sat May 16 21:34:54 2009 +0000 +++ b/CMakeLists.txt Sun May 17 01:44:06 2009 +0000 @@ -12,7 +12,7 @@ option(BUILD_EXAMPLES "Build examples" "ON") option(GENERATE_DI_FILES "Generate *.di files with DC -H command" "OFF") -set(all_packages Core Gui OpenGL Xml Svg) ## TODO: Loading. +set(all_packages Core Gui OpenGL Xml Svg Network WebKit) ## TODO: Loading. ## Strip utility. diff -r 08631ce8e46a -r a5cba313c924 Makefile --- a/Makefile Sat May 16 21:34:54 2009 +0000 +++ b/Makefile Sun May 17 01:44:06 2009 +0000 @@ -53,7 +53,7 @@ NAME_PREFIX = qtd endif ifndef $(PACKAGES) -PACKAGES = core gui opengl xml svg +PACKAGES = core gui endif LIB_PREFIX = lib CC_INCLUDE += include $(QTDIR_INC) $(QTDIR_INC)$(SL)Qt $(QTDIR_INC)$(SL)QtCore $(QTDIR_INC)$(SL)QtGui $(QTDIR_INC)$(SL)QtOpenGL $(QTDIR_INC)$(SL)QtSvg @@ -135,7 +135,7 @@ cd generator && qmake && $(MAKE) dgen: make_gen - cd generator && $(GEN) $(GEN_OPT) --d-target=$(D_TARGET) --output-directory=../ qtjambi_masterinclude.h build_svg.txt + cd generator && $(GEN) $(GEN_OPT) --d-target=$(D_TARGET) --output-directory=../ qtjambi_masterinclude.h build_gui.txt ## DGenerator ## end mkdir: diff -r 08631ce8e46a -r a5cba313c924 build/core.makefile --- a/build/core.makefile Sat May 16 21:34:54 2009 +0000 +++ b/build/core.makefile Sun May 17 01:44:06 2009 +0000 @@ -69,4 +69,5 @@ QTextDecoder \ QTimeLine \ QAbstractFactory \ - QAbstractListModel \ No newline at end of file + QAbstractListModel \ + QCryptographicHash \ No newline at end of file diff -r 08631ce8e46a -r a5cba313c924 build/core.txt --- a/build/core.txt Sat May 16 21:34:54 2009 +0000 +++ b/build/core.txt Sun May 17 01:44:06 2009 +0000 @@ -50,5 +50,6 @@ QTimeLine QAbstractFactory QAbstractListModel + QCryptographicHash ) diff -r 08631ce8e46a -r a5cba313c924 build/network.makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build/network.makefile Sun May 17 01:44:06 2009 +0000 @@ -0,0 +1,49 @@ +## Qt Lib name. +qt_network_name = QtNetwork + +## Libraries linked to the cpp part (is active only when CPP_SHARED == true). +network_link_cpp += qtdcore_cpp $(qt_core_lib_name) + +## Libraries linked to the d part (is active only when CPP_SHARED == true).. +network_link_d += qtdcore + +## Module specific cpp files. +network_cpp_files += + +## Module specific d files. +network_d_files += + +## Classes. +## TODO: use list that generated by dgen. +network_classes = \ +ArrayOps \ +QAbstractSocket \ +QAuthenticator \ +QFtp \ +QHostAddress \ +QHostInfo \ +QHttpHeader \ +QHttpRequestHeader \ +QHttpResponseHeader \ +QHttp \ +QIPv6Address \ +QLocalServer \ +QLocalSocket \ +QNetworkAccessManager \ +QNetworkAddressEntry \ +QNetworkCookieJar \ +QNetworkCookie \ +QNetworkInterface \ +QNetworkProxy \ +QNetworkReply \ +QNetworkRequest \ +QSslCertificate \ +QSslCipher \ +QSslConfiguration \ +QSslError \ +QSslKey \ +QSslSocket \ +QTcpServer \ +QTcpSocket \ +QUdpSocket \ +QUrlInfo \ No newline at end of file diff -r 08631ce8e46a -r a5cba313c924 build/network.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build/network.txt Sun May 17 01:44:06 2009 +0000 @@ -0,0 +1,33 @@ +set(required Core) +set(classes + QAbstractSocket + QAuthenticator + QFtp + QHostAddress + QHostInfo + QHttpHeader + QHttpRequestHeader + QHttpResponseHeader + QHttp + QIPv6Address + QLocalServer + QLocalSocket + QNetworkAccessManager + QNetworkAddressEntry + QNetworkCookieJar + QNetworkCookie + QNetworkInterface + QNetworkProxy + QNetworkReply + QNetworkRequest + QSslCertificate + QSslCipher + QSslConfiguration + QSslError + QSslKey + QSslSocket + QTcpServer + QTcpSocket + QUdpSocket + QUrlInfo + ) diff -r 08631ce8e46a -r a5cba313c924 build/opengl.txt --- a/build/opengl.txt Sat May 16 21:34:54 2009 +0000 +++ b/build/opengl.txt Sun May 17 01:44:06 2009 +0000 @@ -10,4 +10,4 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL Windows AND D_IS_MARS) set(link_example opengl32 glu32) install(FILES ${link_example} DESTINATION lib) -endif(${CMAKE_SYSTEM_NAME} STREQUAL Windows AND D_IS_MARS) +endif(${CMAKE_SYSTEM_NAME} STREQUAL Windows AND D_IS_MARS) \ No newline at end of file diff -r 08631ce8e46a -r a5cba313c924 build/webkit.makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build/webkit.makefile Sun May 17 01:44:06 2009 +0000 @@ -0,0 +1,27 @@ +## Qt Lib name. +qt_webkit_name = QtWebkit + +## Libraries linked to the cpp part (is active only when CPP_SHARED == true). +webkit_link_cpp += qtdcore_cpp $(qt_core_lib_name) $(qt_gui_lib_name) $(qt_network_lib_name) + +## Libraries linked to the d part (is active only when CPP_SHARED == true).. +webkit_link_d += qtdcore + +## Module specific cpp files. +webkit_cpp_files += + +## Module specific d files. +webkit_d_files += + +## Classes. +## TODO: use list that generated by dgen. +webkit_classes = \ + ArrayOps \ + QWebFrame \ + QWebHistoryInterface \ + QWebHistoryItem \ + QWebHistory \ + QWebHitTestResult \ + QWebPage \ + QWebSettings \ + QWebView \ No newline at end of file diff -r 08631ce8e46a -r a5cba313c924 build/webkit.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build/webkit.txt Sun May 17 01:44:06 2009 +0000 @@ -0,0 +1,12 @@ +set(required Core Gui Network) + +set(classes + QWebFrame + QWebHistoryInterface + QWebHistoryItem + QWebHistory + QWebHitTestResult + QWebPage + QWebSettings + QWebView + ) \ No newline at end of file diff -r 08631ce8e46a -r a5cba313c924 build/xml.makefile --- a/build/xml.makefile Sat May 16 21:34:54 2009 +0000 +++ b/build/xml.makefile Sun May 17 01:44:06 2009 +0000 @@ -1,5 +1,5 @@ ## Qt Lib name. -qt_svg_name = QtXml +qt_xml_name = QtXml ## Libraries linked to the cpp part (is active only when CPP_SHARED == true). xml_link_cpp += qtdcore_cpp $(qt_core_lib_name) diff -r 08631ce8e46a -r a5cba313c924 changelog.txt --- a/changelog.txt Sat May 16 21:34:54 2009 +0000 +++ b/changelog.txt Sun May 17 01:44:06 2009 +0000 @@ -3,6 +3,8 @@ * lots of bugs fixed * brand new signals implementation by Max Samukha * switch to Qt 4.5 + * support for ldc (both X86 and X86-64) * all imports inside Qt are public to avoid import hell * API dealing with containers is now wrapped - * building system now uses cmake to be crossplatform and more flexible \ No newline at end of file + * building system is now based on CMake to be crossplatform and more flexible + * all classes from Gui, OpenGL, Xml, Svg, Network and Webkit packages are wrapped \ No newline at end of file diff -r 08631ce8e46a -r a5cba313c924 generator/abstractmetalang.cpp --- a/generator/abstractmetalang.cpp Sat May 16 21:34:54 2009 +0000 +++ b/generator/abstractmetalang.cpp Sun May 17 01:44:06 2009 +0000 @@ -2024,6 +2024,7 @@ m_instance->data["out"] = "_out"; m_instance->data["scope"] = "_scope"; m_instance->data["default"] = "_default"; + m_instance->data["body"] = "_body"; } QString ArgumentReplace::translate(QString arg) diff -r 08631ce8e46a -r a5cba313c924 generator/cppimplgenerator.cpp --- a/generator/cppimplgenerator.cpp Sat May 16 21:34:54 2009 +0000 +++ b/generator/cppimplgenerator.cpp Sun May 17 01:44:06 2009 +0000 @@ -943,7 +943,7 @@ s << d_name + "_ConcreteWrapper" + QString(d_type->indirections(),'*'); } else - s << translateType(d_type, EnumAsInts); + s << translateType(d_type, EnumAsInts, d_export); } else s << "void*"; @@ -3190,6 +3190,7 @@ cls_name.remove("_ConcreteWrapper"); s << endl + << INDENT << "{" << endl // qtd2 hack, additional scope for avoiding duplicating of "i" << INDENT; switch (type->type()) { @@ -3235,7 +3236,8 @@ s << INDENT << "qtd_assign_" << cls_name << "_array_element(" << java_name << ", i, __java_tmp);" << endl; s << INDENT << "++i;" << endl; } - s << INDENT << "}" << endl; + s << INDENT << "}" << endl + << INDENT << "}" << endl; } else if (type->type() == ContainerTypeEntry::PairContainer) { QList args = java_type->instantiations(); @@ -3651,7 +3653,10 @@ || java_type->isTargetLangChar()) { return d_name; } else if (java_type->isArray()) { - return java_type->arrayElementType()->name() + "*"; + if (d_export) + return java_type->arrayElementType()->name() + "*"; + else + return java_type->arrayElementType()->typeEntry()->qualifiedCppName() + "*"; } else if (java_type->isIntegerEnum() || java_type->isIntegerFlags() || ((option & EnumAsInts) && (java_type->isEnum() || java_type->isFlags()))) { return "int"; diff -r 08631ce8e46a -r a5cba313c924 generator/dgenerator.cpp --- a/generator/dgenerator.cpp Sat May 16 21:34:54 2009 +0000 +++ b/generator/dgenerator.cpp Sun May 17 01:44:06 2009 +0000 @@ -72,7 +72,7 @@ << "signed short" << "Array" << "GLuint" << "GLenum" << "GLint" << "unsigned long" << "ulong" << "long" << "QByteRef" << "QStringList" << "QList" << "QVector" << "QPair" - << "QSet" << "QStringRef"; + << "QSet" << "QStringRef" << "quintptr"; } QString DGenerator::fileNameForClass(const AbstractMetaClass *d_class) const @@ -1831,7 +1831,7 @@ if (!m_isRecursive) s << "module " << d_class->package() << "." << d_class->name() <<";" << endl << endl; - +/* s << "// some type info" << endl; QString hasVirtuals = d_class->hasVirtualFunctions() ? "has" : "doesn't have"; QString isFinal = d_class->isFinal() ? "is" : "is not"; @@ -1844,7 +1844,7 @@ << "// " << d_class->hasProtectedFunctions() << endl << "// " << d_class->hasFieldAccessors() << endl << "// " << d_class->typeEntry()->isObject() << endl; - +*/ const ComplexTypeEntry *ctype = d_class->typeEntry(); if (!ctype->addedTo.isEmpty() && !m_isRecursive) { diff -r 08631ce8e46a -r a5cba313c924 generator/typesystem_core.xml --- a/generator/typesystem_core.xml Sat May 16 21:34:54 2009 +0000 +++ b/generator/typesystem_core.xml Sun May 17 01:44:06 2009 +0000 @@ -104,7 +104,7 @@ - + @@ -1939,13 +1939,13 @@ - + diff -r 08631ce8e46a -r a5cba313c924 generator/typesystem_network-common.xml --- a/generator/typesystem_network-common.xml Sat May 16 21:34:54 2009 +0000 +++ b/generator/typesystem_network-common.xml Sun May 17 01:44:06 2009 +0000 @@ -3,7 +3,9 @@ + + @@ -35,6 +37,29 @@ + + + + + + + + + + + + + + + + + + + + + + + @@ -56,6 +81,16 @@ + + + + + + + + + + diff -r 08631ce8e46a -r a5cba313c924 generator/typesystem_network-java.java --- a/generator/typesystem_network-java.java Sat May 16 21:34:54 2009 +0000 +++ b/generator/typesystem_network-java.java Sun May 17 01:44:06 2009 +0000 @@ -1,37 +1,38 @@ /**************************************************************************** ** -** Copyright (C) 1992-2008 Nokia. All rights reserved. +** Copyright (C) 1992-2009 Nokia. All rights reserved. ** ** This file is part of Qt Jambi. ** -** * Commercial Usage -* Licensees holding valid Qt Commercial licenses may use this file in -* accordance with the Qt Commercial License Agreement provided with the -* Software or, alternatively, in accordance with the terms contained in -* a written agreement between you and Nokia. -* -* -* GNU General Public License Usage -* Alternatively, this file may be used under the terms of the GNU -* General Public License versions 2.0 or 3.0 as published by the Free -* Software Foundation and appearing in the file LICENSE.GPL included in -* the packaging of this file. Please review the following information -* to ensure GNU General Public Licensing requirements will be met: -* http://www.fsf.org/licensing/licenses/info/GPLv2.html and -* http://www.gnu.org/copyleft/gpl.html. In addition, as a special -* exception, Nokia gives you certain additional rights. These rights -* are described in the Nokia Qt GPL Exception version 1.2, included in -* the file GPL_EXCEPTION.txt in this package. -* -* Qt for Windows(R) Licensees -* As a special exception, Nokia, as the sole copyright holder for Qt -* Designer, grants users of the Qt/Eclipse Integration plug-in the -* right for the Qt/Eclipse Integration to link to functionality -* provided by Qt Designer and its related libraries. -* -* -* If you are unsure which license is appropriate for your use, please -* contact the sales department at qt-sales@nokia.com. +** Commercial Usage +Licensees holding valid Qt Commercial licenses may use this file in +accordance with the Qt Commercial License Agreement provided with the +Software or, alternatively, in accordance with the terms contained in +a written agreement between you and Nokia. + +GNU Lesser General Public License Usage +Alternatively, this file may be used under the terms of the GNU Lesser +General Public License version 2.1 as published by the Free Software +Foundation and appearing in the file LICENSE.LGPL included in the +packaging of this file. Please review the following information to +ensure the GNU Lesser General Public License version 2.1 requirements +will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. + +In addition, as a special exception, Nokia gives you certain +additional rights. These rights are described in the Nokia Qt LGPL +Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this +package. + +GNU General Public License Usage +Alternatively, this file may be used under the terms of the GNU +General Public License version 3.0 as published by the Free Software +Foundation and appearing in the file LICENSE.GPL included in the +packaging of this file. Please review the following information to +ensure the GNU General Public License version 3.0 requirements will be +met: http://www.gnu.org/copyleft/gpl.html. + +If you are unsure which license is appropriate for your use, please +contact the sales department at qt-sales@nokia.com. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE @@ -41,8 +42,8 @@ package generator; -import qt.*; -import qt.network.*; +import com.trolltech.qt.*; +import com.trolltech.qt.network.*; class QHostInfo___ extends QHostInfo { /** @@ -56,10 +57,10 @@ * @param receiver The object on which the method will be called. * @param methodName The name of a method which takes a single QHostInfo argument. */ - public static int lookupHost(String name, qt.core.QObject receiver, String methodName) + public static int lookupHost(String name, com.trolltech.qt.core.QObject receiver, String methodName) { - methodName = qt.internal.QtJambiInternal.SlotPrefix + methodName + "(QHostInfo)"; - return lookupHost(name, receiver, qt.QNativePointer.createCharPointer(methodName)); + methodName = com.trolltech.qt.internal.QtJambiInternal.SlotPrefix + methodName + "(QHostInfo)"; + return lookupHost(name, receiver, com.trolltech.qt.QNativePointer.createCharPointer(methodName)); } /** @@ -74,16 +75,16 @@ * argument, and must be contained in a QObject * subclass. */ - public static int lookupHost(String name, qt.QSignalEmitter.Signal1 signal) + public static int lookupHost(String name, com.trolltech.qt.QSignalEmitter.Signal1 signal) { - if (!(signal.containingObject() instanceof qt.core.QObject)) { + if (!(signal.containingObject() instanceof com.trolltech.qt.core.QObject)) { throw new IllegalArgumentException("Only signals contained in QObject subclasses are supported. " + "Signal's class is '" + signal.containingObject().getClass() + "'."); } - String methodName = qt.internal.QtJambiInternal.SignalPrefix + signal.name() + "(QHostInfo)"; - return lookupHost(name, (qt.core.QObject)signal.containingObject(), - qt.QNativePointer.createCharPointer(methodName)); + String methodName = com.trolltech.qt.internal.QtJambiInternal.SignalPrefix + signal.name() + "(QHostInfo)"; + return lookupHost(name, (com.trolltech.qt.core.QObject)signal.containingObject(), + com.trolltech.qt.QNativePointer.createCharPointer(methodName)); } }// class @@ -108,11 +109,11 @@ } } - public final void connectToHost(String host, int port, qt.core.QIODevice.OpenMode mode) { + public final void connectToHost(String host, int port, com.trolltech.qt.core.QIODevice.OpenMode mode) { connectToHost(host, (char) port, mode); } - public final void connectToHost(String host, int port, qt.core.QIODevice.OpenModeFlag ... mode) { + public final void connectToHost(String host, int port, com.trolltech.qt.core.QIODevice.OpenModeFlag ... mode) { connectToHost(host, (char) port, mode); } @@ -120,11 +121,11 @@ connectToHost(host, (char) port); } - public final void connectToHost(QHostAddress host, int port, qt.core.QIODevice.OpenMode mode) { + public final void connectToHost(QHostAddress host, int port, com.trolltech.qt.core.QIODevice.OpenMode mode) { connectToHost(host, (char) port, mode); } - public final void connectToHost(QHostAddress host, int port, qt.core.QIODevice.OpenModeFlag ... mode) { + public final void connectToHost(QHostAddress host, int port, com.trolltech.qt.core.QIODevice.OpenModeFlag ... mode) { connectToHost(host, (char) port, mode); } @@ -133,11 +134,11 @@ connectToHost(host, (char) port); } - protected void connectToHostImplementation(String host, int port, qt.core.QIODevice.OpenMode mode) { + protected void connectToHostImplementation(String host, int port, com.trolltech.qt.core.QIODevice.OpenMode mode) { connectToHostImplementation(host, (char) port, mode); } - protected void connectToHostImplementation(String host, int port, qt.core.QIODevice.OpenModeFlag ... mode) { + protected void connectToHostImplementation(String host, int port, com.trolltech.qt.core.QIODevice.OpenModeFlag ... mode) { connectToHostImplementation(host, (char) port, mode); } @@ -166,11 +167,11 @@ class QSslSocket___ extends QSslSocket { - protected void connectToHostImplementation(String host, int port, qt.core.QIODevice.OpenMode mode) { + protected void connectToHostImplementation(String host, int port, com.trolltech.qt.core.QIODevice.OpenMode mode) { connectToHostImplementation(host, (char) port, mode); } - protected void connectToHostImplementation(String host, int port, qt.core.QIODevice.OpenModeFlag ... mode) { + protected void connectToHostImplementation(String host, int port, com.trolltech.qt.core.QIODevice.OpenModeFlag ... mode) { connectToHostImplementation(host, (char) port, mode); } @@ -227,11 +228,11 @@ this(hostname, (char) port); } - public QHttp(String hostname, int port, qt.core.QObject parent) { + public QHttp(String hostname, int port, com.trolltech.qt.core.QObject parent) { this(hostname, (char) port, parent); } - public QHttp(java.lang.String hostname, qt.network.QHttp.ConnectionMode mode) { + public QHttp(java.lang.String hostname, com.trolltech.qt.network.QHttp.ConnectionMode mode) { this(hostname, mode, '\0'); } @@ -239,7 +240,7 @@ this(hostname, mode, (char) port); } - public QHttp(String hostname, QHttp.ConnectionMode mode, int port, qt.core.QObject parent) { + public QHttp(String hostname, QHttp.ConnectionMode mode, int port, com.trolltech.qt.core.QObject parent) { this(hostname, mode, (char) port, parent); } @@ -272,7 +273,7 @@ } public final boolean listen() { - return listen(new qt.network.QHostAddress(qt.network.QHostAddress.SpecialAddress.Any)); + return listen(new com.trolltech.qt.network.QHostAddress(com.trolltech.qt.network.QHostAddress.SpecialAddress.Any)); } public final int serverPort() { @@ -355,11 +356,11 @@ } public final int writeDatagram(byte data[], QHostAddress address, int port) { - QNativePointer np = qt.internal.QtJambiInternal.byteArrayToNativePointer(data); + QNativePointer np = com.trolltech.qt.internal.QtJambiInternal.byteArrayToNativePointer(data); return (int) writeDatagram(np, data.length, address, (char) port); } - public final int writeDatagram(qt.core.QByteArray data, QHostAddress address, int port) { + public final int writeDatagram(com.trolltech.qt.core.QByteArray data, QHostAddress address, int port) { return (int) writeDatagram(data, address, (char) port); } diff -r 08631ce8e46a -r a5cba313c924 generator/typesystem_network-java.xml --- a/generator/typesystem_network-java.xml Sat May 16 21:34:54 2009 +0000 +++ b/generator/typesystem_network-java.xml Sun May 17 01:44:06 2009 +0000 @@ -1,5 +1,5 @@ - + qt.Utilities.loadQtLibrary("QtNetwork"); diff -r 08631ce8e46a -r a5cba313c924 generator/typesystem_network.xml --- a/generator/typesystem_network.xml Sat May 16 21:34:54 2009 +0000 +++ b/generator/typesystem_network.xml Sun May 17 01:44:06 2009 +0000 @@ -1,5 +1,5 @@ - + qt.Utilities.loadQtLibrary("QtNetwork"); @@ -18,7 +18,9 @@ + + @@ -50,8 +52,31 @@ + + + + + + + + + + + + + + + + + + + + + + + - + + + + + - + - + - + - + - + - + - + - + - + + + + + - + + + + + + + + + + + - - + + + + + @@ -280,11 +326,11 @@ - + @@ -305,7 +351,7 @@ - + @@ -360,16 +406,23 @@ + + + - + + + + diff -r 08631ce8e46a -r a5cba313c924 generator/typesystem_webkit-java.xml --- a/generator/typesystem_webkit-java.xml Sat May 16 21:34:54 2009 +0000 +++ b/generator/typesystem_webkit-java.xml Sun May 17 01:44:06 2009 +0000 @@ -1,5 +1,5 @@ - + qt.Utilities.loadQtLibrary("QtGui"); qt.Utilities.loadQtLibrary("QtNetwork"); diff -r 08631ce8e46a -r a5cba313c924 generator/typesystem_webkit.xml --- a/generator/typesystem_webkit.xml Sat May 16 21:34:54 2009 +0000 +++ b/generator/typesystem_webkit.xml Sun May 17 01:44:06 2009 +0000 @@ -1,5 +1,5 @@ - + qt.Utilities.loadQtLibrary("QtGui"); qt.Utilities.loadQtLibrary("QtNetwork"); @@ -34,12 +34,13 @@ - + diff -r 08631ce8e46a -r a5cba313c924 qt/QGlobal.d --- a/qt/QGlobal.d Sat May 16 21:34:54 2009 +0000 +++ b/qt/QGlobal.d Sun May 17 01:44:06 2009 +0000 @@ -75,6 +75,17 @@ alias long qint64; /* 64 bit signed */ alias ulong quint64; /* 64 bit unsigned */ +version (X86) +{ + alias quint32 quintptr; + alias qint32 qptrdiff; +} +else version (X86_64) +{ + alias quint64 quintptr; + alias qint64 qptrdiff; +} + const byte QT_POINTER_SIZE = 8; alias int QNoImplicitBoolCast;