diff --git a/doc/html/ntqpalette.html b/doc/html/ntqpalette.html index b79a13c5..dfc7d6ff 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 5629a198..ee8cb52b 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 6d36bf14..5ae3ef1d 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 d4fe39b0..59e13d86 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 ca9d18e0..c6068979 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 9efd2a77..696919b4 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 ) diff --git a/src/kernel/ntqpalette.h b/src/kernel/ntqpalette.h index 274228c4..7b0d6f0a 100644 --- a/src/kernel/ntqpalette.h +++ b/src/kernel/ntqpalette.h @@ -122,7 +122,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; @@ -137,16 +137,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/src/kernel/qpalette.cpp b/src/kernel/qpalette.cpp index 31f45c05..b1ed971f 100644 --- a/src/kernel/qpalette.cpp +++ b/src/kernel/qpalette.cpp @@ -548,9 +548,7 @@ bool TQColorGroup::operator==( const TQColorGroup &g ) const 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(). @@ -568,30 +566,8 @@ bool TQColorGroup::operator==( const TQColorGroup &g ) const \value Active \value Inactive \value NColorGroups - \value Normal synonym for Active */ -/*! - \obsolete - - \fn const TQColorGroup &TQPalette::normal() const - - Returns the active color group. Use active() instead. - - \sa setActive() active() -*/ - -/*! - \obsolete - - \fn void TQPalette::setNormal( const TQColorGroup & cg ) - - Sets the active color group to \a cg. Use setActive() instead. - - \sa setActive() active() -*/ - - static int palette_count = 1; /*!