diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-09 20:12:14 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-09 20:27:54 +0900 |
commit | 48ea22d00b58a37508567756b2955582cd9efe5a (patch) | |
tree | 76e251dab44dbcab7e11a0859423edfe33eae82f /doc/porting3.doc | |
parent | b1bfbe79f38a8682e024577c8fd4ba4d1b32b5dd (diff) | |
download | tqt3-48ea22d00b58a37508567756b2955582cd9efe5a.tar.gz tqt3-48ea22d00b58a37508567756b2955582cd9efe5a.zip |
Drop compatibility code for TQToolButton
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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 8d55bbe8..a099d0fe 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() |