@ -80,9 +74,7 @@ commands or options, usually used inside a TQToolBar.
<liclass=fn>bool <ahref="#autoRaise-prop"><b>autoRaise</b></a> - whether auto-raising is enabled</li>
<liclass=fn>bool <ahref="#autoRaise-prop"><b>autoRaise</b></a> - whether auto-raising is enabled</li>
<liclass=fn>BackgroundMode <ahref="#backgroundMode-prop"><b>backgroundMode</b></a> - the toolbutton's background mode <em>(read only)</em></li>
<liclass=fn>BackgroundMode <ahref="#backgroundMode-prop"><b>backgroundMode</b></a> - the toolbutton's background mode <em>(read only)</em></li>
<liclass=fn>TQIconSet <ahref="#iconSet-prop"><b>iconSet</b></a> - the icon set providing the icon shown on the button</li>
<liclass=fn>TQIconSet <ahref="#iconSet-prop"><b>iconSet</b></a> - the icon set providing the icon shown on the button</li>
<liclass=fn>TQIconSet offIconSet - the icon set that is used when the button is in an "off" state <em>(obsolete)</em></li>
<liclass=fn>bool <ahref="#on-prop"><b>on</b></a> - whether this tool button is on</li>
<liclass=fn>bool <ahref="#on-prop"><b>on</b></a> - whether this tool button is on</li>
<liclass=fn>TQIconSet onIconSet - the icon set that is used when the button is in an "on" state <em>(obsolete)</em></li>
<liclass=fn>TQPixmap <ahref="#pixmap-prop"><b>pixmap</b></a> - the pixmap of the button <em>(read only)</em></li>
<liclass=fn>TQPixmap <ahref="#pixmap-prop"><b>pixmap</b></a> - the pixmap of the button <em>(read only)</em></li>
<liclass=fn>int <ahref="#popupDelay-prop"><b>popupDelay</b></a> - the time delay between pressing the button and the appearance of the associated popup menu in milliseconds</li>
<liclass=fn>int <ahref="#popupDelay-prop"><b>popupDelay</b></a> - the time delay between pressing the button and the appearance of the associated popup menu in milliseconds</li>
<liclass=fn>TQString <ahref="#textLabel-prop"><b>textLabel</b></a> - the label of this button</li>
<liclass=fn>TQString <ahref="#textLabel-prop"><b>textLabel</b></a> - the label of this button</li>
@ -171,21 +163,7 @@ See the <a href="ntqtoolbutton.html#autoRaise-prop">"autoRaise"</a> property for
<p>This property holds the icon set that is used when the button is in an "off" state.
<p><b>This property is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> Since TQt 3.0, <ahref="ntqiconset.html">TQIconSet</a> contains both the On and Off icons. There is
now an <ahref="#iconSet-prop">TQToolButton::iconSet</a> property that replaces both <ahref="#onIconSet-prop">TQToolButton::onIconSet</a> and <ahref="#offIconSet-prop">TQToolButton::offIconSet</a>.
<p> For ease of porting, this property is a synonym for <ahref="#iconSet-prop">TQToolButton::iconSet</a>. You probably want to go over your application
code and use the TQIconSet On/Off mechanism.
<p><p>See also <ahref="#iconSet-prop">iconSet</a> and <ahref="ntqiconset.html#State-enum">TQIconSet::State</a>.
<p>Set this property's value with <ahref="#setOffIconSet">setOffIconSet</a>() and get this property's value with <ahref="#offIconSet">offIconSet</a>().
<h3class=fn>bool <aname="on-prop"></a>on</h3>
<h3class=fn>bool <aname="on-prop"></a>on</h3>
<p>This property holds whether this tool button is on.
<p>This property holds whether this tool button is on.
<p>This property has no effect on <ahref="ntqbutton.html#isToggleButton">non-toggling
<p>This property has no effect on <ahref="ntqbutton.html#isToggleButton">non-toggling
buttons.</a> The default is FALSE (i.e. off).
buttons.</a> The default is FALSE (i.e. off).
<p><p>See also <ahref="#toggleButton-prop">toggleButton</a> and <ahref="#toggle">toggle</a>().
<p><p>See also <ahref="#toggleButton-prop">toggleButton</a> and <ahref="#toggle">toggle</a>().
<p>Set this property's value with <ahref="#setOn">setOn</a>().
<p>Set this property's value with <ahref="#setOn">setOn</a>().
<p>This property holds the icon set that is used when the button is in an "on" state.
<p><b>This property is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> Since TQt 3.0, <ahref="ntqiconset.html">TQIconSet</a> contains both the On and Off icons. There is
now an <ahref="#iconSet-prop">TQToolButton::iconSet</a> property that replaces both <ahref="#onIconSet-prop">TQToolButton::onIconSet</a> and <ahref="#offIconSet-prop">TQToolButton::offIconSet</a>.
<p> For ease of porting, this property is a synonym for <ahref="#iconSet-prop">TQToolButton::iconSet</a>. You probably want to go over your application
code and use the TQIconSet On/Off mechanism.
<p><p>See also <ahref="#iconSet-prop">iconSet</a> and <ahref="ntqiconset.html#State-enum">TQIconSet::State</a>.
<p>Set this property's value with <ahref="#setOnIconSet">setOnIconSet</a>() and get this property's value with <ahref="#onIconSet">onIconSet</a>().
<h3class=fn><ahref="ntqpixmap.html">TQPixmap</a><aname="pixmap-prop"></a>pixmap</h3><p>This property holds the pixmap of the button.
<h3class=fn><ahref="ntqpixmap.html">TQPixmap</a><aname="pixmap-prop"></a>pixmap</h3><p>This property holds the pixmap of the button.
<p>The pixmap property has no meaning for tool buttons. Use the
<p>The pixmap property has no meaning for tool buttons. Use the
<aname="21"></a><p> The <ahref="ntqtoolbutton.html">TQToolButton</a> class used to distinguish between "on" and "off"
<aname="21"></a><p> The <ahref="ntqtoolbutton.html">TQToolButton</a> class used to distinguish between "on" and "off"
icons. In 3.0, this mechanism was moved into the <ahref="ntqiconset.html">TQIconSet</a> class
icons. In 3.0, this mechanism was moved into the <ahref="ntqiconset.html">TQIconSet</a> class
(see <ahref="ntqiconset.html#State-enum">TQIconSet::State</a>).
(see <ahref="ntqiconset.html#State-enum">TQIconSet::State</a>).
<p> The old <ahref="ntqtoolbutton.html#onIconSet-prop">TQToolButton::onIconSet</a> and <ahref="ntqtoolbutton.html#offIconSet-prop">TQToolButton::offIconSet</a>
<p> The two TQToolButton::onIconSet and TQToolButton::offIconSet properties
properties are still provided so that old source will compile, but
have been removed, together with the following two functions as well.
their semantics have changed: they are now synonyms for <ahref="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 <ahref="ntqiconset.html">TQIconSet</a> On/Off mechanism.
<p> Likewise, the <em>on</em> parameter of these two functions is now ignored:
<p><ul>
<p><ul>
<li> void TQToolButton::setIconSet ( const TQIconSet & set, bool on )
<li> void TQToolButton::setIconSet ( const TQIconSet & set, bool on )
<li> TQIconSet TQToolButton::iconSet ( bool on ) const
<li> TQIconSet TQToolButton::iconSet ( bool on ) const
</ul>
</ul>
<p> These functions are only provided for ease of porting. New code
<p> New code should use the following functions instead:
should use the following instead:
<p><ul>
<p><ul>
<li> void <ahref="ntqtoolbutton.html#setIconSet">TQToolButton::setIconSet</a>( const TQIconSet & set )
<li> void <ahref="ntqtoolbutton.html#setIconSet">TQToolButton::setIconSet</a>( const TQIconSet & set )
@ -4234,34 +4234,6 @@ pixmap. There is no default iconset.
<p>Set this property's value with <a href="ntqtoolbutton.html#setIconSet">setIconSet</a>() and get this property's value with <a href="ntqtoolbutton.html#iconSet">iconSet</a>().
<p>Set this property's value with <a href="ntqtoolbutton.html#setIconSet">setIconSet</a>() and get this property's value with <a href="ntqtoolbutton.html#iconSet">iconSet</a>().
</doc>
</doc>
</property>
</property>
<property>
<name>QToolButton::offIconSet</name>
<doc href="ntqtoolbutton.html#offIconSet-prop">
<p>This property holds the icon set that is used when the button is in an "off" state.
<p><b>This property is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> Since TQt 3.0, <a href="ntqiconset.html">QIconSet</a> contains both the On and Off icons. There is
now an <a href="ntqtoolbutton.html#iconSet-prop">QToolButton::iconSet</a> property that replaces both <a href="ntqtoolbutton.html#onIconSet-prop">QToolButton::onIconSet</a> and <a href="ntqtoolbutton.html#offIconSet-prop">QToolButton::offIconSet</a>.
<p> For ease of porting, this property is a synonym for <a href="ntqtoolbutton.html#iconSet-prop">QToolButton::iconSet</a>. You probably want to go over your application
code and use the QIconSet On/Off mechanism.
<p> <p>See also <a href="ntqtoolbutton.html#iconSet-prop">iconSet</a> and <a href="ntqiconset.html#State-enum">QIconSet::State</a>.
<p>Set this property's value with <a href="ntqtoolbutton.html#setOffIconSet">setOffIconSet</a>() and get this property's value with <a href="ntqtoolbutton.html#offIconSet">offIconSet</a>().
</doc>
</property>
<property>
<name>QToolButton::onIconSet</name>
<doc href="ntqtoolbutton.html#onIconSet-prop">
<p>This property holds the icon set that is used when the button is in an "on" state.
<p><b>This property is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> Since TQt 3.0, <a href="ntqiconset.html">QIconSet</a> contains both the On and Off icons. There is
now an <a href="ntqtoolbutton.html#iconSet-prop">QToolButton::iconSet</a> property that replaces both <a href="ntqtoolbutton.html#onIconSet-prop">QToolButton::onIconSet</a> and <a href="ntqtoolbutton.html#offIconSet-prop">QToolButton::offIconSet</a>.
<p> For ease of porting, this property is a synonym for <a href="ntqtoolbutton.html#iconSet-prop">QToolButton::iconSet</a>. You probably want to go over your application
code and use the QIconSet On/Off mechanism.
<p> <p>See also <a href="ntqtoolbutton.html#iconSet-prop">iconSet</a> and <a href="ntqiconset.html#State-enum">QIconSet::State</a>.
<p>Set this property's value with <a href="ntqtoolbutton.html#setOnIconSet">setOnIconSet</a>() and get this property's value with <a href="ntqtoolbutton.html#onIconSet">onIconSet</a>().
.BI "QIconSet \fBiconSet\fR - the icon set providing the icon shown on the button"
.BI "QIconSet \fBiconSet\fR - the icon set providing the icon shown on the button"
.br
.br
.ti -1c
.ti -1c
.BI "QIconSet offIconSet - the icon set that is used when the button is in an ""off"" state \fI(obsolete)\fR"
.br
.ti -1c
.BI "bool \fBon\fR - whether this tool button is on"
.BI "bool \fBon\fR - whether this tool button is on"
.br
.br
.ti -1c
.ti -1c
.BI "QIconSet onIconSet - the icon set that is used when the button is in an ""on"" state \fI(obsolete)\fR"
.br
.ti -1c
.BI "QPixmap \fBpixmap\fR - the pixmap of the button \fI(read " "only" ")\fR"
.BI "QPixmap \fBpixmap\fR - the pixmap of the button \fI(read " "only" ")\fR"
.br
.br
.ti -1c
.ti -1c
@ -209,18 +185,6 @@ Destroys the object and frees any allocated resources.
Returns TRUE if auto-raising is enabled; otherwise returns FALSE. See the "autoRaise" property for details.
Returns TRUE if auto-raising is enabled; otherwise returns FALSE. See the "autoRaise" property for details.
.SH "QIconSet QToolButton::iconSet () const"
.SH "QIconSet QToolButton::iconSet () const"
Returns the icon set providing the icon shown on the button. See the "iconSet" property for details.
Returns the icon set providing the icon shown on the button. See the "iconSet" property for details.
.SH "QIconSet QToolButton::iconSet ( bool on ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
Since TQt 3.0, QIconSet contains both the On and Off icons.
.PP
For ease of porting, this function ignores the \fIon\fR parameter and returns the iconSet property. If you relied on the \fIon\fR parameter, you probably want to update your code to use the QIconSet On/Off mechanism.
.SH "QIconSet QToolButton::offIconSet () const"
Returns the icon set that is used when the button is in an "off" state. See the "offIconSet" property for details.
.SH "QIconSet QToolButton::onIconSet () const"
Returns the icon set that is used when the button is in an "on" state. See the "onIconSet" property for details.
.SH "void QToolButton::openPopup ()"
.SH "void QToolButton::openPopup ()"
Opens (pops up) the associated popup menu. If there is no such menu, this function does nothing. This function does not return until the popup menu has been closed by the user.
Opens (pops up) the associated popup menu. If there is no such menu, this function does nothing. This function does not return until the popup menu has been closed by the user.
.SH "QPopupMenu * QToolButton::popup () const"
.SH "QPopupMenu * QToolButton::popup () const"
@ -233,22 +197,8 @@ Returns the time delay between pressing the button and the appearance of the ass
Sets whether auto-raising is enabled to \fIenable\fR. See the "autoRaise" property for details.
Sets whether auto-raising is enabled to \fIenable\fR. See the "autoRaise" property for details.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
Since TQt 3.0, QIconSet contains both the On and Off icons.
.PP
For ease of porting, this function ignores the \fIon\fR parameter and sets the iconSet property. If you relied on the \fIon\fR parameter, you probably want to update your code to use the QIconSet On/Off mechanism.
Associates the popup menu \fIpopup\fR with this tool button.
Associates the popup menu \fIpopup\fR with this tool button.
.PP
.PP
@ -312,18 +262,6 @@ Setting this property sets QToolButton::pixmap to a null pixmap. There is no def
See also pixmap, toggleButton, and on.
See also pixmap, toggleButton, and on.
.PP
.PP
Set this property's value with setIconSet() and get this property's value with iconSet().
Set this property's value with setIconSet() and get this property's value with iconSet().
.SH "QIconSet offIconSet"
This property holds the icon set that is used when the button is in an "off" state.
.PP
\fBThis property is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
Since TQt 3.0, QIconSet contains both the On and Off icons. There is now an QToolButton::iconSet property that replaces both QToolButton::onIconSet and QToolButton::offIconSet.
.PP
For ease of porting, this property is a synonym for QToolButton::iconSet. You probably want to go over your application code and use the QIconSet On/Off mechanism.
.PP
See also iconSet and QIconSet::State.
.PP
Set this property's value with setOffIconSet() and get this property's value with offIconSet().
.SH "bool on"
.SH "bool on"
This property holds whether this tool button is on.
This property holds whether this tool button is on.
.PP
.PP
@ -332,18 +270,6 @@ This property has no effect on non-toggling buttons. The default is FALSE (i.e.
See also toggleButton and toggle().
See also toggleButton and toggle().
.PP
.PP
Set this property's value with setOn().
Set this property's value with setOn().
.SH "QIconSet onIconSet"
This property holds the icon set that is used when the button is in an "on" state.
.PP
\fBThis property is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
Since TQt 3.0, QIconSet contains both the On and Off icons. There is now an QToolButton::iconSet property that replaces both QToolButton::onIconSet and QToolButton::offIconSet.
.PP
For ease of porting, this property is a synonym for QToolButton::iconSet. You probably want to go over your application code and use the QIconSet On/Off mechanism.
.PP
See also iconSet and QIconSet::State.
.PP
Set this property's value with setOnIconSet() and get this property's value with onIconSet().