diff options
author | Michele Calgaro <[email protected]> | 2023-01-04 11:15:00 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-01-04 16:37:05 +0900 |
commit | d31a084fc83d47eef6c6eb3aac76989da9692853 (patch) | |
tree | 2a412325bd788cd505bb5cdad90ac498a004e405 /pyuic3/object.cpp | |
parent | 30954661009ddfb9db2e9daed3bfbd594bb20441 (diff) | |
download | pytqt-d31a084fc83d47eef6c6eb3aac76989da9692853.tar.gz pytqt-d31a084fc83d47eef6c6eb3aac76989da9692853.zip |
Use utf8 instead of latin1/ascii as default. Address pyuic compatibility with python3.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'pyuic3/object.cpp')
-rw-r--r-- | pyuic3/object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyuic3/object.cpp b/pyuic3/object.cpp index 5ee2b73..1b7232f 100644 --- a/pyuic3/object.cpp +++ b/pyuic3/object.cpp @@ -247,7 +247,7 @@ TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentCla TQString page = createObjectImpl( n, objClass, fullObjName ); TQString comment; TQString label = DomTool::readAttribute( n, "title", "", comment ).toString(); - out << indent << fullObjName << ".insertTab(" << page << ",TQString.fromLatin1(\"\"))" << endl; + out << indent << fullObjName << ".insertTab(" << page << ",TQString.fromUtf8(\"\"))" << endl; trout << trindent << fullObjName << ".changeTab(" << page << "," << trcall( label, comment ) << ")" << endl; } } @@ -265,7 +265,7 @@ TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentCla TQString page = createObjectImpl( n, objClass, fullObjName ); TQString comment; TQString label = DomTool::readAttribute( n, "label", "", comment ).toString(); - out << indent << fullObjName << ".addItem(" << page << ",TQString.fromLatin1(\"\"))" << endl; + out << indent << fullObjName << ".addItem(" << page << ",TQString.fromUtf8(\"\"))" << endl; trout << trindent << fullObjName << ".setItemLabel(" << fullObjName << ".indexOf(" << page << ")," << trcall( label, comment ) << ")" << endl; |