From c3bb88817b109cb33264b1f8946943cb5df380ca Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 16 Jul 2023 14:45:23 +0900 Subject: Drop compatibility code for TQButton Signed-off-by: Michele Calgaro --- src/widgets/qbutton.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/widgets/qbutton.cpp') 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; -- cgit v1.2.1