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 -- doc/man/man3/tqpalette.3qt | 24 ++---------------------- doc/porting3.doc | 3 ++- 6 files changed, 9 insertions(+), 54 deletions(-) (limited to 'doc') 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()


    diff --git a/doc/man/man3/tqpalette.3qt b/doc/man/man3/tqpalette.3qt index ca9d18e0e..c60689795 100644 --- a/doc/man/man3/tqpalette.3qt +++ b/doc/man/man3/tqpalette.3qt @@ -35,7 +35,7 @@ QPalette \- Color groups for each widget state .BI "QPalette & \fBoperator=\fR ( const QPalette & p )" .br .ti -1c -.BI "enum \fBColorGroup\fR { Disabled, Active, Inactive, NColorGroups, Normal = Active }" +.BI "enum \fBColorGroup\fR { Disabled, Active, Inactive, NColorGroups }" .br .ti -1c .BI "const QColor & \fBcolor\fR ( ColorGroup gr, QColorGroup::ColorRole r ) const" @@ -68,9 +68,6 @@ QPalette \- Color groups for each widget state .BI "const QColorGroup & \fBinactive\fR () const" .br .ti -1c -.BI "const QColorGroup & normal () const \fI(obsolete)\fR" -.br -.ti -1c .BI "void \fBsetActive\fR ( const QColorGroup & g )" .br .ti -1c @@ -80,9 +77,6 @@ QPalette \- Color groups for each widget state .BI "void \fBsetInactive\fR ( const QColorGroup & g )" .br .ti -1c -.BI "void setNormal ( const QColorGroup & cg ) \fI(obsolete)\fR" -.br -.ti -1c .BI "bool \fBoperator==\fR ( const QPalette & p ) const" .br .ti -1c @@ -123,7 +117,7 @@ Both active and inactive windows can contain disabled widgets. (Disabled widgets .PP In Motif style, active() and inactive() look the same. In Windows 2000 style and Macintosh Platinum style, the two styles look slightly different. .PP -There are setActive(), setInactive(), and setDisabled() functions to modify the palette. (Qt also supports a normal() group; this is an obsolete alias for active(), supported for backwards compatibility.) +There are setActive(), setInactive(), and setDisabled() functions to modify the palette. .PP Colors and brushes can be set for particular roles in any of a palette's color groups with setColor() and setBrush(). .PP @@ -140,8 +134,6 @@ See also QApplication::setPalette(), QWidget::palette, QColorGroup, QColor, Widg \fCQPalette::Inactive\fR .TP \fCQPalette::NColorGroups\fR -.TP -\fCQPalette::Normal\fR - synonym for Active .SH MEMBER FUNCTION DOCUMENTATION .SH "QPalette::QPalette ()" Constructs a palette that consists of color groups with only black colors. @@ -195,12 +187,6 @@ See also QColorGroup, setInactive(), active(), and disabled(). Returns TRUE if this palette and \fIp\fR are copies of each other, i.e. one of them was created as a copy of the other and neither was subsequently modified; otherwise returns FALSE. This is much stricter than equality. .PP See also operator=() and operator==(). -.SH "const QColorGroup & QPalette::normal () const" -\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. -.PP -Returns the active color group. Use active() instead. -.PP -See also setActive() and active(). .SH "bool QPalette::operator!= ( const QPalette & p ) const" Returns TRUE (slowly) if this palette is different from \fIp\fR; otherwise returns FALSE (usually quickly). .SH "QPalette & QPalette::operator= ( const QPalette & p )" @@ -251,12 +237,6 @@ See also disabled(), setActive(), and setInactive(). Sets the Inactive color group to \fIg\fR. .PP See also active(), setDisabled(), setActive(), and QColorGroup. -.SH "void QPalette::setNormal ( const QColorGroup & cg )" -\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. -.PP -Sets the active color group to \fIcg\fR. Use setActive() instead. -.PP -See also setActive() and active(). .SH RELATED FUNCTION DOCUMENTATION .SH "QDataStream & operator<< ( QDataStream & s, const QPalette & p )" Writes the palette, \fIp\fR to the stream \fIs\fR and returns a reference to the stream. diff --git a/doc/porting3.doc b/doc/porting3.doc index 9efd2a77e..696919b41 100644 --- a/doc/porting3.doc +++ b/doc/porting3.doc @@ -206,6 +206,8 @@ All these functions have been removed in TQt 3.x: \i QMenuBar::setWindowsAltMode() \i QObject::initMetaObject() \i QPainter::drawQuadBezier() +\i QPalette::normal(). Use TQPalette::active instead. +\i QPalette::setNormal(). Use TQPalette::setActive instead. \i QPointArray::quadBezier() \i QRegExp::find() \i QSpinBox::downButton() @@ -308,7 +310,6 @@ new code. \i QMessageBox::message( const QString \& caption, const QString \& text, const QString \& buttonText = QString::null, QWidget *parent = 0, const char *= 0 ) \i QMessageBox::query( const QString \& caption, const QString \& text, const QString \& yesButtonText = QString::null, const QString \& noButtonText = QString::null, QWidget *parent = 0, const char *= 0 ) \i QMessageBox::standardIcon( Icon icon, GUIStyle style ) -\i QPalette::normal() \i QRegExp::match( const QString \& str, int index = 0, int *len = 0, bool indexIsStart = TRUE ) const \i QScrollView::childIsVisible( QWidget *child ) \i QScrollView::showChild( QWidget *child, bool show = TRUE ) -- cgit v1.2.1