summaryrefslogtreecommitdiffstats
path: root/tqt/tqextscintillabase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqt/tqextscintillabase.cpp')
-rw-r--r--tqt/tqextscintillabase.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/tqt/tqextscintillabase.cpp b/tqt/tqextscintillabase.cpp
index 8d02345..01afc67 100644
--- a/tqt/tqextscintillabase.cpp
+++ b/tqt/tqextscintillabase.cpp
@@ -62,7 +62,7 @@
// Remember if we have linked the lexers.
-static bool lexersLinked = FALSE;
+static bool lexersLinked = false;
// The list of instances.
static TQPtrList<TQextScintillaBase> poolList;
@@ -78,8 +78,8 @@ TQextScintillaBase::TQextScintillaBase(TQWidget *parent,const char *name,WFlags
txtarea = new TQWidget(this,0,WRepaintNoErase|WResizeNoErase);
txtarea -> setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding,TQSizePolicy::Expanding));
- txtarea -> setMouseTracking(TRUE);
- txtarea -> setAcceptDrops(TRUE);
+ txtarea -> setMouseTracking(true);
+ txtarea -> setAcceptDrops(true);
txtarea -> setFocusPolicy(WheelFocus);
txtarea -> setFocusProxy(this);
layout -> addWidget(txtarea,0,0);
@@ -105,7 +105,7 @@ TQextScintillaBase::TQextScintillaBase(TQWidget *parent,const char *name,WFlags
{
Scintilla_LinkLexers();
- lexersLinked = TRUE;
+ lexersLinked = true;
}
TQClipboard *cb = TQApplication::clipboard();
@@ -213,7 +213,7 @@ bool TQextScintillaBase::eventFilter(TQObject *o,TQEvent *e)
if (o != txtarea)
return TQWidget::eventFilter(o,e);
- bool used = TRUE;
+ bool used = true;
switch (e -> type())
{
@@ -266,7 +266,7 @@ bool TQextScintillaBase::eventFilter(TQObject *o,TQEvent *e)
break;
default:
- used = FALSE;
+ used = false;
}
return used;
@@ -337,14 +337,14 @@ void TQextScintillaBase::mousePress(TQMouseEvent *me)
if (cb -> supportsSelection())
{
- cb -> setSelectionMode(TRUE);
+ cb -> setSelectionMode(true);
int pos = sci -> PositionFromLocation(pt);
sci -> SetSelection(pos,pos);
sci -> Paste();
- cb -> setSelectionMode(FALSE);
+ cb -> setSelectionMode(false);
}
break;
@@ -507,7 +507,7 @@ void TQextScintillaBase::keyPressEvent(TQKeyEvent *ke)
}
}
- bool consumed = FALSE;
+ bool consumed = false;
if (key)
{
@@ -519,7 +519,7 @@ void TQextScintillaBase::keyPressEvent(TQKeyEvent *ke)
// the return value of KeyDown() will be true, but consumed
// will incorrectly be false.
if (sci -> KeyDown(key,shift,ctrl,alt,&consumed) && !consumed)
- consumed = TRUE;
+ consumed = true;
}
else if (sci -> IsUnicodeMode())
{
@@ -529,7 +529,7 @@ void TQextScintillaBase::keyPressEvent(TQKeyEvent *ke)
sci -> AddCharUTF(s.data(),s.length());
- consumed = TRUE;
+ consumed = true;
}
}