From cfc76de73cecd5c569cbec280fe8aaa680956df3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 23 May 2019 22:57:29 +0900 Subject: Removed dummy int parameter from TQVariant(bool, int). Signed-off-by: Michele Calgaro --- tools/designer/uic/form.cpp | 2 +- tools/designer/uic/object.cpp | 2 +- tools/designer/uic/uic.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/designer/uic') 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; } -- cgit v1.2.1