diff options
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/ntqbutton.h | 13 | ||||
-rw-r--r-- | src/widgets/qbutton.cpp | 22 |
2 files changed, 0 insertions, 35 deletions
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; |