diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-16 14:45:23 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-16 14:45:23 +0900 |
commit | c3bb88817b109cb33264b1f8946943cb5df380ca (patch) | |
tree | 86a902a1a73da529e4ebce150a5baea33f9e5e23 | |
parent | 9492e618a7bcc0a58db039d6700b508dec2c9db3 (diff) | |
download | tqt3-c3bb88817b109cb33264b1f8946943cb5df380ca.tar.gz tqt3-c3bb88817b109cb33264b1f8946943cb5df380ca.zip |
Drop compatibility code for TQButton
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | doc/html/ntqbutton.html | 15 | ||||
-rw-r--r-- | doc/html/porting.html | 5 | ||||
-rw-r--r-- | doc/html/propertydocs | 10 | ||||
-rw-r--r-- | doc/html/propertyindex | 1 | ||||
-rw-r--r-- | doc/html/qbutton-h.html | 13 | ||||
-rw-r--r-- | doc/html/qbutton-members.html | 2 | ||||
-rw-r--r-- | doc/html/qcheckbox-members.html | 2 | ||||
-rw-r--r-- | doc/html/qpushbutton-members.html | 2 | ||||
-rw-r--r-- | doc/html/qradiobutton-members.html | 2 | ||||
-rw-r--r-- | doc/html/qtoolbutton-members.html | 2 | ||||
-rw-r--r-- | doc/man/man3/tqbutton.3qt | 21 | ||||
-rw-r--r-- | doc/porting3.doc | 4 | ||||
-rw-r--r-- | src/widgets/ntqbutton.h | 13 | ||||
-rw-r--r-- | src/widgets/qbutton.cpp | 22 |
14 files changed, 5 insertions, 109 deletions
diff --git a/doc/html/ntqbutton.html b/doc/html/ntqbutton.html index 92676a71f..61c5fb155 100644 --- a/doc/html/ntqbutton.html +++ b/doc/html/ntqbutton.html @@ -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 <em>(obsolete)</em></li> -<li class=fn>void setAutoResize ( bool ) <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> - the accelerator associated with the button</li> <li class=fn>bool <a href="#autoRepeat-prop"><b>autoRepeat</b></a> - whether autoRepeat is enabled</li> -<li class=fn>bool autoResize - whether autoResize is enabled <em>(obsolete)</em></li> <li class=fn>bool <a href="#down-prop"><b>down</b></a> - whether the button is pressed</li> <li class=fn>bool <a href="#exclusiveToggle-prop"><b>exclusiveToggle</b></a> - whether the button is an exclusive toggle <em>(read only)</em></li> <li class=fn>bool <a href="#on-prop"><b>on</b></a> - whether the button is toggled <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 diff --git a/doc/html/porting.html b/doc/html/porting.html index 574d8edf2..5629a1983 100644 --- a/doc/html/porting.html +++ b/doc/html/porting.html @@ -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> & 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 diff --git a/doc/html/propertydocs b/doc/html/propertydocs index 8f33f3e3f..e5b0e1040 100644 --- a/doc/html/propertydocs +++ b/doc/html/propertydocs @@ -268,16 +268,6 @@ effect on toggle buttons. autoRepeat is off by default. </doc> </property> <property> - <name>QButton::autoResize</name> - <doc href="ntqbutton.html#autoResize-prop"> <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="ntqbutton.html#setAutoResize">setAutoResize</a>() and get this property's value with <a href="ntqbutton.html#autoResize">autoResize</a>(). -</doc> -</property> -<property> <name>QButton::down</name> <doc href="ntqbutton.html#down-prop"> <p>This property holds whether the button is pressed. diff --git a/doc/html/propertyindex b/doc/html/propertyindex index 8c57d45f3..9ed914242 100644 --- a/doc/html/propertyindex +++ b/doc/html/propertyindex @@ -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 diff --git a/doc/html/qbutton-h.html b/doc/html/qbutton-h.html index 280669f0c..ccd2bc5bd 100644 --- a/doc/html/qbutton-h.html +++ b/doc/html/qbutton-h.html @@ -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; diff --git a/doc/html/qbutton-members.html b/doc/html/qbutton-members.html index c1b297303..6c341f37c 100644 --- a/doc/html/qbutton-members.html +++ b/doc/html/qbutton-members.html @@ -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>() diff --git a/doc/html/qcheckbox-members.html b/doc/html/qcheckbox-members.html index 52741c587..826cf458e 100644 --- a/doc/html/qcheckbox-members.html +++ b/doc/html/qcheckbox-members.html @@ -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>() diff --git a/doc/html/qpushbutton-members.html b/doc/html/qpushbutton-members.html index d1c6ec588..f772f370f 100644 --- a/doc/html/qpushbutton-members.html +++ b/doc/html/qpushbutton-members.html @@ -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>() diff --git a/doc/html/qradiobutton-members.html b/doc/html/qradiobutton-members.html index 84b0e9f0f..2b277aac0 100644 --- a/doc/html/qradiobutton-members.html +++ b/doc/html/qradiobutton-members.html @@ -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>() diff --git a/doc/html/qtoolbutton-members.html b/doc/html/qtoolbutton-members.html index f5a593ed8..d00f16ce6 100644 --- a/doc/html/qtoolbutton-members.html +++ b/doc/html/qtoolbutton-members.html @@ -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>() diff --git a/doc/man/man3/tqbutton.3qt b/doc/man/man3/tqbutton.3qt index be497f156..96faca7a2 100644 --- a/doc/man/man3/tqbutton.3qt +++ b/doc/man/man3/tqbutton.3qt @@ -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 diff --git a/doc/porting3.doc b/doc/porting3.doc index 99ab10194..9efd2a77e 100644 --- a/doc/porting3.doc +++ b/doc/porting3.doc @@ -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 diff --git a/src/widgets/ntqbutton.h b/src/widgets/ntqbutton.h index ee6b341c6..50d10e662 100644 --- a/src/widgets/ntqbutton.h +++ b/src/widgets/ntqbutton.h @@ -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; diff --git a/src/widgets/qbutton.cpp b/src/widgets/qbutton.cpp index 00d90fc94..90fe7cb0c 100644 --- a/src/widgets/qbutton.cpp +++ b/src/widgets/qbutton.cpp @@ -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; |