diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-05-23 22:57:29 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-05-23 22:57:29 +0900 |
commit | cfc76de73cecd5c569cbec280fe8aaa680956df3 (patch) | |
tree | 294561f215a17658f23eac128312542ab30721f1 /tools/designer/uic | |
parent | e9567cacadf2fdc305f3ddbebce43ef395368c51 (diff) | |
download | tqt3-cfc76de73cecd5c569cbec280fe8aaa680956df3.tar.gz tqt3-cfc76de73cecd5c569cbec280fe8aaa680956df3.zip |
Removed dummy int parameter from TQVariant(bool, int).
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tools/designer/uic')
-rw-r--r-- | tools/designer/uic/form.cpp | 2 | ||||
-rw-r--r-- | tools/designer/uic/object.cpp | 2 | ||||
-rw-r--r-- | tools/designer/uic/uic.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tools/designer/uic/form.cpp b/tools/designer/uic/form.cpp index 5c564c9dd..198f2c089 100644 --- a/tools/designer/uic/form.cpp +++ b/tools/designer/uic/form.cpp @@ -1052,7 +1052,7 @@ void Uic::createFormImpl( const TQDomElement &e ) TQString label = DomTool::readAttribute( n, "title", "", comment ).toString(); out << indent << "addPage( " << page << ", TQString(\"\") );" << endl; trout << indent << "setTitle( " << page << ", " << trcall( label, comment ) << " );" << endl; - TQVariant def( FALSE, 0 ); + TQVariant def( false ); if ( DomTool::hasAttribute( n, "backEnabled" ) ) out << indent << "setBackEnabled( " << page << ", " << mkBool( DomTool::readAttribute( n, "backEnabled", def).toBool() ) << endl; if ( DomTool::hasAttribute( n, "nextEnabled" ) ) diff --git a/tools/designer/uic/object.cpp b/tools/designer/uic/object.cpp index 82aabee32..1306e9c06 100644 --- a/tools/designer/uic/object.cpp +++ b/tools/designer/uic/object.cpp @@ -537,7 +537,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/tools/designer/uic/uic.cpp b/tools/designer/uic/uic.cpp index 305f7133e..c38802714 100644 --- a/tools/designer/uic/uic.cpp +++ b/tools/designer/uic/uic.cpp @@ -263,7 +263,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; } |