diff options
author | Michele Calgaro <[email protected]> | 2023-07-16 14:45:23 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-07-16 14:45:23 +0900 |
commit | c3bb88817b109cb33264b1f8946943cb5df380ca (patch) | |
tree | 86a902a1a73da529e4ebce150a5baea33f9e5e23 /src | |
parent | 9492e618a7bcc0a58db039d6700b508dec2c9db3 (diff) | |
download | tqt3-c3bb88817b109cb33264b1f8946943cb5df380ca.tar.gz tqt3-c3bb88817b109cb33264b1f8946943cb5df380ca.zip |
Drop compatibility code for TQButton
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src')
-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; |