From f9c30e41d26594598abaa8315c4488b6c5ff38ea Mon Sep 17 00:00:00 2001 From: samelian Date: Sun, 23 Jan 2011 20:11:33 +0000 Subject: [kdevelop] compatibility with QT_NO_ASCII_CAST and automoc git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1216512 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdevdesigner/shared/domtool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kdevdesigner/shared/domtool.cpp') diff --git a/kdevdesigner/shared/domtool.cpp b/kdevdesigner/shared/domtool.cpp index 1696aa52..ef995e44 100644 --- a/kdevdesigner/shared/domtool.cpp +++ b/kdevdesigner/shared/domtool.cpp @@ -184,7 +184,7 @@ TQVariant DomTool::elementToVariant( const TQDomElement& e, const TQVariant& def if ( n.tagName() == "comment" ) comment = n.firstChild().toText().data(); } else if ( e.tagName() == "cstring" ) { - v = TQVariant( TQCString( e.firstChild().toText().data() ) ); + v = TQVariant( TQCString( e.firstChild().toText().data().ascii() ) ); } else if ( e.tagName() == "number" ) { bool ok = TRUE; v = TQVariant( e.firstChild().toText().data().toInt( &ok ) ); -- cgit v1.2.1