From eac5a923bfe691153309b671a4aa0c8a31d9a776 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 12 Aug 2023 18:42:46 +0900 Subject: Drop TQT_BASE_OBJECT* defines Signed-off-by: Michele Calgaro --- src/k3bprojecttabwidget.cpp | 2 +- src/k3bstatusbarmanager.cpp | 4 ++-- src/k3btooltip.cpp | 2 +- src/projects/k3baudiotracksplitdialog.cpp | 2 +- src/projects/k3bview.cpp | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/k3bprojecttabwidget.cpp b/src/k3bprojecttabwidget.cpp index 3b9bc7c..ee65f85 100644 --- a/src/k3bprojecttabwidget.cpp +++ b/src/k3bprojecttabwidget.cpp @@ -174,7 +174,7 @@ K3bDoc* K3bProjectTabWidget::projectAt( const TQPoint& pos ) const bool K3bProjectTabWidget::eventFilter( TQObject* o, TQEvent* e ) { - if( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(tabBar()) ) { + if( o == tabBar() ) { if( e->type() == TQEvent::MouseButtonPress ) { TQMouseEvent* me = TQT_TQMOUSEEVENT(e); if( me->button() == Qt::RightButton ) { diff --git a/src/k3bstatusbarmanager.cpp b/src/k3bstatusbarmanager.cpp index d23e75a..7b21b6b 100644 --- a/src/k3bstatusbarmanager.cpp +++ b/src/k3bstatusbarmanager.cpp @@ -153,9 +153,9 @@ void K3bStatusBarManager::clearActionStatusText() bool K3bStatusBarManager::eventFilter( TQObject* o, TQEvent* e ) { if( e->type() == TQEvent::MouseButtonDblClick ) { - if( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_labelFreeTemp->parentWidget()) ) + if( o == m_labelFreeTemp->parentWidget() ) m_mainWindow->showOptionDialog( 0 ); // FIXME: use an enumeration for the option pages - else if( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_versionBox) ) + else if( o == m_versionBox ) if( TDEAction* a = m_mainWindow->action( "help_about_app" ) ) a->activate(); } diff --git a/src/k3btooltip.cpp b/src/k3btooltip.cpp index c123955..973e6aa 100644 --- a/src/k3btooltip.cpp +++ b/src/k3btooltip.cpp @@ -134,7 +134,7 @@ void K3bToolTip::hideTip() bool K3bToolTip::eventFilter( TQObject* o, TQEvent* e ) { - if( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(parentWidget()) ) { + if( o == parentWidget() ) { switch( e->type() ) { case TQEvent::MouseButtonPress: case TQEvent::MouseButtonRelease: diff --git a/src/projects/k3baudiotracksplitdialog.cpp b/src/projects/k3baudiotracksplitdialog.cpp index 3ba799b..d6584ae 100644 --- a/src/projects/k3baudiotracksplitdialog.cpp +++ b/src/projects/k3baudiotracksplitdialog.cpp @@ -162,7 +162,7 @@ void K3bAudioTrackSplitDialog::splitAt( const TQPoint& p ) bool K3bAudioTrackSplitDialog::eventFilter( TQObject* o, TQEvent* e ) { - if( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_editorWidget) ) { + if( o == m_editorWidget ) { if( e->type() == TQEvent::MouseButtonDblClick ) { TQMouseEvent* me = TQT_TQMOUSEEVENT( e ); splitAt( me->pos() ); diff --git a/src/projects/k3bview.cpp b/src/projects/k3bview.cpp index df3384d..717aa7f 100644 --- a/src/projects/k3bview.cpp +++ b/src/projects/k3bview.cpp @@ -149,7 +149,7 @@ void K3bView::addPluginButtons( int projectType ) void K3bView::slotPluginButtonClicked() { - TQObject* o = TQT_TQOBJECT(const_cast(sender())); + TQObject* o = const_cast(sender()); if( K3bProjectPlugin* p = m_plugins[static_cast(o)] ) { if( p->hasGUI() ) { K3bProjectPluginDialog dlg( p, doc(), this ); -- cgit v1.2.1