summaryrefslogtreecommitdiffstats
path: root/tools/designer/editor/browser.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-05-30 14:27:29 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-06-25 16:29:01 +0900
commita7f1e6e2552d9cdbb3d76bff089db522248b9a24 (patch)
tree2e6dd07698083df817163d572443aaf6fdd26651 /tools/designer/editor/browser.cpp
parent2584dba8aabfa2db8297dcfa258d33545ed6af43 (diff)
downloadtqt-a7f1e6e2552d9cdbb3d76bff089db522248b9a24.tar.gz
tqt-a7f1e6e2552d9cdbb3d76bff089db522248b9a24.zip
Replace TRUE/FALSE with boolean values true/false - part 1
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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;
}