summaryrefslogtreecommitdiffstats
path: root/src/widgets/qtoolbutton.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-07-09 20:12:14 +0900
committerMichele Calgaro <[email protected]>2023-07-09 20:27:54 +0900
commit48ea22d00b58a37508567756b2955582cd9efe5a (patch)
tree76e251dab44dbcab7e11a0859423edfe33eae82f /src/widgets/qtoolbutton.cpp
parentb1bfbe79f38a8682e024577c8fd4ba4d1b32b5dd (diff)
downloadtqt3-48ea22d00b58a37508567756b2955582cd9efe5a.tar.gz
tqt3-48ea22d00b58a37508567756b2955582cd9efe5a.zip
Drop compatibility code for TQToolButton
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/widgets/qtoolbutton.cpp')
-rw-r--r--src/widgets/qtoolbutton.cpp105
1 files changed, 0 insertions, 105 deletions
diff --git a/src/widgets/qtoolbutton.cpp b/src/widgets/qtoolbutton.cpp
index 74f3f4ade..1316944f0 100644
--- a/src/widgets/qtoolbutton.cpp
+++ b/src/widgets/qtoolbutton.cpp
@@ -38,7 +38,6 @@
**
**********************************************************************/
-#undef TQT_NO_COMPAT
#include "ntqtoolbutton.h"
#ifndef TQT_NO_TOOLBUTTON
@@ -685,69 +684,6 @@ void TQToolButton::setTextLabel( const TQString &newLabel , bool tipToo )
}
-#ifndef TQT_NO_COMPAT
-
-TQIconSet TQToolButton::onIconSet() const
-{
- return iconSet();
-}
-
-TQIconSet TQToolButton::offIconSet( ) const
-{
- return iconSet();
-}
-
-
-/*!
- \property TQToolButton::onIconSet
- \brief the icon set that is used when the button is in an "on" state
-
- \obsolete
-
- Since TQt 3.0, TQIconSet contains both the On and Off icons. There is
- now an \l TQToolButton::iconSet property that replaces both \l
- TQToolButton::onIconSet and \l TQToolButton::offIconSet.
-
- For ease of porting, this property is a synonym for \l
- TQToolButton::iconSet. You probably want to go over your application
- code and use the TQIconSet On/Off mechanism.
-
- \sa iconSet TQIconSet::State
-*/
-void TQToolButton::setOnIconSet( const TQIconSet& set )
-{
- setIconSet( set );
- /*
- ### Get rid of all tqWarning in this file in 4.0.
- Also consider inlining the obsolete functions then.
- */
- tqWarning( "TQToolButton::setOnIconSet(): This function is not supported"
- " anymore" );
-}
-
-/*!
- \property TQToolButton::offIconSet
- \brief the icon set that is used when the button is in an "off" state
-
- \obsolete
-
- Since TQt 3.0, TQIconSet contains both the On and Off icons. There is
- now an \l TQToolButton::iconSet property that replaces both \l
- TQToolButton::onIconSet and \l TQToolButton::offIconSet.
-
- For ease of porting, this property is a synonym for \l
- TQToolButton::iconSet. You probably want to go over your application
- code and use the TQIconSet On/Off mechanism.
-
- \sa iconSet TQIconSet::State
-*/
-void TQToolButton::setOffIconSet( const TQIconSet& set )
-{
- setIconSet( set );
-}
-
-#endif
-
/*! \property TQToolButton::pixmap
\brief the pixmap of the button
@@ -774,29 +710,6 @@ void TQToolButton::setIconSet( const TQIconSet & set )
update();
}
-/*! \overload
- \obsolete
-
- Since TQt 3.0, TQIconSet contains both the On and Off icons.
-
- For ease of porting, this function ignores the \a on parameter and
- sets the \l iconSet property. If you relied on the \a on parameter,
- you probably want to update your code to use the TQIconSet On/Off
- mechanism.
-
- \sa iconSet TQIconSet::State
-*/
-
-#ifndef TQT_NO_COMPAT
-
-void TQToolButton::setIconSet( const TQIconSet & set, bool /* on */ )
-{
- setIconSet( set );
- tqWarning( "TQToolButton::setIconSet(): 'on' parameter ignored" );
-}
-
-#endif
-
TQIconSet TQToolButton::iconSet() const
{
TQToolButton *that = (TQToolButton *) this;
@@ -818,24 +731,6 @@ TQIconSet TQToolButton::iconSet() const
return TQIconSet();
}
-#ifndef TQT_NO_COMPAT
-/*! \overload
- \obsolete
-
- Since TQt 3.0, TQIconSet contains both the On and Off icons.
-
- For ease of porting, this function ignores the \a on parameter and
- returns the \l iconSet property. If you relied on the \a on
- parameter, you probably want to update your code to use the TQIconSet
- On/Off mechanism.
-*/
-TQIconSet TQToolButton::iconSet( bool /* on */ ) const
-{
- return iconSet();
-}
-
-#endif
-
#ifndef TQT_NO_POPUPMENU
/*!
Associates the popup menu \a popup with this tool button.