summaryrefslogtreecommitdiffstats
path: root/pyuic2
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-05-24 23:28:08 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-05-24 23:28:08 +0900
commit989e3c1dc427142cfa8ff7f718ec7eb12a13c12f (patch)
treeb2f5a2ae940b9a7ca5a78a81da5b1c6e3befe2bf /pyuic2
parentae59056eb2dcf9a20c2935e869150aca386d27f1 (diff)
downloadpytqt-989e3c1d.tar.gz
pytqt-989e3c1d.zip
Adjusted to latest TQVariant::TQVariant(bool) function.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'pyuic2')
-rw-r--r--pyuic2/domtool.cpp2
-rw-r--r--pyuic2/uic.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/pyuic2/domtool.cpp b/pyuic2/domtool.cpp
index 108844e..8a0cff2 100644
--- a/pyuic2/domtool.cpp
+++ b/pyuic2/domtool.cpp
@@ -165,7 +165,7 @@ TQVariant DomTool::elementToVariant( const TQDomElement& e, const TQVariant& def
v = TQVariant( e.firstChild().toText().data().toInt() );
} else if ( e.tagName() == "bool" ) {
TQString t = e.firstChild().toText().data();
- v = TQVariant( t == "true" || t == "1", 0 );
+ v = TQVariant( t == "true" || t == "1" );
} else if ( e.tagName() == "pixmap" ) {
v = TQVariant( e.firstChild().toText().data() );
} else if ( e.tagName() == "iconset" ) {
diff --git a/pyuic2/uic.cpp b/pyuic2/uic.cpp
index 58db033..a140ae3 100644
--- a/pyuic2/uic.cpp
+++ b/pyuic2/uic.cpp
@@ -432,7 +432,7 @@ void Uic::createFormImpl( const TQDomElement &e )
TQString page = createObjectImpl( n, objClass, "self" );
TQString label = DomTool::readAttribute( n, "title", "" ).toString();
out << indent << "self.addPage(" << page << ","<< trmacro << "(" << fixString( label ) << "))" << endl;
- TQVariant def( FALSE, 0 );
+ TQVariant def( FALSE );
if ( DomTool::hasAttribute( n, "backEnabled" ) )
out << indent << "self.setBackEnabled(" << page << "," << mkBool( DomTool::readAttribute( n, "backEnabled", def).toBool() ) << ")" << endl;
if ( DomTool::hasAttribute( n, "nextEnabled" ) )