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/plugins | |
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/plugins')
-rw-r--r-- | tools/designer/plugins/dlg/dlg2ui.cpp | 4 | ||||
-rw-r--r-- | tools/designer/plugins/glade/glade2ui.cpp | 20 |
2 files changed, 12 insertions, 12 deletions
diff --git a/tools/designer/plugins/dlg/dlg2ui.cpp b/tools/designer/plugins/dlg/dlg2ui.cpp index e44c285f2..23e18063e 100644 --- a/tools/designer/plugins/dlg/dlg2ui.cpp +++ b/tools/designer/plugins/dlg/dlg2ui.cpp @@ -718,7 +718,7 @@ void Dlg2Ui::emitWidgetBody( const TQDomElement& e, bool layouted ) if ( tagName == TQString("Style") ) { if ( getTextValue(n) == TQString("ReadWrite") ) emitProperty( TQString("editable"), - TQVariant(TRUE, 0) ); + TQVariant(true) ); } } else if ( parentTagName == TQString("DlgWidget") ) { if ( tagName == TQString("Name") ) { @@ -891,7 +891,7 @@ TQVariant Dlg2Ui::getValue( const TQDomElement& e, const TQString& tagName, if ( type == TQString("integer") ) { return getTextValue( e ).toInt(); } else if ( type == TQString("boolean") ) { - return TQVariant( isTrue(getTextValue(e)), 0 ); + return TQVariant( isTrue(getTextValue(e)) ); } else if ( type == TQString("double") ) { return getTextValue( e ).toDouble(); } else if ( type == TQString("qcstring") ) { diff --git a/tools/designer/plugins/glade/glade2ui.cpp b/tools/designer/plugins/glade/glade2ui.cpp index 4d4eae25e..b1bbe9ca7 100644 --- a/tools/designer/plugins/glade/glade2ui.cpp +++ b/tools/designer/plugins/glade/glade2ui.cpp @@ -839,7 +839,7 @@ void Glade2Ui::emitPushButton( const TQString& text, const TQString& name ) emitProperty( TQString("name"), name.latin1() ); emitProperty( TQString("text"), text ); if ( name.contains(TQString("ok")) > 0 ) { - emitProperty( TQString("default"), TQVariant(TRUE, 0) ); + emitProperty( TQString("default"), TQVariant(true) ); } else if ( name.contains(TQString("help")) > 0 ) { emitProperty( TQString("accel"), (int) TQt::Key_F1 ); } @@ -1215,7 +1215,7 @@ void Glade2Ui::emitTQListViewColumns( const TQDomElement& qlistview ) } else if ( tagName == TQString("class") ) { TQString gtkClass = getTextValue( n ); if ( gtkClass.endsWith(TQString("Tree")) ) - emitProperty( TQString("rootIsDecorated"), TQVariant(TRUE, 0) ); + emitProperty( TQString("rootIsDecorated"), TQVariant(true) ); } else if ( tagName == TQString("selection_mode") ) { emitProperty( TQString("selectionMode"), gtk2qtSelectionMode(getTextValue(n)) ); @@ -1815,16 +1815,16 @@ TQString Glade2Ui::emitWidget( const TQDomElement& widget, bool layouted, if ( !layouted && (x != 0 || y != 0 || width != 0 || height != 0) ) emitProperty( TQString("geometry"), TQRect(x, y, width, height) ); if ( gtkClass == TQString("GtkToggleButton") ) { - emitProperty( TQString("toggleButton"), TQVariant(TRUE, 0) ); + emitProperty( TQString("toggleButton"), TQVariant(true) ); if ( active ) - emitProperty( TQString("on"), TQVariant(TRUE, 0) ); + emitProperty( TQString("on"), TQVariant(true) ); } else { if ( active ) - emitProperty( TQString("checked"), TQVariant(TRUE, 0) ); + emitProperty( TQString("checked"), TQVariant(true) ); } if ( !editable ) - emitProperty( TQString("readOnly"), TQVariant(TRUE, 0) ); + emitProperty( TQString("readOnly"), TQVariant(true) ); if ( !focusTarget.isEmpty() ) emitProperty( TQString("buddy"), fixedName(focusTarget).latin1() ); @@ -1889,7 +1889,7 @@ TQString Glade2Ui::emitWidget( const TQDomElement& widget, bool layouted, } if ( !showText ) emitProperty( TQString("percentageVisible"), - TQVariant(FALSE, 0) ); + TQVariant(false) ); if ( step != 1 ) emitProperty( TQString("lineStep"), step ); if ( tabPos.endsWith(TQString("_BOTTOM")) || @@ -1905,12 +1905,12 @@ TQString Glade2Ui::emitWidget( const TQDomElement& widget, bool layouted, if ( !tooltip.isEmpty() ) emitProperty( TQString("toolTip"), tooltip ); if ( !valueInList ) - emitProperty( TQString("editable"), TQVariant(TRUE, 0) ); + emitProperty( TQString("editable"), TQVariant(true) ); if ( wrap && gtkClass == TQString("GtkSpinButton") ) - emitProperty( TQString("wrapping"), TQVariant(TRUE, 0) ); + emitProperty( TQString("wrapping"), TQVariant(true) ); if ( gtkClass.endsWith(TQString("Tree")) ) { - emitProperty( TQString("rootIsDecorated"), TQVariant(TRUE, 0) ); + emitProperty( TQString("rootIsDecorated"), TQVariant(true) ); } else if ( gtkOrientedWidget.exactMatch(gtkClass) ) { TQString s = ( gtkOrientedWidget.cap(1) == TQChar('H') ) ? TQString( "Horizontal" ) : TQString( "Vertical" ); |