summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qharfbuzz.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-06-14 22:45:39 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-06-14 22:45:39 (GMT)
commit2e3b68b34ddf3b17f7bdae5f67f16ce4a8d44fcc (patch)
tree2fc8e0e36f172d3e0d6d8d30e8252e7afc1636d6 /src/corelib/tools/qharfbuzz.cpp
parent47249ef4ccf8014f5252a37252fc76a326e7818c (diff)
parent59217893681ec3412f8c4ae5841e6dcd68b374f6 (diff)
downloadQt-2e3b68b34ddf3b17f7bdae5f67f16ce4a8d44fcc.zip
Qt-2e3b68b34ddf3b17f7bdae5f67f16ce4a8d44fcc.tar.gz
Qt-2e3b68b34ddf3b17f7bdae5f67f16ce4a8d44fcc.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-s60-public into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/qt-s60-public: Fix issues with thai line breaking
Diffstat (limited to 'src/corelib/tools/qharfbuzz.cpp')
-rw-r--r--src/corelib/tools/qharfbuzz.cpp34
1 files changed, 2 insertions, 32 deletions
diff --git a/src/corelib/tools/qharfbuzz.cpp b/src/corelib/tools/qharfbuzz.cpp
index 1b6d334..9166a14 100644
--- a/src/corelib/tools/qharfbuzz.cpp
+++ b/src/corelib/tools/qharfbuzz.cpp
@@ -102,45 +102,15 @@ HB_UChar16 HB_GetMirroredChar(HB_UChar16 ch)
return QChar::mirroredChar(ch);
}
-void *HB_Library_Resolve(const char *library, const char *symbol)
+void *HB_Library_Resolve(const char *library, int version, const char *symbol)
{
#ifdef QT_NO_LIBRARY
return 0;
#else
- return QLibrary::resolve(QLatin1String(library), symbol);
+ return QLibrary::resolve(QLatin1String(library), version, symbol);
#endif
}
-void *HB_TextCodecForMib(int mib)
-{
-#ifndef QT_NO_TEXTCODEC
- return QTextCodec::codecForMib(mib);
-#else
- return 0;
-#endif
-}
-
-char *HB_TextCodec_ConvertFromUnicode(void *codec, const HB_UChar16 *unicode, hb_uint32 length, hb_uint32 *outputLength)
-{
-#ifndef QT_NO_TEXTCODEC
- QByteArray data = reinterpret_cast<QTextCodec *>(codec)->fromUnicode((const QChar *)unicode, length);
- // ### suboptimal
- char *output = (char *)malloc(data.length() + 1);
- Q_CHECK_PTR(output);
- memcpy(output, data.constData(), data.length() + 1);
- if (outputLength)
- *outputLength = data.length();
- return output;
-#else
- return 0;
-#endif
-}
-
-void HB_TextCodec_FreeResult(char *string)
-{
- free(string);
-}
-
} // extern "C"
QT_BEGIN_NAMESPACE