diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-05-24 23:28:08 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-05-24 23:28:08 +0900 |
| commit | 989e3c1dc427142cfa8ff7f718ec7eb12a13c12f (patch) | |
| tree | b2f5a2ae940b9a7ca5a78a81da5b1c6e3befe2bf /pyuic3 | |
| parent | ae59056eb2dcf9a20c2935e869150aca386d27f1 (diff) | |
| download | pytqt-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 'pyuic3')
| -rw-r--r-- | pyuic3/domtool.cpp | 2 | ||||
| -rw-r--r-- | pyuic3/form.cpp | 2 | ||||
| -rw-r--r-- | pyuic3/object.cpp | 2 | ||||
| -rw-r--r-- | pyuic3/uic.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/pyuic3/domtool.cpp b/pyuic3/domtool.cpp index 74d024f..740088e 100644 --- a/pyuic3/domtool.cpp +++ b/pyuic3/domtool.cpp @@ -186,7 +186,7 @@ TQVariant DomTool::elementToVariant( const TQDomElement& e, const TQVariant& def v = TQVariant( e.firstChild().toText().data().toDouble() ); } 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/pyuic3/form.cpp b/pyuic3/form.cpp index 3ef0c04..df2636d 100644 --- a/pyuic3/form.cpp +++ b/pyuic3/form.cpp @@ -518,7 +518,7 @@ void Uic::createFormImpl( const TQDomElement &e ) TQString label = DomTool::readAttribute( n, "title", "", comment ).toString(); out << indent << "self.addPage(" << page << ",TQString(\"\"))" << endl; trout << trindent << "self.setTitle(" << page << ","<< trcall( label, comment ) << ")" << 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" ) ) diff --git a/pyuic3/object.cpp b/pyuic3/object.cpp index b4c443b..5ee2b73 100644 --- a/pyuic3/object.cpp +++ b/pyuic3/object.cpp @@ -492,7 +492,7 @@ TQString Uic::setObjectProperty( const TQString& objClass, const TQString& obj, if ( stdset ) v = "%1"; else - v = "TQVariant(%1,0)"; + v = "TQVariant(%1)"; v = v.arg( mkBool( e.firstChild().toText().data() ) ); } else if ( e.tagName() == "pixmap" ) { v = e.firstChild().toText().data(); diff --git a/pyuic3/uic.cpp b/pyuic3/uic.cpp index ea483a4..ac6af9b 100644 --- a/pyuic3/uic.cpp +++ b/pyuic3/uic.cpp @@ -315,7 +315,7 @@ bool Uic::isFrameworkCodeGenerated( const TQDomElement& e ) { TQDomElement n = getObjectProperty( e, "frameworkCode" ); if ( n.attribute("name") == "frameworkCode" && - !DomTool::elementToVariant( n.firstChild().toElement(), TQVariant( TRUE, 0 ) ).toBool() ) + !DomTool::elementToVariant( n.firstChild().toElement(), TQVariant( TRUE ) ).toBool() ) return FALSE; return TRUE; } |
