Use TQString for debugging output with unicode strings

Signed-off-by: Fabio Rossi <rossi.f@inwind.it>
(cherry picked from commit 1340cc3235)
r14.0.x
Fabio Rossi 6 years ago committed by Michele Calgaro
parent 6697c0bf7c
commit 79f912680e
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -855,7 +855,11 @@ bool KTNEFParser::readMAPIProperties( TQMap<int,KTNEFProperty*>& props, KTNEFAtt
kdDebug().form( "(tag=%04x) MAPI time%s: %s\n", mapi.tag, mapiname.ascii(), mapi.value.toString().ascii() );
break;
case MAPI_TYPE_USTRING:
kdDebug().form( "(tag=%04x) MAPI unicode string%s: size=%d \"%s\"\n", mapi.tag, mapiname.ascii(), mapi.value.toByteArray().size(), mapi.value.toString().ascii() );
kdDebug() << TQString( "(tag=%1) MAPI unicode string%2: size=%3 \"%4\"\n" )
.arg( TQString( "%1" ).arg(mapi.tag, 4, 16).replace(" ","0") )
.arg( mapiname )
.arg( mapi.value.toByteArray().size() )
.arg( mapi.value.toString() );
break;
case MAPI_TYPE_STRING8:
kdDebug().form( "(tag=%04x) MAPI string%s: size=%d \"%s\"\n", mapi.tag, mapiname.ascii(), mapi.value.toByteArray().size(), mapi.value.toString().ascii() );

Loading…
Cancel
Save