diff options
Diffstat (limited to 'doc/porting3.doc')
-rw-r--r-- | doc/porting3.doc | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/doc/porting3.doc b/doc/porting3.doc index 8d55bbe88..a099d0fef 100644 --- a/doc/porting3.doc +++ b/doc/porting3.doc @@ -648,40 +648,22 @@ QtTableView throughout. The \l QToolButton class used to distinguish between "on" and "off" icons. In 3.0, this mechanism was moved into the \l QIconSet class -(see \l QIconSet::State). - -The old \l QToolButton::onIconSet and \l QToolButton::offIconSet -properties are still provided so that old source will compile, but -their semantics have changed: they are now synonyms for \l -QToolButton::iconSet. If you used that distinction in TQt 2.x, you will -need to adjust your code to use the QIconSet On/Off mechanism. - -Likewise, the \e on parameter of these two functions is now ignored: +(see \l QIconSet::State). The two TQToolButton::onIconSet and +TQToolButton::offIconSet properties have been removed, together with +the following two functions as well. \list \i void QToolButton::setIconSet ( const QIconSet \& set, bool on ) \i QIconSet QToolButton::iconSet ( bool on ) const \endlist -These functions are only provided for ease of porting. New code -should use the following instead: +New code should use the following functions instead: \list \i void QToolButton::setIconSet( const QIconSet \& set ) \i QIconSet QToolButton::iconSet() const \endlist -Finally, this function is no longer virtual: - -\list -\i void QToolButton::setIconSet( const QIconSet \& set, bool on ) -\endlist - -If you have a class that inherits QToolButton and that reimplements -QToolButton::setIconSet(), you should make the signature of the -reimplementation agree with the new \l QToolButton::setIconSet(), -a virtual function. - \section1 QTextStream The global QTextStream manipulators setw(), setfill() and setprecison() |