diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-04 13:24:31 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-04 21:11:58 +0900 |
commit | 2d2a66210c4827dd2469d4fde55bf2c9aab81b5a (patch) | |
tree | 8a1b99c230b11fb6e679434055553504620119c7 /pytquic3/object.cpp | |
parent | f89d120a2d4982896f0b5c00cee347a010f609a9 (diff) | |
download | pytqt-r14.1.4.tar.gz pytqt-r14.1.4.zip |
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 6cbdd25dc4c6b0987636b37b2046b1b9464e3d60)
Diffstat (limited to 'pytquic3/object.cpp')
-rw-r--r-- | pytquic3/object.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pytquic3/object.cpp b/pytquic3/object.cpp index 6b26e8c..30a447a 100644 --- a/pytquic3/object.cpp +++ b/pytquic3/object.cpp @@ -36,7 +36,7 @@ Returns the name of the generated child object. */ -static bool createdCentralWidget = FALSE; +static bool createdCentralWidget = false; TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentClass, const TQString& par, const TQString& layout ) { @@ -44,7 +44,7 @@ TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentCla if ( parent == "self" && isMainWindow ) { if ( !createdCentralWidget ) out << indent << "self.setCentralWidget(TQWidget(self,\"tqt_central_widget\"))" << endl; - createdCentralWidget = TRUE; + createdCentralWidget = true; parent = "self.centralWidget()"; } TQDomElement n; @@ -116,7 +116,7 @@ TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentCla lastItem = "None"; // 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; @@ -131,7 +131,7 @@ TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentCla 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; @@ -584,12 +584,12 @@ TQString Uic::setObjectProperty( const TQString& objClass, const TQString& obj, TQString palette = "pal"; if ( !pal_used ) { out << indent << palette << " = TQPalette()" << endl; - pal_used = TRUE; + pal_used = true; } TQString cg = "cg"; if ( !cg_used ) { out << indent << cg << " = TQColorGroup()" << endl; - cg_used = TRUE; + cg_used = true; } n = e.firstChild().toElement(); while ( !n.isNull() && n.tagName() != "active" ) |