summaryrefslogtreecommitdiffstats
path: root/tqt/tqextscintillalexerpov.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqt/tqextscintillalexerpov.cpp')
-rw-r--r--tqt/tqextscintillalexerpov.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/tqt/tqextscintillalexerpov.cpp b/tqt/tqextscintillalexerpov.cpp
index da75b4f..763caf0 100644
--- a/tqt/tqextscintillalexerpov.cpp
+++ b/tqt/tqextscintillalexerpov.cpp
@@ -32,8 +32,8 @@
// The ctor.
TQextScintillaLexerPOV::TQextScintillaLexerPOV(TQObject *parent,const char *name)
- : TQextScintillaLexer(parent,name), fold_comments(FALSE),
- fold_compact(TRUE), fold_directives(FALSE)
+ : TQextScintillaLexer(parent,name), fold_comments(false),
+ fold_compact(true), fold_directives(false)
{
}
@@ -139,7 +139,7 @@ TQFont TQextScintillaLexerPOV::font(int style) const
case UnclosedString:
case PredefinedIdentifiers:
f = TQextScintillaLexer::font(style);
- f.setBold(TRUE);
+ f.setBold(true);
break;
case BadDirective:
@@ -148,7 +148,7 @@ TQFont TQextScintillaLexerPOV::font(int style) const
#else
f = TQFont("Bitstream Vera Serif",9);
#endif
- f.setItalic(TRUE);
+ f.setItalic(true);
break;
default:
@@ -370,32 +370,32 @@ void TQextScintillaLexerPOV::refreshProperties()
// Read properties from the settings.
bool TQextScintillaLexerPOV::readProperties(TQSettings &qs,const TQString &prefix)
{
- int rc = TRUE;
+ bool rc = true;
bool ok, flag;
// Read the fold comments flag.
- flag = qs.readBoolEntry(prefix + "foldcomments",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcomments",false,&ok);
if (ok)
fold_comments = flag;
else
- rc = FALSE;
+ rc = false;
// Read the fold compact flag.
- flag = qs.readBoolEntry(prefix + "foldcompact",TRUE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcompact",true,&ok);
if (ok)
fold_compact = flag;
else
- rc = FALSE;
+ rc = false;
// Read the fold directives flag.
- flag = qs.readBoolEntry(prefix + "folddirectives",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "folddirectives",false,&ok);
if (ok)
fold_directives = flag;
else
- rc = FALSE;
+ rc = false;
return rc;
}
@@ -404,25 +404,25 @@ bool TQextScintillaLexerPOV::readProperties(TQSettings &qs,const TQString &prefi
// Write properties to the settings.
bool TQextScintillaLexerPOV::writeProperties(TQSettings &qs,const TQString &prefix) const
{
- int rc = TRUE;
+ bool rc = true;
// Write the fold comments flag.
if (!qs.writeEntry(prefix + "foldcomments",fold_comments))
- rc = FALSE;
+ rc = false;
// Write the fold compact flag.
if (!qs.writeEntry(prefix + "foldcompact",fold_compact))
- rc = FALSE;
+ rc = false;
// Write the fold directives flag.
if (!qs.writeEntry(prefix + "folddirectives",fold_directives))
- rc = FALSE;
+ rc = false;
return rc;
}
-// Return TRUE if comments can be folded.
+// Return true if comments can be folded.
bool TQextScintillaLexerPOV::foldComments() const
{
return fold_comments;
@@ -445,7 +445,7 @@ void TQextScintillaLexerPOV::setCommentProp()
}
-// Return TRUE if folds are compact.
+// Return true if folds are compact.
bool TQextScintillaLexerPOV::foldCompact() const
{
return fold_compact;
@@ -468,7 +468,7 @@ void TQextScintillaLexerPOV::setCompactProp()
}
-// Return TRUE if directives can be folded.
+// Return true if directives can be folded.
bool TQextScintillaLexerPOV::foldDirectives() const
{
return fold_directives;