Drop compatibility code for TQButton

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/86/head
Michele Calgaro 10 months ago
parent 9492e618a7
commit c3bb88817b
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -56,8 +56,6 @@ widgets, providing functionality common to buttons.
<li class=fn>bool <a href="#isOn"><b>isOn</b></a> () const</li>
<li class=fn>enum <a href="#ToggleState-enum"><b>ToggleState</b></a> { Off, NoChange, On }</li>
<li class=fn>ToggleState <a href="#state"><b>state</b></a> () const</li>
<li class=fn>bool autoResize () const &nbsp;<em>(obsolete)</em></li>
<li class=fn>void setAutoResize ( bool ) &nbsp;<em>(obsolete)</em></li>
<li class=fn>bool <a href="#autoRepeat"><b>autoRepeat</b></a> () const</li>
<li class=fn>virtual void <a href="#setAutoRepeat"><b>setAutoRepeat</b></a> ( bool )</li>
<li class=fn>bool <a href="#isExclusiveToggle"><b>isExclusiveToggle</b></a> () const</li>
@ -80,7 +78,6 @@ widgets, providing functionality common to buttons.
<ul>
<li class=fn>TQKeySequence <a href="#accel-prop"><b>accel</b></a>&nbsp;- the accelerator associated with the button</li>
<li class=fn>bool <a href="#autoRepeat-prop"><b>autoRepeat</b></a>&nbsp;- whether autoRepeat is enabled</li>
<li class=fn>bool autoResize&nbsp;- whether autoResize is enabled &nbsp;<em>(obsolete)</em></li>
<li class=fn>bool <a href="#down-prop"><b>down</b></a>&nbsp;- whether the button is pressed</li>
<li class=fn>bool <a href="#exclusiveToggle-prop"><b>exclusiveToggle</b></a>&nbsp;- whether the button is an exclusive toggle &nbsp;<em>(read only)</em></li>
<li class=fn>bool <a href="#on-prop"><b>on</b></a>&nbsp;- whether the button is toggled &nbsp;<em>(read only)</em></li>
@ -231,9 +228,6 @@ short while later.
<h3 class=fn>bool <a name="autoRepeat"></a>TQButton::autoRepeat () const
</h3><p>Returns TRUE if autoRepeat is enabled; otherwise returns FALSE.
See the <a href="ntqbutton.html#autoRepeat-prop">"autoRepeat"</a> property for details.
<h3 class=fn>bool <a name="autoResize"></a>TQButton::autoResize () const
</h3><p>Returns TRUE if autoResize is enabled; otherwise returns FALSE.
See the <a href="ntqbutton.html#autoResize-prop">"autoResize"</a> property for details.
<h3 class=fn>void <a name="clicked"></a>TQButton::clicked ()<tt> [signal]</tt>
</h3>
@ -320,9 +314,6 @@ See the <a href="ntqbutton.html#accel-prop">"accel"</a> property for details.
<h3 class=fn>void <a name="setAutoRepeat"></a>TQButton::setAutoRepeat ( bool )<tt> [virtual]</tt>
</h3><p>Sets whether autoRepeat is enabled.
See the <a href="ntqbutton.html#autoRepeat-prop">"autoRepeat"</a> property for details.
<h3 class=fn>void <a name="setAutoResize"></a>TQButton::setAutoResize ( bool )
</h3><p>Sets whether autoResize is enabled.
See the <a href="ntqbutton.html#autoResize-prop">"autoResize"</a> property for details.
<h3 class=fn>void <a name="setDown"></a>TQButton::setDown ( bool )<tt> [virtual]</tt>
</h3><p>Sets whether the button is pressed.
See the <a href="ntqbutton.html#down-prop">"down"</a> property for details.
@ -402,12 +393,6 @@ regular intervals if the button is down. This property has no
effect on toggle buttons. autoRepeat is off by default.
<p>Set this property's value with <a href="#setAutoRepeat">setAutoRepeat</a>() and get this property's value with <a href="#autoRepeat">autoRepeat</a>().
<h3 class=fn>bool <a name="autoResize-prop"></a>autoResize</h3> <p>This property holds whether autoResize is enabled.
<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> If autoResize is enabled then the button will resize itself
whenever the contents are changed.
<p>Set this property's value with <a href="#setAutoResize">setAutoResize</a>() and get this property's value with <a href="#autoResize">autoResize</a>().
<h3 class=fn>bool <a name="down-prop"></a>down</h3>
<p>This property holds whether the button is pressed.
<p>If this property is TRUE, the button is pressed down. The signals

@ -234,6 +234,7 @@ have been changed:
</h2>
<a name="4-1"></a><p> All these properties have been removed in TQt 3.x:
<ul>
<li> TQButton::autoResize
<li> TQLineEdit::hasMarkedText. Use TQLineEdit::hasSelectedText instead.
<li> TQLineEdit::markedText. Use TQLineEdit::selectedText instead.
<li> TQToolButton::offIconSet. Use TQToolButton::iconSet instead.
@ -243,6 +244,8 @@ have been changed:
</h2>
<a name="4-2"></a><p> All these functions have been removed in TQt 3.x:
<ul>
<li> TQButton::autoResize() const
<li> TQButton::setAutoResize(bool)
<li> TQFont::charSet()
<li> TQFont::setCharSet()
<li> TQLineEdit::cursorLeft(bool mark, int steps = 1). Use TQLineEdit::cursorBackward instead.
@ -292,8 +295,6 @@ new code.
<li> <a href="ntqaccel.html#keyToString">TQAccel::keyToString</a>( <a href="ntqkeysequence.html">TQKeySequence</a> k )
<li> <a href="ntqaccel.html#stringToKey">TQAccel::stringToKey</a>( const <a href="ntqstring.html">TQString</a> &amp; s )
<li> <a href="qactiongroup.html#insert">TQActionGroup::insert</a>( <a href="ntqaction.html">TQAction</a> *a )
<li> <a href="ntqbutton.html#autoResize">TQButton::autoResize</a>() const
<li> <a href="ntqbutton.html#setAutoResize">TQButton::setAutoResize</a>( bool )
<li> <a href="qcanvasitem.html#active">TQCanvasItem::active</a>() const
<li> <a href="qcanvasitem.html#enabled">TQCanvasItem::enabled</a>() const
<li> <a href="qcanvasitem.html#selected">TQCanvasItem::selected</a>() const

@ -267,16 +267,6 @@ effect on toggle buttons. autoRepeat is off by default.
&lt;p&gt;Set this property's value with &lt;a href="ntqbutton.html#setAutoRepeat"&gt;setAutoRepeat&lt;/a&gt;() and get this property's value with &lt;a href="ntqbutton.html#autoRepeat"&gt;autoRepeat&lt;/a&gt;().
</doc>
</property>
<property>
<name>QButton::autoResize</name>
<doc href="ntqbutton.html#autoResize-prop"> &lt;p&gt;This property holds whether autoResize is enabled.
&lt;p&gt;&lt;b&gt;This property is obsolete.&lt;/b&gt; It is provided to keep old source working. We strongly advise against using it in new code.
&lt;p&gt; If autoResize is enabled then the button will resize itself
whenever the contents are changed.
&lt;p&gt;Set this property's value with &lt;a href="ntqbutton.html#setAutoResize"&gt;setAutoResize&lt;/a&gt;() and get this property's value with &lt;a href="ntqbutton.html#autoResize"&gt;autoResize&lt;/a&gt;().
</doc>
</property>
<property>
<name>QButton::down</name>
<doc href="ntqbutton.html#down-prop">

@ -15,7 +15,6 @@
"QAxBase/control" qaxbase.html#control-prop
"QButton/accel" ntqbutton.html#accel-prop
"QButton/autoRepeat" ntqbutton.html#autoRepeat-prop
"QButton/autoResize" ntqbutton.html#autoResize-prop
"QButton/down" ntqbutton.html#down-prop
"QButton/exclusiveToggle" ntqbutton.html#exclusiveToggle-prop
"QButton/on" ntqbutton.html#on-prop

@ -101,7 +101,6 @@ class Q_EXPORT TQButton : public TQWidget
TQ_PROPERTY( bool down READ isDown WRITE setDown DESIGNABLE false )
TQ_PROPERTY( bool on READ isOn )
TQ_PROPERTY( ToggleState toggleState READ state )
TQ_PROPERTY( bool autoResize READ autoResize WRITE setAutoResize DESIGNABLE false )
TQ_PROPERTY( bool autoRepeat READ autoRepeat WRITE setAutoRepeat )
TQ_PROPERTY( bool exclusiveToggle READ isExclusiveToggle )
@ -132,11 +131,6 @@ public:
enum ToggleState { Off, NoChange, On };
ToggleState state() const;
#ifndef TQT_NO_COMPAT
bool autoResize() const;
void setAutoResize( bool );
#endif
bool autoRepeat() const;
virtual void setAutoRepeat( bool );
bool isExclusiveToggle() const;
@ -232,13 +226,6 @@ inline bool TQButton::isOn() const
return stat != Off;
}
#ifndef TQT_NO_COMPAT
inline bool TQButton::autoResize() const
{
return autoresize;
}
#endif
inline bool TQButton::autoRepeat() const
{
return repeat;

@ -43,7 +43,6 @@ body { background: #ffffff; color: black; }
<li><a href="ntqbutton.html#animateClick">animateClick</a>()
<li><a href="ntqwidget.html#autoMask">autoMask</a>()
<li><a href="ntqbutton.html#autoRepeat">autoRepeat</a>()
<li><a href="ntqbutton.html#autoResize">autoResize</a>()
<li><a href="ntqwidget.html#backgroundBrush">backgroundBrush</a>()
<li><a href="ntqwidget.html#backgroundColor">backgroundColor</a>()
<li><a href="ntqwidget.html#backgroundMode">backgroundMode</a>()
@ -238,7 +237,6 @@ body { background: #ffffff; color: black; }
<li><a href="ntqwidget.html#setActiveWindow">setActiveWindow</a>()
<li><a href="ntqwidget.html#setAutoMask">setAutoMask</a>()
<li><a href="ntqbutton.html#setAutoRepeat">setAutoRepeat</a>()
<li><a href="ntqbutton.html#setAutoResize">setAutoResize</a>()
<li><a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>()
<li><a href="ntqwidget.html#setBackgroundMode">setBackgroundMode</a>()
<li><a href="ntqwidget.html#setBackgroundOrigin">setBackgroundOrigin</a>()

@ -42,7 +42,6 @@ body { background: #ffffff; color: black; }
<li><a href="ntqbutton.html#animateClick">animateClick</a>()
<li><a href="ntqwidget.html#autoMask">autoMask</a>()
<li><a href="ntqbutton.html#autoRepeat">autoRepeat</a>()
<li><a href="ntqbutton.html#autoResize">autoResize</a>()
<li><a href="ntqwidget.html#backgroundBrush">backgroundBrush</a>()
<li><a href="ntqwidget.html#backgroundColor">backgroundColor</a>()
<li><a href="ntqwidget.html#backgroundMode">backgroundMode</a>()
@ -239,7 +238,6 @@ body { background: #ffffff; color: black; }
<li><a href="ntqwidget.html#setActiveWindow">setActiveWindow</a>()
<li><a href="ntqwidget.html#setAutoMask">setAutoMask</a>()
<li><a href="ntqbutton.html#setAutoRepeat">setAutoRepeat</a>()
<li><a href="ntqbutton.html#setAutoResize">setAutoResize</a>()
<li><a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>()
<li><a href="ntqwidget.html#setBackgroundMode">setBackgroundMode</a>()
<li><a href="ntqwidget.html#setBackgroundOrigin">setBackgroundOrigin</a>()

@ -44,7 +44,6 @@ body { background: #ffffff; color: black; }
<li><a href="ntqpushbutton.html#autoDefault">autoDefault</a>()
<li><a href="ntqwidget.html#autoMask">autoMask</a>()
<li><a href="ntqbutton.html#autoRepeat">autoRepeat</a>()
<li><a href="ntqbutton.html#autoResize">autoResize</a>()
<li><a href="ntqwidget.html#backgroundBrush">backgroundBrush</a>()
<li><a href="ntqwidget.html#backgroundColor">backgroundColor</a>()
<li><a href="ntqwidget.html#backgroundMode">backgroundMode</a>()
@ -245,7 +244,6 @@ body { background: #ffffff; color: black; }
<li><a href="ntqpushbutton.html#setAutoDefault">setAutoDefault</a>()
<li><a href="ntqwidget.html#setAutoMask">setAutoMask</a>()
<li><a href="ntqbutton.html#setAutoRepeat">setAutoRepeat</a>()
<li><a href="ntqbutton.html#setAutoResize">setAutoResize</a>()
<li><a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>()
<li><a href="ntqwidget.html#setBackgroundMode">setBackgroundMode</a>()
<li><a href="ntqwidget.html#setBackgroundOrigin">setBackgroundOrigin</a>()

@ -42,7 +42,6 @@ body { background: #ffffff; color: black; }
<li><a href="ntqbutton.html#animateClick">animateClick</a>()
<li><a href="ntqwidget.html#autoMask">autoMask</a>()
<li><a href="ntqbutton.html#autoRepeat">autoRepeat</a>()
<li><a href="ntqbutton.html#autoResize">autoResize</a>()
<li><a href="ntqwidget.html#backgroundBrush">backgroundBrush</a>()
<li><a href="ntqwidget.html#backgroundColor">backgroundColor</a>()
<li><a href="ntqwidget.html#backgroundMode">backgroundMode</a>()
@ -238,7 +237,6 @@ body { background: #ffffff; color: black; }
<li><a href="ntqwidget.html#setActiveWindow">setActiveWindow</a>()
<li><a href="ntqwidget.html#setAutoMask">setAutoMask</a>()
<li><a href="ntqbutton.html#setAutoRepeat">setAutoRepeat</a>()
<li><a href="ntqbutton.html#setAutoResize">setAutoResize</a>()
<li><a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>()
<li><a href="ntqwidget.html#setBackgroundMode">setBackgroundMode</a>()
<li><a href="ntqwidget.html#setBackgroundOrigin">setBackgroundOrigin</a>()

@ -44,7 +44,6 @@ body { background: #ffffff; color: black; }
<li><a href="ntqwidget.html#autoMask">autoMask</a>()
<li><a href="ntqtoolbutton.html#autoRaise">autoRaise</a>()
<li><a href="ntqbutton.html#autoRepeat">autoRepeat</a>()
<li><a href="ntqbutton.html#autoResize">autoResize</a>()
<li><a href="ntqwidget.html#backgroundBrush">backgroundBrush</a>()
<li><a href="ntqwidget.html#backgroundColor">backgroundColor</a>()
<li><a href="ntqwidget.html#backgroundMode">backgroundMode</a>()
@ -244,7 +243,6 @@ body { background: #ffffff; color: black; }
<li><a href="ntqwidget.html#setAutoMask">setAutoMask</a>()
<li><a href="ntqtoolbutton.html#setAutoRaise">setAutoRaise</a>()
<li><a href="ntqbutton.html#setAutoRepeat">setAutoRepeat</a>()
<li><a href="ntqbutton.html#setAutoResize">setAutoResize</a>()
<li><a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>()
<li><a href="ntqwidget.html#setBackgroundMode">setBackgroundMode</a>()
<li><a href="ntqwidget.html#setBackgroundOrigin">setBackgroundOrigin</a>()

@ -66,12 +66,6 @@ Inherited by QCheckBox, QPushButton, QRadioButton, and QToolButton.
.BI "ToggleState \fBstate\fR () const"
.br
.ti -1c
.BI "bool autoResize () const \fI(obsolete)\fR"
.br
.ti -1c
.BI "void setAutoResize ( bool ) \fI(obsolete)\fR"
.br
.ti -1c
.BI "bool \fBautoRepeat\fR () const"
.br
.ti -1c
@ -120,9 +114,6 @@ Inherited by QCheckBox, QPushButton, QRadioButton, and QToolButton.
.BI "bool \fBautoRepeat\fR - whether autoRepeat is enabled"
.br
.ti -1c
.BI "bool autoResize - whether autoResize is enabled \fI(obsolete)\fR"
.br
.ti -1c
.BI "bool \fBdown\fR - whether the button is pressed"
.br
.ti -1c
@ -276,8 +267,6 @@ This function does nothing if the button is disabled.
See also accel.
.SH "bool QButton::autoRepeat () const"
Returns TRUE if autoRepeat is enabled; otherwise returns FALSE. See the "autoRepeat" property for details.
.SH "bool QButton::autoResize () const"
Returns TRUE if autoResize is enabled; otherwise returns FALSE. See the "autoResize" property for details.
.SH "void QButton::clicked ()\fC [signal]\fR"
This signal is emitted when the button is activated (i.e. first pressed down and then released when the mouse cursor is inside the button), when the accelerator key is typed or when animateClick() is called. This signal is \fInot\fR emitted if you call setDown().
.PP
@ -342,8 +331,6 @@ See also pressed(), clicked(), and toggled().
Sets the accelerator associated with the button. See the "accel" property for details.
.SH "void QButton::setAutoRepeat ( bool )\fC [virtual]\fR"
Sets whether autoRepeat is enabled. See the "autoRepeat" property for details.
.SH "void QButton::setAutoResize ( bool )"
Sets whether autoResize is enabled. See the "autoResize" property for details.
.SH "void QButton::setDown ( bool )\fC [virtual]\fR"
Sets whether the button is pressed. See the "down" property for details.
.SH "void QButton::setOn ( bool on )\fC [protected]\fR"
@ -401,14 +388,6 @@ This property holds whether autoRepeat is enabled.
If autoRepeat is enabled then the clicked() signal is emitted at regular intervals if the button is down. This property has no effect on toggle buttons. autoRepeat is off by default.
.PP
Set this property's value with setAutoRepeat() and get this property's value with autoRepeat().
.SH "bool autoResize"
This property holds whether autoResize is enabled.
.PP
\fBThis property is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
If autoResize is enabled then the button will resize itself whenever the contents are changed.
.PP
Set this property's value with setAutoResize() and get this property's value with autoResize().
.SH "bool down"
This property holds whether the button is pressed.
.PP

@ -193,6 +193,8 @@ have been changed:
All these functions have been removed in TQt 3.x:
\list
\i QButton::autoResize() const
\i QButton::setAutoResize(bool)
\i QFont::charSet()
\i QFont::setCharSet()
\i QLineEdit::cursorLeft(bool mark, int steps = 1). Use TQLineEdit::cursorBackward instead.
@ -246,8 +248,6 @@ new code.
\i QAccel::keyToString( QKeySequence k )
\i QAccel::stringToKey( const QString \& s )
\i QActionGroup::insert( QAction *a )
\i QButton::autoResize() const
\i QButton::setAutoResize( bool )
\i QCanvasItem::active() const
\i QCanvasItem::enabled() const
\i QCanvasItem::selected() const

@ -65,7 +65,6 @@ class Q_EXPORT TQButton : public TQWidget
TQ_PROPERTY( bool down READ isDown WRITE setDown DESIGNABLE false )
TQ_PROPERTY( bool on READ isOn )
TQ_PROPERTY( ToggleState toggleState READ state )
TQ_PROPERTY( bool autoResize READ autoResize WRITE setAutoResize DESIGNABLE false )
TQ_PROPERTY( bool autoRepeat READ autoRepeat WRITE setAutoRepeat )
TQ_PROPERTY( bool exclusiveToggle READ isExclusiveToggle )
@ -96,11 +95,6 @@ public:
enum ToggleState { Off, NoChange, On };
ToggleState state() const;
#ifndef TQT_NO_COMPAT
bool autoResize() const;
void setAutoResize( bool );
#endif
bool autoRepeat() const;
virtual void setAutoRepeat( bool );
bool isExclusiveToggle() const;
@ -196,13 +190,6 @@ inline bool TQButton::isOn() const
return ToggleState(stat) != Off;
}
#ifndef TQT_NO_COMPAT
inline bool TQButton::autoResize() const
{
return autoresize;
}
#endif
inline bool TQButton::autoRepeat() const
{
return repeat;

@ -38,7 +38,6 @@
**
**********************************************************************/
#undef TQT_NO_COMPAT
#include "ntqbutton.h"
#ifndef TQT_NO_BUTTON
#include "ntqbuttongroup.h"
@ -268,14 +267,6 @@ TQTimer *TQButton::timer()
effect on toggle buttons. autoRepeat is off by default.
*/
/*! \property TQButton::autoResize
\brief whether autoResize is enabled
\obsolete
If autoResize is enabled then the button will resize itself
whenever the contents are changed.
*/
/*!
\property TQButton::down
\brief whether the button is pressed
@ -554,19 +545,6 @@ void TQButton::setAccel( const TQKeySequence& key )
}
#endif
#ifndef TQT_NO_COMPAT
void TQButton::setAutoResize( bool enable )
{
if ( (bool)autoresize != enable ) {
autoresize = enable;
if ( autoresize )
adjustSize(); // calls resize which repaints
}
}
#endif
void TQButton::setAutoRepeat( bool enable )
{
repeat = (uint)enable;

Loading…
Cancel
Save