summaryrefslogtreecommitdiffstats
path: root/tqt/tqextscintillalexerpython.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqt/tqextscintillalexerpython.cpp')
-rw-r--r--tqt/tqextscintillalexerpython.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/tqt/tqextscintillalexerpython.cpp b/tqt/tqextscintillalexerpython.cpp
index c1962f0..46fa85e 100644
--- a/tqt/tqextscintillalexerpython.cpp
+++ b/tqt/tqextscintillalexerpython.cpp
@@ -40,8 +40,8 @@ const char *TQextScintillaLexerPython::keywordClass =
// The ctor.
TQextScintillaLexerPython::TQextScintillaLexerPython(TQObject *parent,
const char *name)
- : TQextScintillaLexer(parent,name), fold_comments(FALSE),
- fold_quotes(FALSE), indent_warn(NoWarning)
+ : TQextScintillaLexer(parent,name), fold_comments(false),
+ fold_quotes(false), indent_warn(NoWarning)
{
}
@@ -188,7 +188,7 @@ TQFont TQextScintillaLexerPython::font(int style) const
case FunctionMethodName:
case Operator:
f = TQextScintillaLexer::font(style);
- f.setBold(TRUE);
+ f.setBold(true);
break;
default:
@@ -289,24 +289,24 @@ void TQextScintillaLexerPython::refreshProperties()
// Read properties from the settings.
bool TQextScintillaLexerPython::readProperties(TQSettings &qs,const TQString &prefix)
{
- int rc = TRUE, num;
- bool ok, flag;
+ int num;
+ bool ok, flag, rc = true;
// 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 quotes flag.
- flag = qs.readBoolEntry(prefix + "foldquotes",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldquotes",false,&ok);
if (ok)
fold_quotes = flag;
else
- rc = FALSE;
+ rc = false;
// Read the indentation warning.
num = qs.readNumEntry(prefix + "indentwarning",(int)NoWarning,&ok);
@@ -314,7 +314,7 @@ bool TQextScintillaLexerPython::readProperties(TQSettings &qs,const TQString &pr
if (ok)
indent_warn = (IndentationWarning)num;
else
- rc = FALSE;
+ rc = false;
return rc;
}
@@ -323,25 +323,25 @@ bool TQextScintillaLexerPython::readProperties(TQSettings &qs,const TQString &pr
// Write properties to the settings.
bool TQextScintillaLexerPython::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 quotes flag.
if (!qs.writeEntry(prefix + "foldquotes",fold_quotes))
- rc = FALSE;
+ rc = false;
// Write the indentation warning.
if (!qs.writeEntry(prefix + "indentwarning",(int)indent_warn))
- rc = FALSE;
+ rc = false;
return rc;
}
-// Return TRUE if comments can be folded.
+// Return true if comments can be folded.
bool TQextScintillaLexerPython::foldComments() const
{
return fold_comments;
@@ -364,7 +364,7 @@ void TQextScintillaLexerPython::setCommentProp()
}
-// Return TRUE if quotes can be folded.
+// Return true if quotes can be folded.
bool TQextScintillaLexerPython::foldQuotes() const
{
return fold_quotes;