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 /src/widgets/qbutton.cpp | |
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>
Diffstat (limited to 'src/widgets/qbutton.cpp')
-rw-r--r-- | src/widgets/qbutton.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
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; |