Mercurial > projects > qtd
diff generator/typesystem_core-java.java @ 90:ba63040afbf2
wrapping of QBuffer and QProcess, fixed #9
author | eldar |
---|---|
date | Wed, 27 May 2009 13:02:13 +0000 |
parents | d5a6b6269f44 |
children | 39921f499a22 |
line wrap: on
line diff
--- a/generator/typesystem_core-java.java Tue May 26 14:55:13 2009 +0000 +++ b/generator/typesystem_core-java.java Wed May 27 13:02:13 2009 +0000 @@ -113,7 +113,7 @@ protected static QCoreApplication m_instance = null; - this(char[][] args) + this(in string[] args) { // if (m_instance != null) // throw new RuntimeException("QCoreApplication can only be initialized once"); @@ -489,24 +489,13 @@ // retain a reference to avoid gc private Object strongDataReference = null; - - public QBuffer(QByteArray byteArray, QObject parent) { - this(byteArray.nativePointer(), parent); - strongDataReference = byteArray; - } - - public QBuffer(QByteArray byteArray) { - this(byteArray, null); - } - public final void setBuffer(QByteArray byteArray) { - setBuffer(byteArray.nativePointer()); + setBuffer_private(byteArray); strongDataReference = byteArray; } public final void setData(byte data[]) { - QNativePointer np = qt.internal.QtJambiInternal.byteArrayToNativePointer(data); - setData(np, data.length); + setData(cast(char*)data.ptr, data.length); } }// class