summaryrefslogtreecommitdiffstats
path: root/tqt/tqextscintillalexer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqt/tqextscintillalexer.cpp')
-rw-r--r--tqt/tqextscintillalexer.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/tqt/tqextscintillalexer.cpp b/tqt/tqextscintillalexer.cpp
index 5663415..aa6dd0e 100644
--- a/tqt/tqextscintillalexer.cpp
+++ b/tqt/tqextscintillalexer.cpp
@@ -135,7 +135,7 @@ TQColor TQextScintillaLexer::color(int) const
// Returns the end-of-line fill for a style.
bool TQextScintillaLexer::eolFill(int) const
{
- return FALSE;
+ return false;
}
@@ -205,7 +205,7 @@ void TQextScintillaLexer::setDefaultPaper(const TQColor &c)
// Read properties from the settings.
bool TQextScintillaLexer::readProperties(TQSettings &,const TQString &)
{
- return TRUE;
+ return true;
}
@@ -218,14 +218,14 @@ void TQextScintillaLexer::refreshProperties()
// Write properties to the settings.
bool TQextScintillaLexer::writeProperties(TQSettings &,const TQString &) const
{
- return TRUE;
+ return true;
}
// Restore the user settings.
bool TQextScintillaLexer::readSettings(TQSettings &qs,const char *prefix)
{
- bool ok, flag, rc = TRUE;
+ bool ok, flag, rc = true;
int num;
TQString key;
@@ -244,7 +244,7 @@ bool TQextScintillaLexer::readSettings(TQSettings &qs,const char *prefix)
if (ok)
emit colorChanged(TQColor((num >> 16) & 0xff,(num >> 8) & 0xff,num & 0xff),i);
else
- rc = FALSE;
+ rc = false;
// Read the end-of-line fill.
flag = qs.readBoolEntry(key + "eolfill",0,&ok);
@@ -252,7 +252,7 @@ bool TQextScintillaLexer::readSettings(TQSettings &qs,const char *prefix)
if (ok)
emit eolFillChanged(flag,i);
else
- rc = FALSE;
+ rc = false;
// Read the font
TQStringList fdesc;
@@ -272,7 +272,7 @@ bool TQextScintillaLexer::readSettings(TQSettings &qs,const char *prefix)
emit fontChanged(f,i);
}
else
- rc = FALSE;
+ rc = false;
// Read the background colour.
num = qs.readNumEntry(key + "paper",0,&ok);
@@ -280,14 +280,14 @@ bool TQextScintillaLexer::readSettings(TQSettings &qs,const char *prefix)
if (ok)
emit paperChanged(TQColor((num >> 16) & 0xff,(num >> 8) & 0xff,num & 0xff),i);
else
- rc = FALSE;
+ rc = false;
}
// Read the properties.
key.sprintf("%s/%s/properties/",prefix,language());
if (!readProperties(qs,key))
- rc = FALSE;
+ rc = false;
refreshProperties();
@@ -299,7 +299,7 @@ bool TQextScintillaLexer::readSettings(TQSettings &qs,const char *prefix)
if (ok)
autoIndStyle = num;
else
- rc = FALSE;
+ rc = false;
return rc;
}
@@ -308,7 +308,7 @@ bool TQextScintillaLexer::readSettings(TQSettings &qs,const char *prefix)
// Save the user settings.
bool TQextScintillaLexer::writeSettings(TQSettings &qs,const char *prefix) const
{
- bool rc = TRUE;
+ bool rc = true;
TQString key;
// Write the styles.
@@ -328,11 +328,11 @@ bool TQextScintillaLexer::writeSettings(TQSettings &qs,const char *prefix) const
num = (c.red() << 16) | (c.green() << 8) | c.blue();
if (!qs.writeEntry(key + "color",num))
- rc = FALSE;
+ rc = false;
// Write the end-of-line fill.
if (!qs.writeEntry(key + "eolfill",eolFill(i)))
- rc = FALSE;
+ rc = false;
// Write the font
TQStringList fdesc;
@@ -348,27 +348,27 @@ bool TQextScintillaLexer::writeSettings(TQSettings &qs,const char *prefix) const
fdesc += fmt.arg((int)f.underline());
if (!qs.writeEntry(key + "font",fdesc,','))
- rc = FALSE;
+ rc = false;
// Write the background colour.
c = paper(i);
num = (c.red() << 16) | (c.green() << 8) | c.blue();
if (!qs.writeEntry(key + "paper",num))
- rc = FALSE;
+ rc = false;
}
// Write the properties.
key.sprintf("%s/%s/properties/",prefix,language());
if (!writeProperties(qs,key))
- rc = FALSE;
+ rc = false;
// Write the rest.
key.sprintf("%s/%s/",prefix,language());
if (!qs.writeEntry(key + "autoindentstyle",autoIndStyle))
- rc = FALSE;
+ rc = false;
return rc;
}