summaryrefslogtreecommitdiffstats
path: root/tools/designer/tquic/object.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/tquic/object.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/tquic/object.cpp')
-rw-r--r--tools/designer/tquic/object.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/designer/tquic/object.cpp b/tools/designer/tquic/object.cpp
index 0ef19843f..c32176435 100644
--- a/tools/designer/tquic/object.cpp
+++ b/tools/designer/tquic/object.cpp
@@ -88,7 +88,7 @@ void TQUic::createObjectDecl( const TQDomElement& e )
\sa createObjectDecl()
*/
-static bool createdCentralWidget = FALSE;
+static bool createdCentralWidget = false;
TQString TQUic::createObjectImpl( const TQDomElement &e, const TQString& parentClass, const TQString& par, const TQString& layout )
{
@@ -96,7 +96,7 @@ TQString TQUic::createObjectImpl( const TQDomElement &e, const TQString& parentC
if ( parent == "this" && isMainWindow ) {
if ( !createdCentralWidget )
out << indent << "setCentralWidget( new TQWidget( this, \"qt_central_widget\" ) );" << endl;
- createdCentralWidget = TRUE;
+ createdCentralWidget = true;
parent = "centralWidget()";
}
TQDomElement n;
@@ -153,7 +153,7 @@ TQString TQUic::createObjectImpl( const TQDomElement &e, const TQString& parentC
lastItem = "0";
// set the properties and insert items
- bool hadFrameShadow = FALSE;
+ bool hadFrameShadow = false;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "property" ) {
bool stdset = stdsetdef;
@@ -168,7 +168,7 @@ TQString TQUic::createObjectImpl( const TQDomElement &e, const TQString& parentC
if ( prop == "name" )
continue;
if ( isLine && prop == "frameShadow" )
- hadFrameShadow = TRUE;
+ hadFrameShadow = true;
if ( prop == "buddy" && value.startsWith("\"") && value.endsWith("\"") ) {
buddies << Buddy( objName, value.mid(1, value.length() - 2 ) );
continue;
@@ -617,12 +617,12 @@ TQString TQUic::setObjectProperty( const TQString& objClass, const TQString& obj
TQString palette = "pal";
if ( !pal_used ) {
out << indent << "TQPalette " << palette << ";" << endl;
- pal_used = TRUE;
+ pal_used = true;
}
TQString cg = "cg";
if ( !cg_used ) {
out << indent << "TQColorGroup " << cg << ";" << endl;
- cg_used = TRUE;
+ cg_used = true;
}
n = e.firstChild().toElement();
while ( !n.isNull() && n.tagName() != "active" )