summaryrefslogtreecommitdiffstats
path: root/tools/designer/editor/browser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/designer/editor/browser.cpp')
-rw-r--r--tools/designer/editor/browser.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/designer/editor/browser.cpp b/tools/designer/editor/browser.cpp
index 1ec24ffb8..8284e493f 100644
--- a/tools/designer/editor/browser.cpp
+++ b/tools/designer/editor/browser.cpp
@@ -46,7 +46,7 @@ EditorBrowser::EditorBrowser( Editor *e )
// curEditor->installEventFilter( this );
TQFont fn( curEditor->font() );
- fn.setUnderline( TRUE );
+ fn.setUnderline( true );
highlightedFormat = new TQTextFormat( fn, blue );
}
@@ -77,14 +77,14 @@ bool EditorBrowser::eventFilter( TQObject *o, TQEvent *e )
// avoid collision with other selections
for ( int i = 0; i < curEditor->document()->numSelections(); ++i )
curEditor->document()->removeSelection( i );
- from.paragraph()->setFormat( from.index(), to.index() - from.index() + 1, highlightedFormat, FALSE );
+ from.paragraph()->setFormat( from.index(), to.index() - from.index() + 1, highlightedFormat, false );
lastWord = from.paragraph()->string()->toString().mid( from.index(), to.index() - from.index() + 1 );
oldHighlightedParag = from.paragraph();
} else {
lastWord = "";
}
curEditor->repaintChanged();
- return TRUE;
+ return true;
}
break;
case TQEvent::MouseButtonPress: {
@@ -100,7 +100,7 @@ bool EditorBrowser::eventFilter( TQObject *o, TQEvent *e )
oldHighlightedParag = 0;
}
if ( killEvent )
- return TRUE;
+ return true;
} break;
case TQEvent::KeyRelease:
lastWord = "";
@@ -118,7 +118,7 @@ bool EditorBrowser::eventFilter( TQObject *o, TQEvent *e )
break;
}
}
- return FALSE;
+ return false;
}
void EditorBrowser::setCurrentEdior( Editor *e )
@@ -145,5 +145,5 @@ bool EditorBrowser::findCursor( const TQTextCursor &c, TQTextCursor &from, TQTex
to.gotoRight();
if ( to.paragraph()->at( to.index() )->c == ' ' || to.paragraph()->at( to.index() )->c == '\t' )
to.gotoLeft();
- return TRUE;
+ return true;
}