diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-05-30 14:27:29 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-06-25 16:43:08 +0900 |
| commit | 35ced32e331ee29fda1642616c803637952f5b22 (patch) | |
| tree | da44726777f814e19c7ef1e43854f6a1693dd6fb /tools/designer/editor/conf.cpp | |
| parent | 7dd4848d61e4c52091d6c644356c84c67536bde2 (diff) | |
| download | tqt-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/editor/conf.cpp')
| -rw-r--r-- | tools/designer/editor/conf.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tools/designer/editor/conf.cpp b/tools/designer/editor/conf.cpp index bff128679..e709f91a6 100644 --- a/tools/designer/editor/conf.cpp +++ b/tools/designer/editor/conf.cpp @@ -50,7 +50,7 @@ TQMap<TQString, ConfigStyle> Config::defaultStyles() s.color = TQt::black; styles.insert( "Standard", s ); - s.font = TQFont( commentFamily, normalSize, normalWeight, TRUE ); + s.font = TQFont( commentFamily, normalSize, normalWeight, true ); s.color = TQt::red; styles.insert( "Comment", s ); @@ -88,7 +88,7 @@ TQMap<TQString, ConfigStyle> Config::readStyles( const TQString &path ) TQString family; int size = 10; - bool bold = FALSE, italic = FALSE, underline = FALSE; + bool bold = false, italic = false, underline = false; int red = 0, green = 0, blue = 0; TQString elements[] = { @@ -105,7 +105,7 @@ TQMap<TQString, ConfigStyle> Config::readStyles( const TQString &path ) for ( int i = 0; elements[ i ] != TQString::null; ++i ) { TQSettings settings; - bool ok = TRUE; + bool ok = true; for (;;) { family = settings.readEntry( path + elements[ i ] + "/family", TQString::null, &ok ); if ( !ok ) @@ -113,13 +113,13 @@ TQMap<TQString, ConfigStyle> Config::readStyles( const TQString &path ) size = settings.readNumEntry( path + elements[ i ] + "/size", 10, &ok ); if ( !ok ) break; - bold = settings.readBoolEntry( path + elements[ i ] + "/bold", FALSE, &ok ); + bold = settings.readBoolEntry( path + elements[ i ] + "/bold", false, &ok ); if ( !ok ) break; - italic = settings.readBoolEntry( path + elements[ i ] + "/italic", FALSE, &ok ); + italic = settings.readBoolEntry( path + elements[ i ] + "/italic", false, &ok ); if ( !ok ) break; - underline = settings.readBoolEntry( path + elements[ i ] + "/underline", FALSE, &ok ); + underline = settings.readBoolEntry( path + elements[ i ] + "/underline", false, &ok ); if ( !ok ) break; red = settings.readNumEntry( path + elements[ i ] + "/red", 0, &ok ); @@ -180,21 +180,21 @@ void Config::saveStyles( const TQMap<TQString, ConfigStyle> &styles, const TQStr bool Config::completion( const TQString &path ) { TQSettings settings; - bool ret = settings.readBoolEntry( path + "/completion", TRUE ); + bool ret = settings.readBoolEntry( path + "/completion", true ); return ret; } bool Config::wordWrap( const TQString &path ) { TQSettings settings; - bool ret = settings.readBoolEntry( path + "/wordWrap", TRUE ); + bool ret = settings.readBoolEntry( path + "/wordWrap", true ); return ret; } bool Config::parenMatching( const TQString &path ) { TQSettings settings; - bool ret = settings.readBoolEntry( path + "/parenMatching", TRUE ); + bool ret = settings.readBoolEntry( path + "/parenMatching", true ); return ret; } @@ -215,14 +215,14 @@ int Config::indentIndentSize( const TQString &path ) bool Config::indentKeepTabs( const TQString &path ) { TQSettings settings; - bool ret = settings.readBoolEntry( path + "/indentKeepTabs", TRUE ); + bool ret = settings.readBoolEntry( path + "/indentKeepTabs", true ); return ret; } bool Config::indentAutoIndent( const TQString &path ) { TQSettings settings; - bool ret = settings.readBoolEntry( path + "/indentAutoIndent", TRUE ); + bool ret = settings.readBoolEntry( path + "/indentAutoIndent", true ); return ret; } |
