From 35ced32e331ee29fda1642616c803637952f5b22 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 30 May 2025 14:27:29 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 1 Signed-off-by: Michele Calgaro (cherry picked from commit a7f1e6e2552d9cdbb3d76bff089db522248b9a24) --- doc/html/tutorial1-10.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/html/tutorial1-10.html') diff --git a/doc/html/tutorial1-10.html b/doc/html/tutorial1-10.html index 8a8da0f20..85c9c37b6 100644 --- a/doc/html/tutorial1-10.html +++ b/doc/html/tutorial1-10.html @@ -100,12 +100,12 @@ separate function. if ( ang == degrees ) return; ang = degrees; - repaint( cannonRect(), FALSE ); + repaint( cannonRect(), false ); emit angleChanged( ang ); }

We have made a slight change in the setAngle() function. It repaints -only the portion of the widget that contains the cannon. The FALSE +only the portion of the widget that contains the cannon. The false argument indicates that the specified rectangle should not be erased before a paint event is sent to the widget. This speeds up and smooths the drawing a little bit. -- cgit v1.2.3