summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Rossi <rossi.f@inwind.it>2018-11-27 16:40:04 +0100
committerFabio Rossi <rossi.f@inwind.it>2018-11-27 16:40:04 +0100
commit1340cc32351256546e33f07f974fe63fb6c29eaa (patch)
treeb5efc829418df23a285e8bf88b11eae992ba90a5
parent9fd3b6acfa7f8fc347f8678e969c7deeb3ab516b (diff)
downloadtdepim-1340cc32351256546e33f07f974fe63fb6c29eaa.tar.gz
tdepim-1340cc32351256546e33f07f974fe63fb6c29eaa.zip
Use TQString for debugging output with unicode strings
Signed-off-by: Fabio Rossi <rossi.f@inwind.it>
-rw-r--r--ktnef/lib/ktnefparser.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/ktnef/lib/ktnefparser.cpp b/ktnef/lib/ktnefparser.cpp
index 0b374afab..749cb948a 100644
--- a/ktnef/lib/ktnefparser.cpp
+++ b/ktnef/lib/ktnefparser.cpp
@@ -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() );