diff options
Diffstat (limited to 'tools/designer/plugins/dlg/dlg2ui.cpp')
| -rw-r--r-- | tools/designer/plugins/dlg/dlg2ui.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tools/designer/plugins/dlg/dlg2ui.cpp b/tools/designer/plugins/dlg/dlg2ui.cpp index 0529b97e3..26445a12f 100644 --- a/tools/designer/plugins/dlg/dlg2ui.cpp +++ b/tools/designer/plugins/dlg/dlg2ui.cpp @@ -523,7 +523,7 @@ void Dlg2Ui::flushWidgets() TQString className = widgetClassName( *yyWidgetMap.begin() ); if ( !widgetForLayout.exactMatch(className) ) { emitOpeningWidget( className ); - emitWidgetBody( *yyWidgetMap.begin(), FALSE ); + emitWidgetBody( *yyWidgetMap.begin(), false ); emitClosing( TQString("widget") ); } yyWidgetMap.remove( yyWidgetMap.begin() ); @@ -827,18 +827,18 @@ void Dlg2Ui::emitWidgetBody( const TQDomElement& e, bool layouted ) if ( type == TQString("tqstring") ) type = TQString( "string" ); - bool omit = FALSE; + bool omit = false; if ( propertyName == TQString("backgroundOrigin") && val.toString() == TQString("WidgetOrigin") ) - omit = TRUE; + omit = true; if ( propertyName == TQString("enabled") && val.toBool() ) - omit = TRUE; + omit = true; if ( propertyName == TQString("minimumSize") && val.toSize() == TQSize(-1, -1) ) - omit = TRUE; + omit = true; if ( propertyName == TQString("maximumSize") && val.toSize() == TQSize(32767, 32767) ) - omit = TRUE; + omit = true; if ( !omit ) emitProperty( propertyName, val, type ); @@ -1013,7 +1013,7 @@ void Dlg2Ui::matchDialogCommon( const TQDomElement& dialogCommon ) TQString dataSource; TQString dataName; TQString windowBaseClass( "TQDialog" ); - bool isCustom = FALSE; + bool isCustom = false; TQString customBaseHeader; TQString windowCaption; @@ -1040,7 +1040,7 @@ void Dlg2Ui::matchDialogCommon( const TQDomElement& dialogCommon ) dataName = val; } else if ( tagName == TQString("WindowBaseClass") ) { if ( val == TQString("Custom") ) - isCustom = TRUE; + isCustom = true; else windowBaseClass = val; } else if ( tagName == TQString("IsModal") ) { @@ -1083,7 +1083,7 @@ void Dlg2Ui::matchBoxLayout( const TQDomElement& boxLayout ) int autoBorder = 5; TQString name; bool needsWidget = needsTQLayoutWidget( boxLayout ); - bool opened = FALSE; + bool opened = false; TQDomNode n = boxLayout.firstChild(); while ( !n.isNull() ) { @@ -1096,7 +1096,7 @@ void Dlg2Ui::matchBoxLayout( const TQDomElement& boxLayout ) if ( !directionStr.isEmpty() ) emitProperty( TQString("direction"), directionStr, TQString("enum") ); - opened = TRUE; + opened = true; } matchLayout( n.toElement() ); } else { @@ -1172,7 +1172,7 @@ void Dlg2Ui::matchGridLayout( const TQDomElement& gridLayout ) TQString name; TQString menu; bool needsWidget = needsTQLayoutWidget( gridLayout ); - bool opened = FALSE; + bool opened = false; TQDomNode n = gridLayout.firstChild(); while ( !n.isNull() ) { @@ -1184,7 +1184,7 @@ void Dlg2Ui::matchGridLayout( const TQDomElement& gridLayout ) autoBorder ); yyGridRow = -1; yyGridColumn = -1; - opened = TRUE; + opened = true; } matchLayout( n.toElement() ); } else { @@ -1307,7 +1307,7 @@ void Dlg2Ui::matchLayoutWidget( const TQDomElement& layoutWidget ) emitClosingLayout( needsWidget, TQString("grid") ); } else { emitOpeningWidget( widgetClassName(*w) ); - emitWidgetBody( *w, TRUE ); + emitWidgetBody( *w, true ); if ( !children.isNull() ) matchLayout( children ); emitClosing( TQString("widget") ); |
