void
QMacInputContext::createTextDocument()
{
    if(!textDocument) {
        InterfaceTypeList itl = { kUnicodeDocument };
        NewTSMDocument(1, itl, &textDocument, SRefCon(this));
    }
}
void
QMacInputContext::createTextDocument()
{
#ifndef QT_MAC_USE_COCOA
    if(!textDocument) {
        InterfaceTypeList itl = { kUnicodeDocument };
        NewTSMDocument(1, itl, &textDocument, SRefCon(this));
    }
#endif
}
Exemple #3
0
void MCScreenDC::openIME()
{
	if (tsmdocument)
		return;
	InterfaceTypeList supportedTypes;
	if (MCS_imeisunicode())
		supportedTypes[0] = kUnicodeDocument;
	else
		supportedTypes[0] = kTextService;
	NewTSMDocument(1, supportedTypes, &tsmdocument, NULL);
}