summaryrefslogtreecommitdiffstats
path: root/tools/designer/plugins/dlg/dlg2ui.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-05-30 14:27:29 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-06-25 16:29:01 +0900
commita7f1e6e2552d9cdbb3d76bff089db522248b9a24 (patch)
tree2e6dd07698083df817163d572443aaf6fdd26651 /tools/designer/plugins/dlg/dlg2ui.cpp
parent2584dba8aabfa2db8297dcfa258d33545ed6af43 (diff)
downloadtqt-a7f1e6e2552d9cdbb3d76bff089db522248b9a24.tar.gz
tqt-a7f1e6e2552d9cdbb3d76bff089db522248b9a24.zip
Replace TRUE/FALSE with boolean values true/false - part 1
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tools/designer/plugins/dlg/dlg2ui.cpp')
-rw-r--r--tools/designer/plugins/dlg/dlg2ui.cpp26
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") );