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/tqfont.html | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'doc/html/tqfont.html') diff --git a/doc/html/tqfont.html b/doc/html/tqfont.html index d1344d9c0..86feca2e3 100644 --- a/doc/html/tqfont.html +++ b/doc/html/tqfont.html @@ -41,7 +41,7 @@ body { background: #ffffff; color: black; }
  • enum Weight { Light = 25, Normal = 50, DemiBold = 63, Bold = 75, Black = 87 }
  • enum Stretch { UltraCondensed = 50, ExtraCondensed = 62, Condensed = 75, SemiCondensed = 87, Unstretched = 100, SemiExpanded = 112, Expanded = 125, ExtraExpanded = 150, UltraExpanded = 200 }
  • TQFont ()
  • -
  • TQFont ( const TQString & family, int pointSize = 12, int weight = Normal, bool italic = FALSE )
  • +
  • TQFont ( const TQString & family, int pointSize = 12, int weight = Normal, bool italic = false )
  • TQFont ( const TQFont & font )
  • ~TQFont ()
  • TQString family () const
  • @@ -126,7 +126,7 @@ you want the font to have. TQt will use the font with the specified attributes, or if no matching font exists, TQt will use the closest matching installed font. The attributes of the font that is actually used are retrievable from a TQFontInfo object. If the -window system provides an exact match exactMatch() returns TRUE. +window system provides an exact match exactMatch() returns true. Use TQFontMetrics to get measurements, e.g. the pixel length of a string using TQFontMetrics::width().

    Use TQApplication::setFont() to set the application's default font. @@ -449,7 +449,7 @@ ultralight, whilst 99 will be an extremely black. Constructs a font object that uses the application's default font.

    See also TQApplication::setFont() and TQApplication::font(). -

    TQFont::TQFont ( const TQString & family, int pointSize = 12, int weight = Normal, bool italic = FALSE ) +

    TQFont::TQFont ( const TQString & family, int pointSize = 12, int weight = Normal, bool italic = false )

    Constructs a font object with the specified family, pointSize, weight and italic settings.

    If pointSize is <= 0 it is set to 1. @@ -473,7 +473,7 @@ Destroys the font object and frees all allocated resources.

    bool TQFont::bold () const

    -

    Returns TRUE if weight() is a value greater than TQFont::Normal; otherwise returns FALSE. +

    Returns true if weight() is a value greater than TQFont::Normal; otherwise returns false.

    See also weight(), setBold(), and TQFontInfo::bold().

    Example: chart/optionsform.cpp. @@ -496,12 +496,12 @@ hint.

    bool TQFont::dirty () const [protected]

    -Returns TRUE if the font attributes have been changed and the font -has to be (re)loaded; otherwise returns FALSE. +Returns true if the font attributes have been changed and the font +has to be (re)loaded; otherwise returns false.

    bool TQFont::exactMatch () const

    -Returns TRUE if a window system font exactly matching the settings +Returns true if a window system font exactly matching the settings of this font is available.

    See also TQFontInfo. @@ -514,7 +514,7 @@ constructor or the last setFont() call.

    Examples: chart/optionsform.cpp and fonts/simple-tqfont-demo/viewer.cpp.

    bool TQFont::fixedPitch () const

    -Returns TRUE if fixed pitch has been set; otherwise returns FALSE. +Returns true if fixed pitch has been set; otherwise returns false.

    See also setFixedPitch() and TQFontInfo::fixedPitch().

    bool TQFont::fromString ( const TQString & descrip ) @@ -545,14 +545,14 @@ substitution list for familyName.

    Example: fonts/simple-tqfont-demo/viewer.cpp.

    bool TQFont::isCopyOf ( const TQFont & f ) const

    -Returns TRUE if this font and f are copies of each other, i.e. +Returns true if this font and f are copies of each other, i.e. one of them was created as a copy of the other and neither has been modified since. This is much stricter than equality.

    See also operator=() and operator==().

    bool TQFont::italic () const

    -Returns TRUE if italic has been set; otherwise returns FALSE. +Returns true if italic has been set; otherwise returns false.

    See also setItalic().

    Example: chart/optionsform.cpp. @@ -589,8 +589,8 @@ it does, preferably with a list of the fonts you have installed.

    bool TQFont::operator!= ( const TQFont & f ) const

    -Returns TRUE if this font is different from f; otherwise -returns FALSE. +Returns true if this font is different from f; otherwise +returns false.

    Two TQFonts are considered to be different if their font attributes are different. If rawMode() is enabled for both fonts, only the family fields are compared. @@ -602,8 +602,8 @@ Assigns font to this font and returns a reference to it.

    bool TQFont::operator== ( const TQFont & f ) const

    -Returns TRUE if this font is equal to f; otherwise returns -FALSE. +Returns true if this font is equal to f; otherwise returns +false.

    Two TQFonts are considered equal if their font attributes are equal. If rawMode() is enabled for both fonts, only the family fields are compared. @@ -611,7 +611,7 @@ fields are compared.

    bool TQFont::overline () const

    -Returns TRUE if overline has been set; otherwise returns FALSE. +Returns true if overline has been set; otherwise returns false.

    See also setOverline().

    int TQFont::pixelSize () const @@ -636,8 +636,8 @@ specified in pixels.

    bool TQFont::rawMode () const

    -Returns TRUE if raw mode is used for font name matching; otherwise -returns FALSE. +Returns true if raw mode is used for font name matching; otherwise +returns false.

    See also setRawMode() and rawName().

    TQString TQFont::rawName () const @@ -687,20 +687,20 @@ available a family will be set using the font

    void TQFont::setFixedPitch ( bool enable )

    -If enable is TRUE, sets fixed pitch on; otherwise sets fixed +If enable is true, sets fixed pitch on; otherwise sets fixed pitch off.

    See also fixedPitch() and TQFontInfo.

    void TQFont::setItalic ( bool enable )

    -If enable is TRUE, italic is set on; otherwise italic is set +If enable is true, italic is set on; otherwise italic is set off.

    See also italic() and TQFontInfo.

    Examples: fileiconview/tqfileiconview.cpp, fonts/simple-tqfont-demo/viewer.cpp, and themes/metal.cpp.

    void TQFont::setOverline ( bool enable )

    -If enable is TRUE, sets overline on; otherwise sets overline off. +If enable is true, sets overline on; otherwise sets overline off.

    See also overline() and TQFontInfo.

    void TQFont::setPixelSize ( int pixelSize ) @@ -733,7 +733,7 @@ all platforms.

    void TQFont::setRawMode ( bool enable )

    -If enable is TRUE, turns raw mode on; otherwise turns raw mode +If enable is true, turns raw mode on; otherwise turns raw mode off. This function only has an effect under X11.

    If raw mode is enabled, TQt will search for an X font with a complete font name matching the family name, ignoring all other @@ -780,7 +780,7 @@ values for the SETWIDTH_NAME field of the XLFD.

    void TQFont::setStrikeOut ( bool enable )

    -If enable is TRUE, sets strikeout on; otherwise sets strikeout +If enable is true, sets strikeout on; otherwise sets strikeout off.

    See also strikeOut() and TQFontInfo. @@ -802,7 +802,7 @@ Sets the style strategy for the font to s.

    void TQFont::setUnderline ( bool enable )

    -If enable is TRUE, sets underline on; otherwise sets underline +If enable is true, sets underline on; otherwise sets underline off.

    See also underline() and TQFontInfo. @@ -821,7 +821,7 @@ Returns the stretch factor for the font

    bool TQFont::strikeOut () const

    -Returns TRUE if strikeout has been set; otherwise returns FALSE. +Returns true if strikeout has been set; otherwise returns false.

    See also setStrikeOut().

    StyleHint TQFont::styleHint () const @@ -872,7 +872,7 @@ in TQSettings.

    bool TQFont::underline () const

    -Returns TRUE if underline has been set; otherwise returns FALSE. +Returns true if underline has been set; otherwise returns false.

    See also setUnderline().

    int TQFont::weight () const -- cgit v1.2.3