diff options
Diffstat (limited to 'kdejava/koala/kdejava/KDESupport.cpp')
-rw-r--r-- | kdejava/koala/kdejava/KDESupport.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kdejava/koala/kdejava/KDESupport.cpp b/kdejava/koala/kdejava/KDESupport.cpp index 1cf06aff..34762034 100644 --- a/kdejava/koala/kdejava/KDESupport.cpp +++ b/kdejava/koala/kdejava/KDESupport.cpp @@ -36,12 +36,12 @@ KDESupport::toDOMString(JNIEnv * env, jstring str, DOM::DOMString ** domstring) _jchar_str = env->GetStringChars(str, 0); if (QtSupport::bigEndianUnicode()) { - *domstring = new DOM::DOMString((TQChar *) _jchar_str, env->GetStringLength(str)); + *domstring = new DOM::DOMString((TTQChar *) _jchar_str, env->GetStringLength(str)); } else { -static TQString * temp = 0L; +static TTQString * temp = 0L; if (temp == 0L) { - temp = new TQString(); + temp = new TTQString(); } // Hack to change the big endian unicode in 'str' to little endian in 'temp'. @@ -59,10 +59,10 @@ KDESupport::fromDOMString(JNIEnv * env, DOM::DOMString * domstring) if (QtSupport::bigEndianUnicode()) { return env->NewString((const jchar *) domstring->unicode(), (long) domstring->length()); } else { -static TQString * temp = 0L; +static TTQString * temp = 0L; if (temp == 0L) { - temp = new TQString(); + temp = new TTQString(); } // Hack to change the big endian unicode in 'qstring' to little endian in 'temp'. @@ -176,8 +176,8 @@ KDESupport::toKCmdLineOptions(JNIEnv * env, jobjectArray optionsArray) return cmdLineOptions; } -TQByteArray * -KDESupport::toQByteArrayFromStream(JNIEnv * env, TQByteArray * qbyteArray, jobject byteStream) +TTQByteArray * +KDESupport::toTQByteArrayFromStream(JNIEnv * env, TTQByteArray * qbyteArray, jobject byteStream) { jclass cls; jmethodID toByteArrayMid; @@ -194,11 +194,11 @@ KDESupport::toQByteArrayFromStream(JNIEnv * env, TQByteArray * qbyteArray, jobje } byteArray = (jbyteArray) env->CallObjectMethod(byteStream, toByteArrayMid); - return QtSupport::toQByteArray(env, byteArray, &qbyteArray); + return QtSupport::toTQByteArray(env, byteArray, &qbyteArray); } jobject -KDESupport::arrayWithQCStringList(JNIEnv * env, QCStringList * qcstringList) +KDESupport::arrayWithTQCStringList(JNIEnv * env, TQCStringList * qcstringList) { jobject objectArray; jclass cls; @@ -220,14 +220,14 @@ KDESupport::arrayWithQCStringList(JNIEnv * env, QCStringList * qcstringList) return NULL; } - QCStringList::Iterator it; + TQCStringList::Iterator it; for (it = qcstringList->begin(); it != qcstringList->end(); ++it) { - TQCString currentQCString = (TQCString) *it; + TTQCString currentTQCString = (TTQCString) *it; if (! env->CallBooleanMethod( objectArray, addMid, - env->NewStringUTF(currentQCString.data()) ) ) + env->NewStringUTF(currentTQCString.data()) ) ) { return NULL; } @@ -281,7 +281,7 @@ KDESupport::arrayWithOfferList(JNIEnv * env, KTrader::OfferList * offerList) } jobject -KDESupport::arrayWithKMainWindowList(JNIEnv * env, TQPtrList<KMainWindow>* memberList) +KDESupport::arrayWithKMainWindowList(JNIEnv * env, TTQPtrList<KMainWindow>* memberList) { jobject objectArray; jclass cls; @@ -502,16 +502,16 @@ KDESupport::arrayWithMediaList(JNIEnv * env, DOM::MediaList * mediaList) return (jobject) objectArray; } -QCStringList * -KDESupport::toQCStringList(JNIEnv * env, jobjectArray stringList, QCStringList ** qstringList) +TTQCStringList * +KDESupport::toTQCStringList(JNIEnv * env, jobjectArray stringList, TQCStringList ** qstringList) { int length; int index; jstring jstr; - static TQCString * _qstring_temp = 0; + static TTQCString * _qstring_temp = 0; if (*qstringList == 0) { - *qstringList = new QCStringList(); + *qstringList = new TQCStringList(); } (*qstringList)->clear(); @@ -523,7 +523,7 @@ KDESupport::toQCStringList(JNIEnv * env, jobjectArray stringList, QCStringList * length = env->GetArrayLength(stringList); for (index = 0; index < length; index++) { jstr = (jstring) env->GetObjectArrayElement(stringList, index); - (*qstringList)->append((TQCString &) * (TQCString *) QtSupport::toQCString(env, jstr, &_qstring_temp)); + (*qstringList)->append((TTQCString &) * (TTQCString *) QtSupport::toTQCString(env, jstr, &_qstring_temp)); env->DeleteLocalRef(jstr); } |