summaryrefslogtreecommitdiffstats
path: root/tqt/tqextscintillalexersql.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqt/tqextscintillalexersql.cpp')
-rw-r--r--tqt/tqextscintillalexersql.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/tqt/tqextscintillalexersql.cpp b/tqt/tqextscintillalexersql.cpp
index 7d296ea..454e69a 100644
--- a/tqt/tqextscintillalexersql.cpp
+++ b/tqt/tqextscintillalexersql.cpp
@@ -32,8 +32,8 @@
// The ctor.
TQextScintillaLexerSQL::TQextScintillaLexerSQL(TQObject *parent,const char *name)
- : TQextScintillaLexer(parent,name), fold_comments(FALSE),
- fold_compact(TRUE), backslash_escapes(FALSE)
+ : TQextScintillaLexer(parent,name), fold_comments(false),
+ fold_compact(true), backslash_escapes(false)
{
}
@@ -153,7 +153,7 @@ TQFont TQextScintillaLexerSQL::font(int style) const
case Keyword:
case Operator:
f = TQextScintillaLexer::font(style);
- f.setBold(TRUE);
+ f.setBold(true);
break;
case DoubleQuotedString:
@@ -334,32 +334,32 @@ void TQextScintillaLexerSQL::refreshProperties()
// Read properties from the settings.
bool TQextScintillaLexerSQL::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 backslash escapes flag.
- flag = qs.readBoolEntry(prefix + "backslashescapes",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "backslashescapes",false,&ok);
if (ok)
backslash_escapes = flag;
else
- rc = FALSE;
+ rc = false;
return rc;
}
@@ -368,25 +368,25 @@ bool TQextScintillaLexerSQL::readProperties(TQSettings &qs,const TQString &prefi
// Write properties to the settings.
bool TQextScintillaLexerSQL::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 backslash escapes flag.
if (!qs.writeEntry(prefix + "backslashescapes",backslash_escapes))
- rc = FALSE;
+ rc = false;
return rc;
}
-// Return TRUE if comments can be folded.
+// Return true if comments can be folded.
bool TQextScintillaLexerSQL::foldComments() const
{
return fold_comments;
@@ -409,7 +409,7 @@ void TQextScintillaLexerSQL::setCommentProp()
}
-// Return TRUE if folds are compact.
+// Return true if folds are compact.
bool TQextScintillaLexerSQL::foldCompact() const
{
return fold_compact;
@@ -432,7 +432,7 @@ void TQextScintillaLexerSQL::setCompactProp()
}
-// Return TRUE if backslash escapes are enabled.
+// Return true if backslash escapes are enabled.
bool TQextScintillaLexerSQL::backslashEscapes() const
{
return backslash_escapes;