From 7f03918f8df7479b0e1a88288066201a301e87bf Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 12 Jan 2024 11:17:33 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro (cherry picked from commit ba3b5b77e1a430dc7197df20872ba46ce2fb6fa7) --- tdeparts/browserextension.cpp | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'tdeparts/browserextension.cpp') diff --git a/tdeparts/browserextension.cpp b/tdeparts/browserextension.cpp index ec31eea3e..9b134819d 100644 --- a/tdeparts/browserextension.cpp +++ b/tdeparts/browserextension.cpp @@ -377,14 +377,14 @@ BrowserExtension::BrowserExtension( KParts::ReadOnlyPart *parent, d->m_actionStatus.setBit( i, slotNames.contains( it.key()+"()" ) ); } - connect( m_part, TQT_SIGNAL( completed() ), - this, TQT_SLOT( slotCompleted() ) ); - connect( this, TQT_SIGNAL( openURLRequest( const KURL &, const KParts::URLArgs & ) ), - this, TQT_SLOT( slotOpenURLRequest( const KURL &, const KParts::URLArgs & ) ) ); - connect( this, TQT_SIGNAL( enableAction( const char *, bool ) ), - this, TQT_SLOT( slotEnableAction( const char *, bool ) ) ); - connect( this, TQT_SIGNAL( setActionText( const char *, const TQString& ) ), - this, TQT_SLOT( slotSetActionText( const char *, const TQString& ) ) ); + connect( m_part, TQ_SIGNAL( completed() ), + this, TQ_SLOT( slotCompleted() ) ); + connect( this, TQ_SIGNAL( openURLRequest( const KURL &, const KParts::URLArgs & ) ), + this, TQ_SLOT( slotOpenURLRequest( const KURL &, const KParts::URLArgs & ) ) ); + connect( this, TQ_SIGNAL( enableAction( const char *, bool ) ), + this, TQ_SLOT( slotEnableAction( const char *, bool ) ) ); + connect( this, TQ_SIGNAL( setActionText( const char *, const TQString& ) ), + this, TQ_SLOT( slotSetActionText( const char *, const TQString& ) ) ); } BrowserExtension::~BrowserExtension() @@ -496,7 +496,7 @@ void BrowserExtension::slotOpenURLRequest( const KURL &url, const KParts::URLArg req.m_delayedURL = url; req.m_delayedArgs = args; d->m_requests.append( req ); - TQTimer::singleShot( 0, this, TQT_SLOT( slotEmitOpenURLRequestDelayed() ) ); + TQTimer::singleShot( 0, this, TQ_SLOT( slotEmitOpenURLRequestDelayed() ) ); } void BrowserExtension::slotEmitOpenURLRequestDelayed() @@ -576,19 +576,19 @@ void BrowserExtension::createActionSlotMap() assert(!s_actionSlotMap); s_actionSlotMap = actionSlotMapsd.setObject( s_actionSlotMap, new ActionSlotMap ); - s_actionSlotMap->insert( "cut", TQT_SLOT( cut() ) ); - s_actionSlotMap->insert( "copy", TQT_SLOT( copy() ) ); - s_actionSlotMap->insert( "paste", TQT_SLOT( paste() ) ); - s_actionSlotMap->insert( "rename", TQT_SLOT( rename() ) ); - s_actionSlotMap->insert( "trash", TQT_SLOT( trash() ) ); - s_actionSlotMap->insert( "del", TQT_SLOT( del() ) ); - s_actionSlotMap->insert( "properties", TQT_SLOT( properties() ) ); - s_actionSlotMap->insert( "editMimeType", TQT_SLOT( editMimeType() ) ); - s_actionSlotMap->insert( "print", TQT_SLOT( print() ) ); + s_actionSlotMap->insert( "cut", TQ_SLOT( cut() ) ); + s_actionSlotMap->insert( "copy", TQ_SLOT( copy() ) ); + s_actionSlotMap->insert( "paste", TQ_SLOT( paste() ) ); + s_actionSlotMap->insert( "rename", TQ_SLOT( rename() ) ); + s_actionSlotMap->insert( "trash", TQ_SLOT( trash() ) ); + s_actionSlotMap->insert( "del", TQ_SLOT( del() ) ); + s_actionSlotMap->insert( "properties", TQ_SLOT( properties() ) ); + s_actionSlotMap->insert( "editMimeType", TQ_SLOT( editMimeType() ) ); + s_actionSlotMap->insert( "print", TQ_SLOT( print() ) ); // Tricky. Those aren't actions in fact, but simply methods that a browserextension // can have or not. No need to return them here. - //s_actionSlotMap->insert( "reparseConfiguration", TQT_SLOT( reparseConfiguration() ) ); - //s_actionSlotMap->insert( "refreshMimeTypes", TQT_SLOT( refreshMimeTypes() ) ); + //s_actionSlotMap->insert( "reparseConfiguration", TQ_SLOT( reparseConfiguration() ) ); + //s_actionSlotMap->insert( "refreshMimeTypes", TQ_SLOT( refreshMimeTypes() ) ); // nothing for setSaveViewPropertiesLocally either // Create the action-number map -- cgit v1.2.1