From 48ea22d00b58a37508567756b2955582cd9efe5a Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 9 Jul 2023 20:12:14 +0900 Subject: Drop compatibility code for TQToolButton Signed-off-by: Michele Calgaro --- doc/html/porting.html | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) (limited to 'doc/html/porting.html') diff --git a/doc/html/porting.html b/doc/html/porting.html index e095549c0..50f7fb040 100644 --- a/doc/html/porting.html +++ b/doc/html/porting.html @@ -357,12 +357,12 @@ new code.
  • TQTabDialog::setTabEnabled( const char *name, bool enable )
  • TQTextStream::TQTextStream( TQString & str, int filemode )
  • TQToolBar::TQToolBar( const TQString & label, TQMainWindow *, ToolBarDock = DockTop, bool newLine = FALSE, const char *name = 0 ) -
  • TQToolButton::iconSet( bool on ) const -
  • TQToolButton::offIconSet() const -
  • TQToolButton::onIconSet() const -
  • TQToolButton::setIconSet( const TQIconSet & set, bool on ) -
  • TQToolButton::setOffIconSet( const TQIconSet & ) -
  • TQToolButton::setOnIconSet( const TQIconSet & ) +
  • TQToolButton::iconSet( bool on ) const +
  • TQToolButton::offIconSet() const +
  • TQToolButton::onIconSet() const +
  • TQToolButton::setIconSet( const TQIconSet & set, bool on ) +
  • TQToolButton::setOffIconSet( const TQIconSet & ) +
  • TQToolButton::setOnIconSet( const TQIconSet & )
  • TQToolTip::enabled()
  • TQToolTip::setEnabled( bool enable )
  • TQTranslator::find( const char *context, const char *sourceText, const char *comment = 0 ) const @@ -651,29 +651,17 @@ TQtTableView throughout.

    The TQToolButton class used to distinguish between "on" and "off" icons. In 3.0, this mechanism was moved into the TQIconSet class (see TQIconSet::State). -

    The old TQToolButton::onIconSet and TQToolButton::offIconSet -properties are still provided so that old source will compile, but -their semantics have changed: they are now synonyms for TQToolButton::iconSet. If you used that distinction in TQt 2.x, you will -need to adjust your code to use the TQIconSet On/Off mechanism. -

    Likewise, the on parameter of these two functions is now ignored: +

    The two TQToolButton::onIconSet and TQToolButton::offIconSet properties +have been removed, together with the following two functions as well.

    • void TQToolButton::setIconSet ( const TQIconSet & set, bool on )
    • TQIconSet TQToolButton::iconSet ( bool on ) const
    -

    These functions are only provided for ease of porting. New code -should use the following instead: +

    New code should use the following functions instead:

    -

    Finally, this function is no longer virtual: -

      -
    • void TQToolButton::setIconSet( const TQIconSet & set, bool on ) -
    -

    If you have a class that inherits TQToolButton and that reimplements -TQToolButton::setIconSet(), you should make the signature of the -reimplementation agree with the new TQToolButton::setIconSet(), -a virtual function.

    TQTextStream

    The global TQTextStream manipulators setw(), setfill() and setprecison() -- cgit v1.2.1