summaryrefslogtreecommitdiffstats
path: root/doc/html/porting.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-09 20:12:14 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-09 20:27:54 +0900
commit48ea22d00b58a37508567756b2955582cd9efe5a (patch)
tree76e251dab44dbcab7e11a0859423edfe33eae82f /doc/html/porting.html
parentb1bfbe79f38a8682e024577c8fd4ba4d1b32b5dd (diff)
downloadtqt3-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.html30
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 &amp; str, int filemode )
<li> <a href="ntqtoolbar.html#TQToolBar">TQToolBar::TQToolBar</a>( const TQString &amp; 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> &amp; set, bool on )
-<li> <a href="ntqtoolbutton.html#setOffIconSet">TQToolButton::setOffIconSet</a>( const TQIconSet &amp; )
-<li> <a href="ntqtoolbutton.html#setOnIconSet">TQToolButton::setOnIconSet</a>( const TQIconSet &amp; )
+<li> TQToolButton::iconSet( bool on ) const
+<li> TQToolButton::offIconSet() const
+<li> TQToolButton::onIconSet() const
+<li> TQToolButton::setIconSet( const <a href="ntqiconset.html">TQIconSet</a> &amp; set, bool on )
+<li> TQToolButton::setOffIconSet( const TQIconSet &amp; )
+<li> TQToolButton::setOnIconSet( const TQIconSet &amp; )
<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 &amp; 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 &amp; 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 &amp; 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()