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/html/porting.html | |
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/html/porting.html')
-rw-r--r-- | doc/html/porting.html | 30 |
1 files changed, 9 insertions, 21 deletions
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. <li> <a href="ntqtabdialog.html#setTabEnabled">TQTabDialog::setTabEnabled</a>( const char *name, bool enable ) <li> <a href="ntqtextstream.html#TQTextStream">TQTextStream::TQTextStream</a>( TQString & str, int filemode ) <li> <a href="ntqtoolbar.html#TQToolBar">TQToolBar::TQToolBar</a>( const TQString & label, <a href="ntqmainwindow.html">TQMainWindow</a> *, ToolBarDock = DockTop, bool newLine = FALSE, const char *name = 0 ) -<li> <a href="ntqtoolbutton.html#iconSet">TQToolButton::iconSet</a>( bool on ) const -<li> <a href="ntqtoolbutton.html#offIconSet">TQToolButton::offIconSet</a>() const -<li> <a href="ntqtoolbutton.html#onIconSet">TQToolButton::onIconSet</a>() const -<li> <a href="ntqtoolbutton.html#setIconSet">TQToolButton::setIconSet</a>( const <a href="ntqiconset.html">TQIconSet</a> & set, bool on ) -<li> <a href="ntqtoolbutton.html#setOffIconSet">TQToolButton::setOffIconSet</a>( const TQIconSet & ) -<li> <a href="ntqtoolbutton.html#setOnIconSet">TQToolButton::setOnIconSet</a>( const TQIconSet & ) +<li> TQToolButton::iconSet( bool on ) const +<li> TQToolButton::offIconSet() const +<li> TQToolButton::onIconSet() const +<li> TQToolButton::setIconSet( const <a href="ntqiconset.html">TQIconSet</a> & set, bool on ) +<li> TQToolButton::setOffIconSet( const TQIconSet & ) +<li> TQToolButton::setOnIconSet( const TQIconSet & ) <li> <a href="ntqtooltip.html#enabled">TQToolTip::enabled</a>() <li> <a href="ntqtooltip.html#setEnabled">TQToolTip::setEnabled</a>( bool enable ) <li> <a href="ntqtranslator.html#find">TQTranslator::find</a>( const char *context, const char *sourceText, const char *comment = 0 ) const @@ -651,29 +651,17 @@ TQtTableView throughout. <a name="21"></a><p> The <a href="ntqtoolbutton.html">TQToolButton</a> class used to distinguish between "on" and "off" icons. In 3.0, this mechanism was moved into the <a href="ntqiconset.html">TQIconSet</a> class (see <a href="ntqiconset.html#State-enum">TQIconSet::State</a>). -<p> The old <a href="ntqtoolbutton.html#onIconSet-prop">TQToolButton::onIconSet</a> and <a href="ntqtoolbutton.html#offIconSet-prop">TQToolButton::offIconSet</a> -properties are still provided so that old source will compile, but -their semantics have changed: they are now synonyms for <a href="ntqtoolbutton.html#iconSet-prop">TQToolButton::iconSet</a>. If you used that distinction in TQt 2.x, you will -need to adjust your code to use the <a href="ntqiconset.html">TQIconSet</a> On/Off mechanism. -<p> Likewise, the <em>on</em> parameter of these two functions is now ignored: +<p> The two TQToolButton::onIconSet and TQToolButton::offIconSet properties +have been removed, together with the following two functions as well. <p> <ul> <li> void TQToolButton::setIconSet ( const TQIconSet & set, bool on ) <li> TQIconSet TQToolButton::iconSet ( bool on ) const </ul> -<p> These functions are only provided for ease of porting. New code -should use the following instead: +<p> New code should use the following functions instead: <p> <ul> <li> void <a href="ntqtoolbutton.html#setIconSet">TQToolButton::setIconSet</a>( const TQIconSet & set ) <li> TQIconSet <a href="ntqtoolbutton.html#iconSet">TQToolButton::iconSet</a>() const </ul> -<p> Finally, this function is no longer virtual: -<p> <ul> -<li> void TQToolButton::setIconSet( const TQIconSet & set, bool on ) -</ul> -<p> If you have a class that inherits <a href="ntqtoolbutton.html">TQToolButton</a> and that reimplements -TQToolButton::setIconSet(), you should make the signature of the -reimplementation agree with the new <a href="ntqtoolbutton.html#setIconSet">TQToolButton::setIconSet</a>(), -a virtual function. <p> <h2> <a href="ntqtextstream.html">TQTextStream</a> </h2> <a name="22"></a><p> The global TQTextStream manipulators setw(), setfill() and setprecison() |