From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/tqdial.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'doc/html/tqdial.html') diff --git a/doc/html/tqdial.html b/doc/html/tqdial.html index 52da2a064..ca899dc0c 100644 --- a/doc/html/tqdial.html +++ b/doc/html/tqdial.html @@ -103,15 +103,15 @@ body { background: #ffffff; color: black; } program-definable range, and the range either wraps around (typically, 0..359 degrees) or the dialog layout needs a square widget. -

Both API- and UI-wise, the dial is very similar to a slider. Indeed, when wrapping() is FALSE (the default) +

Both API- and UI-wise, the dial is very similar to a slider. Indeed, when wrapping() is false (the default) there is no real difference between a slider and a dial. They have the same signals, slots and member functions, all of which do the same things. Which one you use depends only on your taste and on the application.

The dial initially emits valueChanged() signals continuously while the slider is being moved; you can make it emit the signal less -often by calling setTracking(FALSE). dialMoved() is emitted -continuously even when tracking() is FALSE. +often by calling setTracking(false). dialMoved() is emitted +continuously even when tracking() is false.

The slider also emits dialPressed() and dialReleased() signals when the mouse button is pressed and released. But note that the dial's value can change without these signals being emitted; the @@ -196,7 +196,7 @@ See the "notchSize" property for detail

Returns the target number of pixels between notches. See the "notchTarget" property for details.

bool TQDial::notchesVisible () const -

Returns TRUE if the notches are shown; otherwise returns FALSE. +

Returns true if the notches are shown; otherwise returns false. See the "notchesVisible" property for details.

int TQDial::pageStep () const

Returns the current page step. @@ -246,7 +246,7 @@ Decrements the dial's value() by one li Decrements the dial's value() by one pageStep() of steps.

bool TQDial::tracking () const -

Returns TRUE if tracking is enabled; otherwise returns FALSE. +

Returns true if tracking is enabled; otherwise returns false. See the "tracking" property for details.

int TQDial::value () const

Returns the current dial value. @@ -264,7 +264,7 @@ Reimplemented to ensure the display is correct and to emit the frequency of this signal is influenced by setTracking().

bool TQDial::wrapping () const -

Returns TRUE if wrapping is enabled; otherwise returns FALSE. +

Returns true if wrapping is enabled; otherwise returns false. See the "wrapping" property for details.


Property Documentation

int lineStep

@@ -305,7 +305,7 @@ between each notch.

Set this property's value with setNotchTarget() and get this property's value with notchTarget().

bool notchesVisible

This property holds whether the notches are shown. -

If TRUE, the notches are shown. If FALSE (the default) notches are +

If true, the notches are shown. If false (the default) notches are not shown.

Set this property's value with setNotchesVisible() and get this property's value with notchesVisible(). @@ -318,7 +318,7 @@ page step is different from the previous setting.

Set this property's value with setPageStep() and get this property's value with pageStep().

bool tracking

This property holds whether tracking is enabled. -

If TRUE (the default), tracking is enabled. This means that the +

If true (the default), tracking is enabled. This means that the arrow can be moved using the mouse; otherwise the arrow cannot be moved with the mouse. @@ -332,10 +332,10 @@ moved with the mouse.

Set this property's value with setValue() and get this property's value with value().

bool wrapping

This property holds whether wrapping is enabled. -

If TRUE, wrapping is enabled. This means that the arrow can be +

If true, wrapping is enabled. This means that the arrow can be turned around 360°. Otherwise there is some space at the bottom of the dial which is skipped by the arrow. -

This property's default is FALSE. +

This property's default is false.

Set this property's value with setWrapping() and get this property's value with wrapping(). -- cgit v1.2.3