summaryrefslogtreecommitdiffstats
path: root/tools/designer/uic/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:43:08 +0900
commit35ced32e331ee29fda1642616c803637952f5b22 (patch)
treeda44726777f814e19c7ef1e43854f6a1693dd6fb /tools/designer/uic/object.cpp
parent7dd4848d61e4c52091d6c644356c84c67536bde2 (diff)
downloadtqt-35ced32e.tar.gz
tqt-35ced32e.zip
Replace TRUE/FALSE with boolean values true/false - part 1
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit a7f1e6e2552d9cdbb3d76bff089db522248b9a24)
Diffstat (limited to 'tools/designer/uic/object.cpp')
-rw-r--r--tools/designer/uic/object.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/designer/uic/object.cpp b/tools/designer/uic/object.cpp
index 1306e9c06..305d01b4b 100644
--- a/tools/designer/uic/object.cpp
+++ b/tools/designer/uic/object.cpp
@@ -88,7 +88,7 @@ void Uic::createObjectDecl( const TQDomElement& e )
\sa createObjectDecl()
*/
-static bool createdCentralWidget = FALSE;
+static bool createdCentralWidget = false;
TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentClass, const TQString& par, const TQString& layout )
{
@@ -96,7 +96,7 @@ TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentCla
if ( parent == "this" && isMainWindow ) {
if ( !createdCentralWidget )
out << indent << "setCentralWidget( new TQWidget( this, \"qt_central_widget\" ) );" << endl;
- createdCentralWidget = TRUE;
+ createdCentralWidget = true;
parent = "centralWidget()";
}
TQDomElement n;
@@ -164,7 +164,7 @@ TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentCla
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;
@@ -179,7 +179,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;
@@ -628,12 +628,12 @@ TQString Uic::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" )