From fb6884ead2891c09ee54fca2d753fb8d34359e28 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 18 Jul 2023 17:22:13 +0900 Subject: Drop compatibility code for TQPalette Signed-off-by: Michele Calgaro --- doc/html/ntqpalette.html | 23 ++--------------------- doc/html/porting.html | 3 ++- doc/html/qpalette-h.html | 8 +------- doc/html/qpalette-members.html | 2 -- 4 files changed, 5 insertions(+), 31 deletions(-) (limited to 'doc/html') diff --git a/doc/html/ntqpalette.html b/doc/html/ntqpalette.html index b79a13c5e..dfc7d6ff0 100644 --- a/doc/html/ntqpalette.html +++ b/doc/html/ntqpalette.html @@ -44,7 +44,7 @@ body { background: #ffffff; color: black; }
  • TQPalette ( const TQPalette & p )
  • ~TQPalette ()
  • TQPalette & operator= ( const TQPalette & p )
  • -
  • enum ColorGroup { Disabled, Active, Inactive, NColorGroups, Normal = Active }
  • +
  • enum ColorGroup { Disabled, Active, Inactive, NColorGroups }
  • const TQColor & color ( ColorGroup gr, TQColorGroup::ColorRole r ) const
  • const TQBrush & brush ( ColorGroup gr, TQColorGroup::ColorRole r ) const
  • void setColor ( ColorGroup gr, TQColorGroup::ColorRole r, const TQColor & c )
  • @@ -55,11 +55,9 @@ body { background: #ffffff; color: black; }
  • const TQColorGroup & active () const
  • const TQColorGroup & disabled () const
  • const TQColorGroup & inactive () const
  • -
  • const TQColorGroup & normal () const  (obsolete)
  • void setActive ( const TQColorGroup & g )
  • void setDisabled ( const TQColorGroup & g )
  • void setInactive ( const TQColorGroup & g )
  • -
  • void setNormal ( const TQColorGroup & cg )  (obsolete)
  • bool operator== ( const TQPalette & p ) const
  • bool operator!= ( const TQPalette & p ) const
  • bool isCopyOf ( const TQPalette & p )
  • @@ -98,9 +96,7 @@ disabled for some reason. 2000 style and Macintosh Platinum style, the two styles look slightly different.

    There are setActive(), setInactive(), and setDisabled() functions -to modify the palette. (TQt also supports a normal() group; this is -an obsolete alias for active(), supported for backwards -compatibility.) +to modify the palette.

    Colors and brushes can be set for particular roles in any of a palette's color groups with setColor() and setBrush().

    You can copy a palette using the copy constructor and test to see @@ -115,7 +111,6 @@ if two palettes are identical using isCopyOf().

  • TQPalette::Active
  • TQPalette::Inactive
  • TQPalette::NColorGroups -
  • TQPalette::Normal - synonym for Active

    Member Function Documentation

    TQPalette::TQPalette () @@ -195,13 +190,6 @@ was subsequently modified; otherwise returns FALSE. This is much stricter than equality.

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

    const TQColorGroup & TQPalette::normal () const -

    -This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. -

    -

    Returns the active color group. Use active() instead. -

    See also setActive() and active(). -

    bool TQPalette::operator!= ( const TQPalette & p ) const

    @@ -273,13 +261,6 @@ Sets the Disabled color group to g. Sets the Inactive color group to g.

    See also active(), setDisabled(), setActive(), and TQColorGroup. -

    void TQPalette::setNormal ( const TQColorGroup & cg ) -

    -This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. -

    -

    Sets the active color group to cg. Use setActive() instead. -

    See also setActive() and active(). -


    Related Functions

    TQDataStream & operator<< ( TQDataStream & s, const TQPalette & p )

    diff --git a/doc/html/porting.html b/doc/html/porting.html index 5629a1983..ee8cb52b4 100644 --- a/doc/html/porting.html +++ b/doc/html/porting.html @@ -257,6 +257,8 @@ have been changed:
  • TQMenuBar::setWindowsAltMode()
  • TQObject::initMetaObject()
  • TQPainter::drawQuadBezier() +
  • TQPalette::normal(). Use TQPalette::active instead. +
  • TQPalette::setNormal(). Use TQPalette::setActive instead.
  • TQPointArray::quadBezier()
  • TQRegExp::find()
  • TQSpinBox::downButton() @@ -355,7 +357,6 @@ new code.
  • TQMessageBox::message( const TQString & caption, const TQString & text, const TQString & buttonText = TQString::null, TQWidget *parent = 0, const char *= 0 )
  • TQMessageBox::query( const TQString & caption, const TQString & text, const TQString & yesButtonText = TQString::null, const TQString & noButtonText = TQString::null, TQWidget *parent = 0, const char *= 0 )
  • TQMessageBox::standardIcon( Icon icon, GUIStyle style ) -
  • TQPalette::normal()
  • TQRegExp::match( const TQString & str, int index = 0, int *len = 0, bool indexIsStart = TRUE ) const
  • TQScrollView::childIsVisible( TQWidget *child )
  • TQScrollView::showChild( TQWidget *child, bool show = TRUE ) diff --git a/doc/html/qpalette-h.html b/doc/html/qpalette-h.html index 6d36bf14a..5ae3ef1d1 100644 --- a/doc/html/qpalette-h.html +++ b/doc/html/qpalette-h.html @@ -158,7 +158,7 @@ public: ~TQPalette(); TQPalette &operator=( const TQPalette & ); - enum ColorGroup { Disabled, Active, Inactive, NColorGroups, Normal=Active }; + enum ColorGroup { Disabled, Active, Inactive, NColorGroups }; const TQColor &color( ColorGroup, TQColorGroup::ColorRole ) const; const TQBrush &brush( ColorGroup, TQColorGroup::ColorRole ) const; @@ -173,16 +173,10 @@ public: const TQColorGroup &active() const { return data->active; } const TQColorGroup &disabled() const { return data->disabled; } const TQColorGroup &inactive() const { return data->inactive; } -#ifndef TQT_NO_COMPAT - const TQColorGroup &normal() const { return active(); } -#endif void setActive( const TQColorGroup & ); void setDisabled( const TQColorGroup & ); void setInactive( const TQColorGroup & ); -#ifndef TQT_NO_COMPAT - void setNormal( const TQColorGroup & cg ) { setActive(cg); } -#endif bool operator==( const TQPalette &p ) const; bool operator!=( const TQPalette &p ) const diff --git a/doc/html/qpalette-members.html b/doc/html/qpalette-members.html index d4fe39b03..59e13d869 100644 --- a/doc/html/qpalette-members.html +++ b/doc/html/qpalette-members.html @@ -44,7 +44,6 @@ body { background: #ffffff; color: black; }
  • disabled()
  • inactive()
  • isCopyOf() -
  • normal()
  • operator!=()
  • operator=()
  • operator==() @@ -54,7 +53,6 @@ body { background: #ffffff; color: black; }
  • setColor()
  • setDisabled()
  • setInactive() -
  • setNormal()


    -- cgit v1.2.3