From b9186693ada54762210d51282c15e2248e76a586 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 29 Dec 2023 23:01:28 +0900 Subject: Replaced various '#define' with actual strings - part 6 Signed-off-by: Michele Calgaro (cherry picked from commit 61cd5b18f00b0d36a7953596c5295e358324ebb7) --- kdevdesigner/designer/connectionitems.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kdevdesigner/designer/connectionitems.cpp') diff --git a/kdevdesigner/designer/connectionitems.cpp b/kdevdesigner/designer/connectionitems.cpp index f0a04362..9f0c2b5e 100644 --- a/kdevdesigner/designer/connectionitems.cpp +++ b/kdevdesigner/designer/connectionitems.cpp @@ -354,7 +354,7 @@ void SignalItem::senderChanged( TQObject *sender ) } if ( sender == formWindow->mainContainer() ) { - TQStringList extra = MetaDataBase::signalList( TQT_TQOBJECT(formWindow) ); + TQStringList extra = MetaDataBase::signalList( formWindow ); if ( !extra.isEmpty() ) lst += extra; } @@ -417,7 +417,7 @@ bool SlotItem::ignoreSlot( const char* slot ) const return TRUE; } - if ( !formWindow->isMainContainer( TQT_TQOBJECT(lastReceiver) ) ) { + if ( !formWindow->isMainContainer( lastReceiver ) ) { if ( qstrcmp( slot, "close()" ) == 0 ) return TRUE; } @@ -448,7 +448,7 @@ void SlotItem::updateSlotList() // accept only public slots. For the form window, also accept protected slots const TQMetaData* md = lastReceiver->metaObject()->slot( i, TRUE ); if ( ( (lastReceiver->metaObject()->slot( i, TRUE )->access == TQMetaData::Public) || - (formWindow->isMainContainer( TQT_TQOBJECT(lastReceiver) ) && + (formWindow->isMainContainer( lastReceiver ) && lastReceiver->metaObject()->slot(i, TRUE)->access == TQMetaData::Protected) ) && !ignoreSlot( md->name ) && @@ -460,8 +460,8 @@ void SlotItem::updateSlotList() LanguageInterface *iface = MetaDataBase::languageInterface( formWindow->project()->language() ); if ( !iface || iface->supports( LanguageInterface::ConnectionsToCustomSlots ) ) { - if ( formWindow->isMainContainer( TQT_TQOBJECT(lastReceiver) ) ) { - TQValueList moreSlots = MetaDataBase::slotList( TQT_TQOBJECT(formWindow) ); + if ( formWindow->isMainContainer( lastReceiver ) ) { + TQValueList moreSlots = MetaDataBase::slotList( formWindow ); if ( !moreSlots.isEmpty() ) { for ( TQValueList::Iterator it = moreSlots.begin(); it != moreSlots.end(); ++it ) { -- cgit v1.2.1