diff options
Diffstat (limited to 'kopete/kopete')
34 files changed, 709 insertions, 709 deletions
diff --git a/kopete/kopete/addaccountwizard/addaccountwizard.cpp b/kopete/kopete/addaccountwizard/addaccountwizard.cpp index aa320d34..88b7c418 100644 --- a/kopete/kopete/addaccountwizard/addaccountwizard.cpp +++ b/kopete/kopete/addaccountwizard/addaccountwizard.cpp @@ -78,12 +78,12 @@ AddAccountWizard::AddAccountWizard( TQWidget *parent, const char *name, bool mod } // hook up the user input - connect(m_selectService->protocolListView, TQT_SIGNAL(clicked(TQListViewItem *)), - this, TQT_SLOT(slotProtocolListClicked(TQListViewItem *))); - connect(m_selectService->protocolListView, TQT_SIGNAL(selectionChanged(TQListViewItem *)), - this, TQT_SLOT( slotProtocolListClicked(TQListViewItem *))); - connect(m_selectService->protocolListView, TQT_SIGNAL(doubleClicked(TQListViewItem *)), - this, TQT_SLOT(slotProtocolListDoubleClicked(TQListViewItem *))); + connect(m_selectService->protocolListView, TQ_SIGNAL(clicked(TQListViewItem *)), + this, TQ_SLOT(slotProtocolListClicked(TQListViewItem *))); + connect(m_selectService->protocolListView, TQ_SIGNAL(selectionChanged(TQListViewItem *)), + this, TQ_SLOT( slotProtocolListClicked(TQListViewItem *))); + connect(m_selectService->protocolListView, TQ_SIGNAL(doubleClicked(TQListViewItem *)), + this, TQ_SLOT(slotProtocolListDoubleClicked(TQListViewItem *))); } void AddAccountWizard::slotProtocolListClicked( TQListViewItem * ) diff --git a/kopete/kopete/addcontactwizard/addcontactwizard.cpp b/kopete/kopete/addcontactwizard/addcontactwizard.cpp index 5b7ac5d4..72e9a9c2 100644 --- a/kopete/kopete/addcontactwizard/addcontactwizard.cpp +++ b/kopete/kopete/addcontactwizard/addcontactwizard.cpp @@ -115,17 +115,17 @@ AddContactWizard::AddContactWizard( TQWidget *parent, const char *name ) setFinishEnabled( finis, true ); // Addressee validation connections - connect( chkAddressee, TQT_SIGNAL( toggled( bool ) ), - TQT_SLOT( slotCheckAddresseeChoice( bool ) ) ); - connect( m_addressbookSelectorWidget, TQT_SIGNAL(addresseeListClicked( TQListViewItem * )), TQT_SLOT(slotAddresseeListClicked( TQListViewItem * )) ); + connect( chkAddressee, TQ_SIGNAL( toggled( bool ) ), + TQ_SLOT( slotCheckAddresseeChoice( bool ) ) ); + connect( m_addressbookSelectorWidget, TQ_SIGNAL(addresseeListClicked( TQListViewItem * )), TQ_SLOT(slotAddresseeListClicked( TQListViewItem * )) ); // Group manipulation connection - connect( addGroupButton, TQT_SIGNAL(clicked()) , TQT_SLOT(slotAddGroupClicked()) ); + connect( addGroupButton, TQ_SIGNAL(clicked()) , TQ_SLOT(slotAddGroupClicked()) ); // Account choice validation connections - connect( protocolListView, TQT_SIGNAL(clicked(TQListViewItem *)), this, TQT_SLOT(slotProtocolListClicked(TQListViewItem *))); - connect( protocolListView, TQT_SIGNAL(selectionChanged(TQListViewItem *)), this, TQT_SLOT(slotProtocolListClicked(TQListViewItem *))); - connect( protocolListView, TQT_SIGNAL(spacePressed(TQListViewItem *)), this, TQT_SLOT(slotProtocolListClicked(TQListViewItem *))); + connect( protocolListView, TQ_SIGNAL(clicked(TQListViewItem *)), this, TQ_SLOT(slotProtocolListClicked(TQListViewItem *))); + connect( protocolListView, TQ_SIGNAL(selectionChanged(TQListViewItem *)), this, TQ_SLOT(slotProtocolListClicked(TQListViewItem *))); + connect( protocolListView, TQ_SIGNAL(spacePressed(TQListViewItem *)), this, TQ_SLOT(slotProtocolListClicked(TQListViewItem *))); // read sticky settings TDEConfig *config = kapp->config(); @@ -278,8 +278,8 @@ void AddContactWizard::next() if (!addPage) continue; - connect(addPage, TQT_SIGNAL(dataValid( AddContactPage *, bool )), - this, TQT_SLOT( slotDataValid( AddContactPage *, bool ))); + connect(addPage, TQ_SIGNAL(dataValid( AddContactPage *, bool )), + this, TQ_SLOT( slotDataValid( AddContactPage *, bool ))); addPage->show(); insertPage( addPage, i18n( "The user has to select the contact to add to the given account name", diff --git a/kopete/kopete/addcontactwizard/fastaddcontactwizard.cpp b/kopete/kopete/addcontactwizard/fastaddcontactwizard.cpp index be2ddda7..72993632 100644 --- a/kopete/kopete/addcontactwizard/fastaddcontactwizard.cpp +++ b/kopete/kopete/addcontactwizard/fastaddcontactwizard.cpp @@ -50,9 +50,9 @@ FastAddContactWizard::FastAddContactWizard( TQWidget *parent, const char *name ) protocolListView->setCurrentItem( accountLVI ); // Account choice validation connections - connect( protocolListView, TQT_SIGNAL(clicked(TQListViewItem *)), this, TQT_SLOT(slotProtocolListClicked(TQListViewItem *))); - connect( protocolListView, TQT_SIGNAL(selectionChanged(TQListViewItem *)), this, TQT_SLOT(slotProtocolListClicked(TQListViewItem *))); - connect( protocolListView, TQT_SIGNAL(spacePressed(TQListViewItem *)), this, TQT_SLOT(slotProtocolListClicked(TQListViewItem *))); + connect( protocolListView, TQ_SIGNAL(clicked(TQListViewItem *)), this, TQ_SLOT(slotProtocolListClicked(TQListViewItem *))); + connect( protocolListView, TQ_SIGNAL(selectionChanged(TQListViewItem *)), this, TQ_SLOT(slotProtocolListClicked(TQListViewItem *))); + connect( protocolListView, TQ_SIGNAL(spacePressed(TQListViewItem *)), this, TQ_SLOT(slotProtocolListClicked(TQListViewItem *))); setNextEnabled( selectService, false ); setFinishEnabled(finis, true); diff --git a/kopete/kopete/chatwindow/chatmemberslistwidget.cpp b/kopete/kopete/chatwindow/chatmemberslistwidget.cpp index de06b9e0..df6ba03c 100644 --- a/kopete/kopete/chatwindow/chatmemberslistwidget.cpp +++ b/kopete/kopete/chatwindow/chatmemberslistwidget.cpp @@ -78,8 +78,8 @@ ChatMembersListWidget::ContactItem::ContactItem( ChatMembersListWidget *parent, setText( 0, nick ); setDragEnabled(true); - connect( m_contact, TQT_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ), - this, TQT_SLOT( slotPropertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ) ) ; + connect( m_contact, TQ_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ), + this, TQ_SLOT( slotPropertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ) ) ; setStatus( parent->session()->contactOnlineStatus(m_contact) ); reposition(); @@ -154,17 +154,17 @@ ChatMembersListWidget::ChatMembersListWidget( Kopete::ChatSession *session, TQWi for ( TQPtrListIterator<Kopete::Contact> it( session->members() ); it.current(); ++it ) slotContactAdded( *it ); - connect( this, TQT_SIGNAL( contextMenu( TDEListView*, TQListViewItem *, const TQPoint &) ), - TQT_SLOT( slotContextMenu(TDEListView*, TQListViewItem *, const TQPoint & ) ) ); - connect( this, TQT_SIGNAL( executed( TQListViewItem* ) ), - TQT_SLOT( slotExecute( TQListViewItem * ) ) ); - - connect( session, TQT_SIGNAL( contactAdded(const Kopete::Contact*, bool) ), - this, TQT_SLOT( slotContactAdded(const Kopete::Contact*) ) ); - connect( session, TQT_SIGNAL( contactRemoved(const Kopete::Contact*, const TQString&, Kopete::Message::MessageFormat, bool) ), - this, TQT_SLOT( slotContactRemoved(const Kopete::Contact*) ) ); - connect( session, TQT_SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus & , const Kopete::OnlineStatus &) ), - this, TQT_SLOT( slotContactStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus & ) ) ); + connect( this, TQ_SIGNAL( contextMenu( TDEListView*, TQListViewItem *, const TQPoint &) ), + TQ_SLOT( slotContextMenu(TDEListView*, TQListViewItem *, const TQPoint & ) ) ); + connect( this, TQ_SIGNAL( executed( TQListViewItem* ) ), + TQ_SLOT( slotExecute( TQListViewItem * ) ) ); + + connect( session, TQ_SIGNAL( contactAdded(const Kopete::Contact*, bool) ), + this, TQ_SLOT( slotContactAdded(const Kopete::Contact*) ) ); + connect( session, TQ_SIGNAL( contactRemoved(const Kopete::Contact*, const TQString&, Kopete::Message::MessageFormat, bool) ), + this, TQ_SLOT( slotContactRemoved(const Kopete::Contact*) ) ); + connect( session, TQ_SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus & , const Kopete::OnlineStatus &) ), + this, TQ_SLOT( slotContactStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus & ) ) ); } ChatMembersListWidget::~ChatMembersListWidget() @@ -176,7 +176,7 @@ void ChatMembersListWidget::slotContextMenu( TDEListView*, TQListViewItem *item, if ( ContactItem *contactItem = dynamic_cast<ContactItem*>(item) ) { TDEPopupMenu *p = contactItem->contact()->popupMenu( session() ); - connect( p, TQT_SIGNAL( aboutToHide() ), p, TQT_SLOT( deleteLater() ) ); + connect( p, TQ_SIGNAL( aboutToHide() ), p, TQ_SLOT( deleteLater() ) ); p->popup( point ); } } diff --git a/kopete/kopete/chatwindow/chatmessagepart.cpp b/kopete/kopete/chatwindow/chatmessagepart.cpp index a9bcdcba..5471d528 100644 --- a/kopete/kopete/chatwindow/chatmessagepart.cpp +++ b/kopete/kopete/chatwindow/chatmessagepart.cpp @@ -238,33 +238,33 @@ ChatMessagePart::ChatMessagePart( Kopete::ChatSession *mgr, TQWidget *parent, co // It is not possible to drag and drop on our widget view()->setAcceptDrops(false); - connect( KopetePrefs::prefs(), TQT_SIGNAL(messageAppearanceChanged()), - this, TQT_SLOT( slotAppearanceChanged() ) ); - connect( KopetePrefs::prefs(), TQT_SIGNAL(windowAppearanceChanged()), - this, TQT_SLOT( slotRefreshView() ) ); - connect( KopetePrefs::prefs(), TQT_SIGNAL(styleChanged(const TQString &)), - this, TQT_SLOT( setStyle(const TQString &) ) ); - connect( KopetePrefs::prefs(), TQT_SIGNAL(styleVariantChanged(const TQString &)), - this, TQT_SLOT( setStyleVariant(const TQString &) ) ); + connect( KopetePrefs::prefs(), TQ_SIGNAL(messageAppearanceChanged()), + this, TQ_SLOT( slotAppearanceChanged() ) ); + connect( KopetePrefs::prefs(), TQ_SIGNAL(windowAppearanceChanged()), + this, TQ_SLOT( slotRefreshView() ) ); + connect( KopetePrefs::prefs(), TQ_SIGNAL(styleChanged(const TQString &)), + this, TQ_SLOT( setStyle(const TQString &) ) ); + connect( KopetePrefs::prefs(), TQ_SIGNAL(styleVariantChanged(const TQString &)), + this, TQ_SLOT( setStyleVariant(const TQString &) ) ); // Refresh the style if the display name change. - connect( d->manager, TQT_SIGNAL(displayNameChanged()), this, TQT_SLOT(slotUpdateHeaderDisplayName()) ); - connect( d->manager, TQT_SIGNAL(photoChanged()), this, TQT_SLOT(slotUpdateHeaderPhoto()) ); + connect( d->manager, TQ_SIGNAL(displayNameChanged()), this, TQ_SLOT(slotUpdateHeaderDisplayName()) ); + connect( d->manager, TQ_SIGNAL(photoChanged()), this, TQ_SLOT(slotUpdateHeaderPhoto()) ); - connect ( browserExtension(), TQT_SIGNAL( openURLRequestDelayed( const KURL &, const KParts::URLArgs & ) ), - this, TQT_SLOT( slotOpenURLRequest( const KURL &, const KParts::URLArgs & ) ) ); + connect ( browserExtension(), TQ_SIGNAL( openURLRequestDelayed( const KURL &, const KParts::URLArgs & ) ), + this, TQ_SLOT( slotOpenURLRequest( const KURL &, const KParts::URLArgs & ) ) ); - connect( this, TQT_SIGNAL(popupMenu(const TQString &, const TQPoint &)), - this, TQT_SLOT(slotRightClick(const TQString &, const TQPoint &)) ); - connect( view(), TQT_SIGNAL(contentsMoving(int,int)), - this, TQT_SLOT(slotScrollingTo(int,int)) ); + connect( this, TQ_SIGNAL(popupMenu(const TQString &, const TQPoint &)), + this, TQ_SLOT(slotRightClick(const TQString &, const TQPoint &)) ); + connect( view(), TQ_SIGNAL(contentsMoving(int,int)), + this, TQ_SLOT(slotScrollingTo(int,int)) ); //initActions - d->copyAction = KStdAction::copy( this, TQT_SLOT(copy()), actionCollection() ); - d->saveAction = KStdAction::saveAs( this, TQT_SLOT(save()), actionCollection() ); - d->printAction = KStdAction::print( this, TQT_SLOT(print()),actionCollection() ); - d->closeAction = KStdAction::close( this, TQT_SLOT(slotCloseView()),actionCollection() ); - d->importEmoticon = new TDEAction( i18n( "Import Emoticon"), TQString::fromLatin1( "importemot" ), 0, this, TQT_SLOT( slotImportEmoticon() ), actionCollection() ); - d->copyURLAction = new TDEAction( i18n( "Copy Link Address" ), TQString::fromLatin1( "edit-copy" ), 0, this, TQT_SLOT( slotCopyURL() ), actionCollection() ); + d->copyAction = KStdAction::copy( this, TQ_SLOT(copy()), actionCollection() ); + d->saveAction = KStdAction::saveAs( this, TQ_SLOT(save()), actionCollection() ); + d->printAction = KStdAction::print( this, TQ_SLOT(print()),actionCollection() ); + d->closeAction = KStdAction::close( this, TQ_SLOT(slotCloseView()),actionCollection() ); + d->importEmoticon = new TDEAction( i18n( "Import Emoticon"), TQString::fromLatin1( "importemot" ), 0, this, TQ_SLOT( slotImportEmoticon() ), actionCollection() ); + d->copyURLAction = new TDEAction( i18n( "Copy Link Address" ), TQString::fromLatin1( "edit-copy" ), 0, this, TQ_SLOT( slotCopyURL() ), actionCollection() ); // read formatting override flags readOverrides(); @@ -330,7 +330,7 @@ void ChatMessagePart::slotImportEmoticon() TQTextStream emoStream(fp); emoStream << themeXml.toString(4); fp->close(); - TQTimer::singleShot( 1500, Kopete::Emoticons::self(), TQT_SLOT( reload() ) ); + TQTimer::singleShot( 1500, Kopete::Emoticons::self(), TQ_SLOT( reload() ) ); } void ChatMessagePart::save() @@ -420,7 +420,7 @@ void ChatMessagePart::setStyle( const TQString &stylePath ) // Do the actual style switch // Wait for the event loop before switching the style - TQTimer::singleShot( 0, this, TQT_SLOT(changeStyle()) ); + TQTimer::singleShot( 0, this, TQ_SLOT(changeStyle()) ); } void ChatMessagePart::setStyle( ChatWindowStyle *style ) @@ -430,7 +430,7 @@ void ChatMessagePart::setStyle( ChatWindowStyle *style ) // Do the actual style switch // Wait for the event loop before switching the style - TQTimer::singleShot( 0, this, TQT_SLOT(changeStyle()) ); + TQTimer::singleShot( 0, this, TQ_SLOT(changeStyle()) ); } void ChatMessagePart::setStyleVariant( const TQString &variantPath ) @@ -593,7 +593,7 @@ void ChatMessagePart::appendMessage( Kopete::Message &message, bool restoring ) } if ( !d->scrollPressed ) - TQTimer::singleShot( 1, this, TQT_SLOT( slotScrollView() ) ); + TQTimer::singleShot( 1, this, TQ_SLOT( slotScrollView() ) ); #ifdef STYLE_TIMETEST kdDebug(14000) << "Message time: " << beforeMessage.msecsTo( TQTime::currentTime()) << endl; @@ -613,7 +613,7 @@ void ChatMessagePart::slotRefreshView() void ChatMessagePart::keepScrolledDown() { if ( !d->scrollPressed ) - TQTimer::singleShot( 1, this, TQT_SLOT( slotScrollView() ) ); + TQTimer::singleShot( 1, this, TQ_SLOT( slotScrollView() ) ); } const TQString ChatMessagePart::styleHTML() const @@ -715,7 +715,7 @@ void ChatMessagePart::slotRightClick( const TQString &, const TQPoint &point ) if ( Kopete::Contact *contact = contactFromNode( d->activeElement ) ) { chatWindowPopup = contact->popupMenu( d->manager ); - connect( chatWindowPopup, TQT_SIGNAL( aboutToHide() ), chatWindowPopup , TQT_SLOT( deleteLater() ) ); + connect( chatWindowPopup, TQ_SIGNAL( aboutToHide() ), chatWindowPopup , TQ_SLOT( deleteLater() ) ); } else { @@ -741,7 +741,7 @@ void ChatMessagePart::slotRightClick( const TQString &, const TQPoint &point ) chatWindowPopup->insertSeparator(); d->closeAction->plug( chatWindowPopup ); - connect( chatWindowPopup, TQT_SIGNAL( aboutToHide() ), chatWindowPopup, TQT_SLOT( deleteLater() ) ); + connect( chatWindowPopup, TQ_SIGNAL( aboutToHide() ), chatWindowPopup, TQ_SLOT( deleteLater() ) ); chatWindowPopup->popup( point ); } @@ -941,7 +941,7 @@ void ChatMessagePart::copy(bool justselection /* default false */) if(text.isEmpty()) return; - disconnect( kapp->clipboard(), TQT_SIGNAL( selectionChanged()), this, TQT_SLOT( slotClearSelection())); + disconnect( kapp->clipboard(), TQ_SIGNAL( selectionChanged()), this, TQ_SLOT( slotClearSelection())); #ifndef TQT_NO_MIMECLIPBOARD if(!justselection) @@ -963,7 +963,7 @@ void ChatMessagePart::copy(bool justselection /* default false */) TQApplication::clipboard()->setText( text, TQClipboard::Clipboard ); TQApplication::clipboard()->setText( text, TQClipboard::Selection ); #endif - connect( kapp->clipboard(), TQT_SIGNAL( selectionChanged()), TQT_SLOT( slotClearSelection())); + connect( kapp->clipboard(), TQ_SIGNAL( selectionChanged()), TQ_SLOT( slotClearSelection())); } @@ -1291,7 +1291,7 @@ void ChatMessagePart::slotUpdateHeaderPhoto() { // Do the actual style switch // Wait for the event loop before switching the style - TQTimer::singleShot( 0, this, TQT_SLOT(changeStyle()) ); + TQTimer::singleShot( 0, this, TQ_SLOT(changeStyle()) ); } void ChatMessagePart::changeStyle() diff --git a/kopete/kopete/chatwindow/chattexteditpart.cpp b/kopete/kopete/chatwindow/chattexteditpart.cpp index 3eebf508..1822a96e 100644 --- a/kopete/kopete/chatwindow/chattexteditpart.cpp +++ b/kopete/kopete/chatwindow/chattexteditpart.cpp @@ -49,21 +49,21 @@ ChatTextEditPart::ChatTextEditPart( Kopete::ChatSession *session, TQWidget *pare edit()->setAutoFormatting( TQTextEdit::AutoNone ); // some signals and slots connections - connect( edit(), TQT_SIGNAL( textChanged()), this, TQT_SLOT( slotTextChanged() ) ); + connect( edit(), TQ_SIGNAL( textChanged()), this, TQ_SLOT( slotTextChanged() ) ); // timers for typing notifications m_typingRepeatTimer = new TQTimer(this, "m_typingRepeatTimer"); m_typingStopTimer = new TQTimer(this, "m_typingStopTimer"); - connect( m_typingRepeatTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotRepeatTypingTimer() ) ); - connect( m_typingStopTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotStoppedTypingTimer() ) ); + connect( m_typingRepeatTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotRepeatTypingTimer() ) ); + connect( m_typingStopTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotStoppedTypingTimer() ) ); - connect( session, TQT_SIGNAL( contactAdded(const Kopete::Contact*, bool) ), - this, TQT_SLOT( slotContactAdded(const Kopete::Contact*) ) ); - connect( session, TQT_SIGNAL( contactRemoved(const Kopete::Contact*, const TQString&, Kopete::Message::MessageFormat, bool) ), - this, TQT_SLOT( slotContactRemoved(const Kopete::Contact*) ) ); - connect( session, TQT_SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus & , const Kopete::OnlineStatus &) ), - this, TQT_SLOT( slotContactStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ) ); + connect( session, TQ_SIGNAL( contactAdded(const Kopete::Contact*, bool) ), + this, TQ_SLOT( slotContactAdded(const Kopete::Contact*) ) ); + connect( session, TQ_SIGNAL( contactRemoved(const Kopete::Contact*, const TQString&, Kopete::Message::MessageFormat, bool) ), + this, TQ_SLOT( slotContactRemoved(const Kopete::Contact*) ) ); + connect( session, TQ_SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus & , const Kopete::OnlineStatus &) ), + this, TQ_SLOT( slotContactStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ) ); slotContactAdded( session->myself() ); for ( TQPtrListIterator<Kopete::Contact> it( session->members() ); it.current(); ++it ) @@ -195,8 +195,8 @@ void ChatTextEditPart::slotPropertyChanged( Kopete::Contact*, const TQString &ke void ChatTextEditPart::slotContactAdded( const Kopete::Contact *contact ) { - connect( contact, TQT_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ), - this, TQT_SLOT( slotPropertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ) ) ; + connect( contact, TQ_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ), + this, TQ_SLOT( slotPropertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ) ) ; TQString contactName = contact->property(Kopete::Global::Properties::self()->nickName()).value().toString(); mComplete->addItem( contactName ); @@ -204,8 +204,8 @@ void ChatTextEditPart::slotContactAdded( const Kopete::Contact *contact ) void ChatTextEditPart::slotContactRemoved( const Kopete::Contact *contact ) { - disconnect( contact, TQT_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ), - this, TQT_SLOT( slotPropertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ) ) ; + disconnect( contact, TQ_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ), + this, TQ_SLOT( slotPropertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ) ) ; TQString contactName = contact->property(Kopete::Global::Properties::self()->nickName()).value().toString(); mComplete->removeItem( contactName ); diff --git a/kopete/kopete/chatwindow/chatview.cpp b/kopete/kopete/chatwindow/chatview.cpp index bc4d3227..9d75badc 100644 --- a/kopete/kopete/chatwindow/chatview.cpp +++ b/kopete/kopete/chatwindow/chatview.cpp @@ -103,14 +103,14 @@ ChatView::ChatView( Kopete::ChatSession *mgr, ChatWindowPlugin *parent, const ch m_editPart = new ChatTextEditPart( mgr, editDock, "kopeterichtexteditpart" ); // FIXME: is this used these days? it seems totally unnecessary - connect( editPart(), TQT_SIGNAL( toggleToolbar(bool)), this, TQT_SLOT(slotToggleRtfToolbar(bool)) ); + connect( editPart(), TQ_SIGNAL( toggleToolbar(bool)), this, TQ_SLOT(slotToggleRtfToolbar(bool)) ); - connect( editPart(), TQT_SIGNAL( messageSent( Kopete::Message & ) ), - this, TQT_SIGNAL( messageSent( Kopete::Message & ) ) ); - connect( editPart(), TQT_SIGNAL( canSendChanged( bool ) ), - this, TQT_SIGNAL( canSendChanged(bool) ) ); - connect( editPart(), TQT_SIGNAL( typing(bool) ), - mgr, TQT_SLOT( typing(bool) ) ); + connect( editPart(), TQ_SIGNAL( messageSent( Kopete::Message & ) ), + this, TQ_SIGNAL( messageSent( Kopete::Message & ) ) ); + connect( editPart(), TQ_SIGNAL( canSendChanged( bool ) ), + this, TQ_SIGNAL( canSendChanged(bool) ) ); + connect( editPart(), TQ_SIGNAL( typing(bool) ), + mgr, TQ_SLOT( typing(bool) ) ); //Make the edit area dockable for now editDock->setWidget( editPart()->widget() ); @@ -129,28 +129,28 @@ ChatView::ChatView( Kopete::ChatSession *mgr, ChatWindowPlugin *parent, const ch m_remoteTypingMap.setAutoDelete( true ); //Manager signals - connect( mgr, TQT_SIGNAL( displayNameChanged() ), - this, TQT_SLOT( slotChatDisplayNameChanged() ) ); - connect( mgr, TQT_SIGNAL( contactAdded(const Kopete::Contact*, bool) ), - this, TQT_SLOT( slotContactAdded(const Kopete::Contact*, bool) ) ); - connect( mgr, TQT_SIGNAL( contactRemoved(const Kopete::Contact*, const TQString&, Kopete::Message::MessageFormat, bool) ), - this, TQT_SLOT( slotContactRemoved(const Kopete::Contact*, const TQString&, Kopete::Message::MessageFormat, bool) ) ); - connect( mgr, TQT_SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus & , const Kopete::OnlineStatus &) ), - this, TQT_SLOT( slotContactStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ) ); - connect( mgr, TQT_SIGNAL( remoteTyping( const Kopete::Contact *, bool) ), - this, TQT_SLOT( remoteTyping(const Kopete::Contact *, bool) ) ); - connect( mgr, TQT_SIGNAL( eventNotification( const TQString& ) ), - this, TQT_SLOT( setStatusText( const TQString& ) ) ); + connect( mgr, TQ_SIGNAL( displayNameChanged() ), + this, TQ_SLOT( slotChatDisplayNameChanged() ) ); + connect( mgr, TQ_SIGNAL( contactAdded(const Kopete::Contact*, bool) ), + this, TQ_SLOT( slotContactAdded(const Kopete::Contact*, bool) ) ); + connect( mgr, TQ_SIGNAL( contactRemoved(const Kopete::Contact*, const TQString&, Kopete::Message::MessageFormat, bool) ), + this, TQ_SLOT( slotContactRemoved(const Kopete::Contact*, const TQString&, Kopete::Message::MessageFormat, bool) ) ); + connect( mgr, TQ_SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus & , const Kopete::OnlineStatus &) ), + this, TQ_SLOT( slotContactStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ) ); + connect( mgr, TQ_SIGNAL( remoteTyping( const Kopete::Contact *, bool) ), + this, TQ_SLOT( remoteTyping(const Kopete::Contact *, bool) ) ); + connect( mgr, TQ_SIGNAL( eventNotification( const TQString& ) ), + this, TQ_SLOT( setStatusText( const TQString& ) ) ); //Connections to the manager and the ViewManager that every view should have - connect( this, TQT_SIGNAL( closing( KopeteView * ) ), - KopeteViewManager::viewManager(), TQT_SLOT( slotViewDestroyed( KopeteView * ) ) ); - connect( this, TQT_SIGNAL( activated( KopeteView * ) ), - KopeteViewManager::viewManager(), TQT_SLOT( slotViewActivated( KopeteView * ) ) ); - connect( this, TQT_SIGNAL( messageSent(Kopete::Message &) ), - mgr, TQT_SLOT( sendMessage(Kopete::Message &) ) ); - connect( mgr, TQT_SIGNAL( messageSuccess() ), - this, TQT_SLOT( messageSentSuccessfully() )); + connect( this, TQ_SIGNAL( closing( KopeteView * ) ), + KopeteViewManager::viewManager(), TQ_SLOT( slotViewDestroyed( KopeteView * ) ) ); + connect( this, TQ_SIGNAL( activated( KopeteView * ) ), + KopeteViewManager::viewManager(), TQ_SLOT( slotViewActivated( KopeteView * ) ) ); + connect( this, TQ_SIGNAL( messageSent(Kopete::Message &) ), + mgr, TQ_SLOT( sendMessage(Kopete::Message &) ) ); + connect( mgr, TQ_SIGNAL( messageSuccess() ), + this, TQ_SLOT( messageSentSuccessfully() )); // add contacts slotContactAdded( mgr->myself(), true ); @@ -161,8 +161,8 @@ ChatView::ChatView( Kopete::ChatSession *mgr, ChatWindowPlugin *parent, const ch editPart()->widget()->setFocus(); // init actions - KStdAction::copy( this, TQT_SLOT(copy()), actionCollection() ); - KStdAction::close( this, TQT_SLOT(closeView()),actionCollection() ); + KStdAction::copy( this, TQ_SLOT(copy()), actionCollection() ); + KStdAction::close( this, TQ_SLOT(closeView()),actionCollection() ); setCaption( m_manager->displayName(), false ); @@ -521,7 +521,7 @@ void ChatView::remoteTyping( const Kopete::Contact *contact, bool isTyping ) if( isTyping ) { m_remoteTypingMap.insert( key, new TQTimer(this) ); - connect( m_remoteTypingMap[ key ], TQT_SIGNAL( timeout() ), TQT_SLOT( slotRemoteTypingTimeout() ) ); + connect( m_remoteTypingMap[ key ], TQ_SIGNAL( timeout() ), TQ_SLOT( slotRemoteTypingTimeout() ) ); m_remoteTypingMap[ key ]->start( 6000, true ); } @@ -622,13 +622,13 @@ void ChatView::slotContactAdded(const Kopete::Contact *contact, bool suppress) if( contact->metaContact() && contact->metaContact() != Kopete::ContactList::self()->myself() ) { - connect( contact->metaContact(), TQT_SIGNAL( displayNameChanged(const TQString&, const TQString&) ), - this, TQT_SLOT( slotDisplayNameChanged(const TQString &, const TQString &) ) ); + connect( contact->metaContact(), TQ_SIGNAL( displayNameChanged(const TQString&, const TQString&) ), + this, TQ_SLOT( slotDisplayNameChanged(const TQString &, const TQString &) ) ); } else { - connect( contact, TQT_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ), - this, TQT_SLOT( slotPropertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ) ) ; + connect( contact, TQ_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ), + this, TQ_SLOT( slotPropertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ) ) ; } if( !suppress && m_manager->members().count() > 1 ) @@ -670,13 +670,13 @@ void ChatView::slotContactRemoved( const Kopete::Contact *contact, const TQStrin { if( contact->metaContact() ) { - disconnect( contact->metaContact(), TQT_SIGNAL( displayNameChanged(const TQString&, const TQString&) ), - this, TQT_SLOT( slotDisplayNameChanged(const TQString&, const TQString&) ) ); + disconnect( contact->metaContact(), TQ_SIGNAL( displayNameChanged(const TQString&, const TQString&) ), + this, TQ_SLOT( slotDisplayNameChanged(const TQString&, const TQString&) ) ); } else { - disconnect(contact,TQT_SIGNAL(propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & )), - this, TQT_SLOT( slotPropertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ) ) ; + disconnect(contact,TQ_SIGNAL(propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & )), + this, TQ_SLOT( slotPropertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ) ) ; } } @@ -758,7 +758,7 @@ void ChatView::appendMessage(Kopete::Message &message) { unreadMessageFrom = message.from()->nickName(); } - TQTimer::singleShot( 1000, this, TQT_SLOT( slotMarkMessageRead() ) ); + TQTimer::singleShot( 1000, this, TQ_SLOT( slotMarkMessageRead() ) ); } else unreadMessageFrom = TQString(); @@ -1067,7 +1067,7 @@ void ChatView::dropEvent ( TQDropEvent * event ) void ChatView::registerContextMenuHandler( TQObject *target, const char* slot ) { connect( m_messagePart, - TQT_SIGNAL( contextMenuEvent( Kopete::Message &, const TQString &, TDEPopupMenu * ) ), + TQ_SIGNAL( contextMenuEvent( Kopete::Message &, const TQString &, TDEPopupMenu * ) ), target, slot ); @@ -1076,7 +1076,7 @@ void ChatView::registerContextMenuHandler( TQObject *target, const char* slot ) void ChatView::registerTooltipHandler( TQObject *target, const char* slot ) { connect( m_messagePart, - TQT_SIGNAL( tooltipEvent( Kopete::Message &, const TQString &, TQString & ) ), + TQ_SIGNAL( tooltipEvent( Kopete::Message &, const TQString &, TQString & ) ), target, slot ); diff --git a/kopete/kopete/chatwindow/emoticonselector.cpp b/kopete/kopete/chatwindow/emoticonselector.cpp index fac6fc40..eeed01dd 100644 --- a/kopete/kopete/chatwindow/emoticonselector.cpp +++ b/kopete/kopete/chatwindow/emoticonselector.cpp @@ -89,7 +89,7 @@ void EmoticonSelector::prepareList(void) { TQWidget *w = new EmoticonLabel(it.data().first(), it.key(), this); movieList.push_back( ((TQLabel*)w)->movie() ); - connect(w, TQT_SIGNAL(clicked(const TQString&)), this, TQT_SLOT(emoticonClicked(const TQString&))); + connect(w, TQ_SIGNAL(clicked(const TQString&)), this, TQ_SLOT(emoticonClicked(const TQString&))); // kdDebug(14000) << "adding Emoticon to row=" << row << ", col=" << col << "." << endl; lay->addWidget(w, row, col); if ( col == emoticonsPerRow ) diff --git a/kopete/kopete/chatwindow/kopetechatwindow.cpp b/kopete/kopete/chatwindow/kopetechatwindow.cpp index eef4ab09..20549de2 100644 --- a/kopete/kopete/chatwindow/kopetechatwindow.cpp +++ b/kopete/kopete/chatwindow/kopetechatwindow.cpp @@ -196,7 +196,7 @@ KopeteChatWindow::KopeteChatWindow( TQWidget *parent, const char* name ) m_button_send->setEnabled( false ); m_button_send->setFont( statusBar()->font() ); m_button_send->setFixedHeight( statusBar()->sizeHint().height() ); - connect( m_button_send, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotSendMessage() ) ); + connect( m_button_send, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotSendMessage() ) ); statusBar()->addWidget( m_button_send, 0, true ); } else @@ -314,86 +314,86 @@ void KopeteChatWindow::initActions(void) createStandardStatusBarAction(); chatSend = new TDEAction( i18n( "&Send Message" ), TQString::fromLatin1( "mail-send" ), TQKeySequence(Key_Return) , - this, TQT_SLOT( slotSendMessage() ), coll, "chat_send" ); + this, TQ_SLOT( slotSendMessage() ), coll, "chat_send" ); chatSend->setEnabled( false ); - KStdAction::save ( this, TQT_SLOT(slotChatSave()), coll ); - KStdAction::print ( this, TQT_SLOT(slotChatPrint()), coll ); - TDEAction* quitAction = KStdAction::quit ( this, TQT_SLOT(close()), coll ); + KStdAction::save ( this, TQ_SLOT(slotChatSave()), coll ); + KStdAction::print ( this, TQ_SLOT(slotChatPrint()), coll ); + TDEAction* quitAction = KStdAction::quit ( this, TQ_SLOT(close()), coll ); quitAction->setText( i18n("Close All Chats") ); - tabClose = KStdAction::close ( this, TQT_SLOT(slotChatClosed()), coll, "tabs_close" ); + tabClose = KStdAction::close ( this, TQ_SLOT(slotChatClosed()), coll, "tabs_close" ); tabRight=new TDEAction( i18n( "&Activate Next Tab" ), 0, TDEStdAccel::tabNext(), - this, TQT_SLOT( slotNextTab() ), coll, "tabs_right" ); + this, TQ_SLOT( slotNextTab() ), coll, "tabs_right" ); tabLeft=new TDEAction( i18n( "&Activate Previous Tab" ), 0, TDEStdAccel::tabPrev(), - this, TQT_SLOT( slotPreviousTab() ), coll, "tabs_left" ); + this, TQ_SLOT( slotPreviousTab() ), coll, "tabs_left" ); tabLeft->setEnabled( false ); tabRight->setEnabled( false ); - nickComplete = new TDEAction( i18n( "Nic&k Completion" ), TQString(), 0, this, TQT_SLOT( slotNickComplete() ), coll , "nick_compete"); + nickComplete = new TDEAction( i18n( "Nic&k Completion" ), TQString(), 0, this, TQ_SLOT( slotNickComplete() ), coll , "nick_compete"); nickComplete->setShortcut( TQKeySequence( Key_Tab ) ); tabDetach = new TDEAction( i18n( "&Detach Chat" ), TQString::fromLatin1( "tab_breakoff" ), 0, - this, TQT_SLOT( slotDetachChat() ), coll, "tabs_detach" ); + this, TQ_SLOT( slotDetachChat() ), coll, "tabs_detach" ); tabDetach->setEnabled( false ); actionDetachMenu = new TDEActionMenu( i18n( "&Move Tab to Window" ), TQString::fromLatin1( "tab_breakoff" ), coll, "tabs_detachmove" ); actionDetachMenu->setDelayed( false ); - connect ( actionDetachMenu->popupMenu(), TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotPrepareDetachMenu()) ); - connect ( actionDetachMenu->popupMenu(), TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotDetachChat(int)) ); + connect ( actionDetachMenu->popupMenu(), TQ_SIGNAL(aboutToShow()), this, TQ_SLOT(slotPrepareDetachMenu()) ); + connect ( actionDetachMenu->popupMenu(), TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotDetachChat(int)) ); actionTabPlacementMenu = new TDEActionMenu( i18n( "&Tab Placement" ), coll, "tabs_placement" ); - connect ( actionTabPlacementMenu->popupMenu(), TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotPreparePlacementMenu()) ); - connect ( actionTabPlacementMenu->popupMenu(), TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotPlaceTabs(int)) ); + connect ( actionTabPlacementMenu->popupMenu(), TQ_SIGNAL(aboutToShow()), this, TQ_SLOT(slotPreparePlacementMenu()) ); + connect ( actionTabPlacementMenu->popupMenu(), TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotPlaceTabs(int)) ); tabDetach->setShortcut( TQKeySequence(CTRL + SHIFT + Key_B) ); - KStdAction::cut( this, TQT_SLOT(slotCut()), coll); - KStdAction::copy( this, TQT_SLOT(slotCopy()), coll); - KStdAction::paste( this, TQT_SLOT(slotPaste()), coll); + KStdAction::cut( this, TQ_SLOT(slotCut()), coll); + KStdAction::copy( this, TQ_SLOT(slotCopy()), coll); + KStdAction::paste( this, TQ_SLOT(slotPaste()), coll); - new TDEAction( i18n( "Set Default &Font..." ), TQString::fromLatin1( "charset" ), 0, this, TQT_SLOT( slotSetFont() ), coll, "format_font" ); - new TDEAction( i18n( "Set Default Text &Color..." ), TQString::fromLatin1( "pencil" ), 0, this, TQT_SLOT( slotSetFgColor() ), coll, "format_fgcolor" ); - new TDEAction( i18n( "Set &Background Color..." ), TQString::fromLatin1( "fill" ), 0, this, TQT_SLOT( slotSetBgColor() ), coll, "format_bgcolor" ); + new TDEAction( i18n( "Set Default &Font..." ), TQString::fromLatin1( "charset" ), 0, this, TQ_SLOT( slotSetFont() ), coll, "format_font" ); + new TDEAction( i18n( "Set Default Text &Color..." ), TQString::fromLatin1( "pencil" ), 0, this, TQ_SLOT( slotSetFgColor() ), coll, "format_fgcolor" ); + new TDEAction( i18n( "Set &Background Color..." ), TQString::fromLatin1( "fill" ), 0, this, TQ_SLOT( slotSetBgColor() ), coll, "format_bgcolor" ); historyUp = new TDEAction( i18n( "Previous History" ), TQString(), 0, - this, TQT_SLOT( slotHistoryUp() ), coll, "history_up" ); + this, TQ_SLOT( slotHistoryUp() ), coll, "history_up" ); historyUp->setShortcut( TQKeySequence(CTRL + Key_Up) ); historyDown = new TDEAction( i18n( "Next History" ), TQString(), 0, - this, TQT_SLOT( slotHistoryDown() ), coll, "history_down" ); + this, TQ_SLOT( slotHistoryDown() ), coll, "history_down" ); historyDown->setShortcut( TQKeySequence(CTRL + Key_Down) ); - KStdAction::prior( this, TQT_SLOT( slotPageUp() ), coll, "scroll_up" ); - KStdAction::next( this, TQT_SLOT( slotPageDown() ), coll, "scroll_down" ); + KStdAction::prior( this, TQ_SLOT( slotPageUp() ), coll, "scroll_up" ); + KStdAction::next( this, TQ_SLOT( slotPageDown() ), coll, "scroll_down" ); - KStdAction::showMenubar( this, TQT_SLOT(slotViewMenuBar()), coll ); + KStdAction::showMenubar( this, TQ_SLOT(slotViewMenuBar()), coll ); membersLeft = new TDEToggleAction( i18n( "Place to Left of Chat Area" ), TQString(), 0, - this, TQT_SLOT( slotViewMembersLeft() ), coll, "options_membersleft" ); + this, TQ_SLOT( slotViewMembersLeft() ), coll, "options_membersleft" ); membersRight = new TDEToggleAction( i18n( "Place to Right of Chat Area" ), TQString(), 0, - this, TQT_SLOT( slotViewMembersRight() ), coll, "options_membersright" ); + this, TQ_SLOT( slotViewMembersRight() ), coll, "options_membersright" ); toggleMembers = new TDEToggleAction( i18n( "Show" ), TQString(), 0, - this, TQT_SLOT( slotToggleViewMembers() ), coll, "options_togglemembers" ); + this, TQ_SLOT( slotToggleViewMembers() ), coll, "options_togglemembers" ); toggleMembers->setCheckedState(i18n("Hide")); toggleAutoSpellCheck = new TDEToggleAction( i18n( "Automatic Spell Checking" ), TQString(), 0, - this, TQT_SLOT( toggleAutoSpellChecking() ), coll, "enable_auto_spell_check" ); + this, TQ_SLOT( toggleAutoSpellChecking() ), coll, "enable_auto_spell_check" ); toggleAutoSpellCheck->setChecked( true ); actionSmileyMenu = new KopeteEmoticonAction( coll, "format_smiley" ); actionSmileyMenu->setDelayed( false ); - connect(actionSmileyMenu, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(slotSmileyActivated(const TQString &))); + connect(actionSmileyMenu, TQ_SIGNAL(activated(const TQString &)), this, TQ_SLOT(slotSmileyActivated(const TQString &))); actionContactMenu = new TDEActionMenu(i18n("Co&ntacts"), coll, "contacts_menu" ); actionContactMenu->setDelayed( false ); - connect ( actionContactMenu->popupMenu(), TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotPrepareContactMenu()) ); + connect ( actionContactMenu->popupMenu(), TQ_SIGNAL(aboutToShow()), this, TQ_SLOT(slotPrepareContactMenu()) ); // add configure key bindings menu item - KStdAction::keyBindings( guiFactory(), TQT_SLOT( configureShortcuts() ), coll ); + KStdAction::keyBindings( guiFactory(), TQ_SLOT( configureShortcuts() ), coll ); - KStdAction::configureToolbars(this, TQT_SLOT(slotConfToolbar()), coll); + KStdAction::configureToolbars(this, TQ_SLOT(slotConfToolbar()), coll); KopeteStdAction::preferences( coll , "settings_prefs" ); //The Sending movie @@ -422,7 +422,7 @@ void KopeteChatWindow::initActions(void) createGUI( 0L ); // Special handling for remembering whether the format toolbar is visible or not - connect ( toolBar("formatToolBar"), TQT_SIGNAL(visibilityChanged(bool)), this, TQT_SLOT(slotToggleFormatToolbar(bool)) ); + connect ( toolBar("formatToolBar"), TQ_SIGNAL(visibilityChanged(bool)), this, TQ_SLOT(slotToggleFormatToolbar(bool)) ); } const TQString KopeteChatWindow::fileContents( const TQString &path ) const @@ -599,10 +599,10 @@ void KopeteChatWindow::createTabBar() #if KDE_IS_VERSION(3,4,0) m_tabBar->setAutomaticResizeTabs(true); #endif - connect( m_tabBar, TQT_SIGNAL( closeRequest( TQWidget* )), this, TQT_SLOT( slotCloseChat( TQWidget* ) ) ); + connect( m_tabBar, TQ_SIGNAL( closeRequest( TQWidget* )), this, TQ_SLOT( slotCloseChat( TQWidget* ) ) ); TQToolButton* m_rightWidget = new TQToolButton( m_tabBar ); - connect( m_rightWidget, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotChatClosed() ) ); + connect( m_rightWidget, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotChatClosed() ) ); m_rightWidget->setIconSet( SmallIcon( "tab_remove" ) ); m_rightWidget->adjustSize(); TQToolTip::add( m_rightWidget, i18n("Close the current tab")); @@ -610,8 +610,8 @@ void KopeteChatWindow::createTabBar() mainLayout->addWidget( m_tabBar ); m_tabBar->show(); - connect ( m_tabBar, TQT_SIGNAL(currentChanged(TQWidget *)), this, TQT_SLOT(setActiveView(TQWidget *)) ); - connect ( m_tabBar, TQT_SIGNAL(contextMenu(TQWidget *, const TQPoint & )), this, TQT_SLOT(slotTabContextMenu( TQWidget *, const TQPoint & )) ); + connect ( m_tabBar, TQ_SIGNAL(currentChanged(TQWidget *)), this, TQ_SLOT(setActiveView(TQWidget *)) ); + connect ( m_tabBar, TQ_SIGNAL(contextMenu(TQWidget *, const TQPoint & )), this, TQ_SLOT(slotTabContextMenu( TQWidget *, const TQPoint & )) ); for( ChatView *view = chatViewList.first(); view; view = chatViewList.next() ) addTab( view ); @@ -648,8 +648,8 @@ void KopeteChatWindow::addTab( ChatView *view ) view->show(); else view->hide(); - connect( view, TQT_SIGNAL( captionChanged( bool ) ), this, TQT_SLOT( updateChatLabel() ) ); - connect( view, TQT_SIGNAL( updateStatusIcon( ChatView* ) ), this, TQT_SLOT( slotUpdateCaptionIcons( ChatView* ) ) ); + connect( view, TQ_SIGNAL( captionChanged( bool ) ), this, TQ_SLOT( updateChatLabel() ) ); + connect( view, TQ_SIGNAL( updateStatusIcon( ChatView* ) ), this, TQ_SLOT( slotUpdateCaptionIcons( ChatView* ) ) ); view->setCaption( view->caption(), false ); } @@ -670,8 +670,8 @@ void KopeteChatWindow::deleteTabBar() { if( m_tabBar ) { - disconnect ( m_tabBar, TQT_SIGNAL(currentChanged(TQWidget *)), this, TQT_SLOT(setActiveView(TQWidget *)) ); - disconnect ( m_tabBar, TQT_SIGNAL(contextMenu(TQWidget *, const TQPoint & )), this, TQT_SLOT(slotTabContextMenu( TQWidget *, const TQPoint & )) ); + disconnect ( m_tabBar, TQ_SIGNAL(currentChanged(TQWidget *)), this, TQ_SLOT(setActiveView(TQWidget *)) ); + disconnect ( m_tabBar, TQ_SIGNAL(contextMenu(TQWidget *, const TQPoint & )), this, TQ_SLOT(slotTabContextMenu( TQWidget *, const TQPoint & )) ); if( !chatViewList.isEmpty() ) setPrimaryChatView( chatViewList.first() ); @@ -700,17 +700,17 @@ void KopeteChatWindow::attachChatView( ChatView* newView ) newView->editWidget()->installEventFilter( this ); KCursor::setAutoHideCursor( newView->editWidget(), true, true ); - connect( newView, TQT_SIGNAL(captionChanged( bool)), this, TQT_SLOT(slotSetCaption(bool)) ); - connect( newView, TQT_SIGNAL(messageSuccess( ChatView* )), this, TQT_SLOT(slotStopAnimation( ChatView* )) ); - connect( newView, TQT_SIGNAL(rtfEnabled( ChatView*, bool ) ), this, TQT_SLOT( slotRTFEnabled( ChatView*, bool ) ) ); - connect( newView, TQT_SIGNAL(updateStatusIcon( ChatView* ) ), this, TQT_SLOT(slotUpdateCaptionIcons( ChatView* ) ) ); - connect( newView, TQT_SIGNAL(updateChatState( ChatView*, int ) ), this, TQT_SLOT( updateChatState( ChatView*, int ) ) ); + connect( newView, TQ_SIGNAL(captionChanged( bool)), this, TQ_SLOT(slotSetCaption(bool)) ); + connect( newView, TQ_SIGNAL(messageSuccess( ChatView* )), this, TQ_SLOT(slotStopAnimation( ChatView* )) ); + connect( newView, TQ_SIGNAL(rtfEnabled( ChatView*, bool ) ), this, TQ_SLOT( slotRTFEnabled( ChatView*, bool ) ) ); + connect( newView, TQ_SIGNAL(updateStatusIcon( ChatView* ) ), this, TQ_SLOT(slotUpdateCaptionIcons( ChatView* ) ) ); + connect( newView, TQ_SIGNAL(updateChatState( ChatView*, int ) ), this, TQ_SLOT( updateChatState( ChatView*, int ) ) ); updateSpellCheckAction(); checkDetachEnable(); newView->loadChatSettings(); - connect( newView, TQT_SIGNAL(autoSpellCheckEnabled( ChatView*, bool ) ), - this, TQT_SLOT( slotAutoSpellCheckEnabled( ChatView*, bool ) ) ); + connect( newView, TQ_SIGNAL(autoSpellCheckEnabled( ChatView*, bool ) ), + this, TQ_SLOT( slotAutoSpellCheckEnabled( ChatView*, bool ) ) ); } void KopeteChatWindow::checkDetachEnable() @@ -730,9 +730,9 @@ void KopeteChatWindow::detachChatView( ChatView *view ) if( !chatViewList.removeRef( view ) ) return; - disconnect( view, TQT_SIGNAL(captionChanged( bool)), this, TQT_SLOT(slotSetCaption(bool)) ); - disconnect( view, TQT_SIGNAL( updateStatusIcon( ChatView* ) ), this, TQT_SLOT( slotUpdateCaptionIcons( ChatView* ) ) ); - disconnect( view, TQT_SIGNAL( updateChatState( ChatView*, int ) ), this, TQT_SLOT( updateChatState( ChatView*, int ) ) ); + disconnect( view, TQ_SIGNAL(captionChanged( bool)), this, TQ_SLOT(slotSetCaption(bool)) ); + disconnect( view, TQ_SIGNAL( updateStatusIcon( ChatView* ) ), this, TQ_SLOT( slotUpdateCaptionIcons( ChatView* ) ) ); + disconnect( view, TQ_SIGNAL( updateChatState( ChatView*, int ) ), this, TQ_SLOT( updateChatState( ChatView*, int ) ) ); view->editWidget()->removeEventFilter( this ); if( m_tabBar ) @@ -831,7 +831,7 @@ void KopeteChatWindow::updateBackground( const TQPixmap &pm ) backgroundFile = new KTempFile( TQString(), TQString::fromLatin1( ".bmp" ) ); pm.save( backgroundFile->name(), "BMP" ); - TQTimer::singleShot( 100, this, TQT_SLOT( slotEnableUpdateBg() ) ); + TQTimer::singleShot( 100, this, TQ_SLOT( slotEnableUpdateBg() ) ); } } @@ -844,7 +844,7 @@ void KopeteChatWindow::setActiveView( TQWidget *widget ) if(m_activeView) { - disconnect( m_activeView, TQT_SIGNAL( canSendChanged(bool) ), this, TQT_SLOT( slotUpdateSendEnabled() ) ); + disconnect( m_activeView, TQ_SIGNAL( canSendChanged(bool) ), this, TQ_SLOT( slotUpdateSendEnabled() ) ); guiFactory()->removeClient(m_activeView->msgManager()); m_activeView->saveChatSettings(); } @@ -860,7 +860,7 @@ void KopeteChatWindow::setActiveView( TQWidget *widget ) if( !chatViewList.contains( view ) ) attachChatView( view ); - connect( m_activeView, TQT_SIGNAL( canSendChanged(bool) ), this, TQT_SLOT( slotUpdateSendEnabled() ) ); + connect( m_activeView, TQ_SIGNAL( canSendChanged(bool) ), this, TQ_SLOT( slotUpdateSendEnabled() ) ); //Tell it it is active m_activeView->setActive( true ); @@ -982,8 +982,8 @@ void KopeteChatWindow::slotPrepareContactMenu(void) for ( contact = m_them.first(); contact; contact = m_them.next() ) { TDEPopupMenu *p = contact->popupMenu(); - connect ( actionContactMenu->popupMenu(), TQT_SIGNAL(aboutToHide()), - p, TQT_SLOT(deleteLater() ) ); + connect ( actionContactMenu->popupMenu(), TQ_SIGNAL(aboutToHide()), + p, TQ_SLOT(deleteLater() ) ); if( contact->metaContact() ) contactsMenu->insertItem( contact->onlineStatus().iconFor( contact ) , contact->metaContact()->displayName(), p ); @@ -995,8 +995,8 @@ void KopeteChatWindow::slotPrepareContactMenu(void) { TDEActionMenu *moreMenu = new TDEActionMenu( i18n("More..."), TQString::fromLatin1("folder_open"), contactsMenu ); - connect ( actionContactMenu->popupMenu(), TQT_SIGNAL(aboutToHide()), - moreMenu, TQT_SLOT(deleteLater() ) ); + connect ( actionContactMenu->popupMenu(), TQ_SIGNAL(aboutToHide()), + moreMenu, TQ_SLOT(deleteLater() ) ); moreMenu->plug( contactsMenu ); contactsMenu = moreMenu->popupMenu(); contactCount = 0; diff --git a/kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp b/kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp index 2badcaa8..4eeccab7 100644 --- a/kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp +++ b/kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp @@ -111,8 +111,8 @@ void ChatWindowStyleManager::loadStyles() d->styleDirLister = new KDirLister(this); d->styleDirLister->setDirOnlyMode(true); - connect(d->styleDirLister, TQT_SIGNAL(newItems(const KFileItemList &)), this, TQT_SLOT(slotNewStyles(const KFileItemList &))); - connect(d->styleDirLister, TQT_SIGNAL(completed()), this, TQT_SLOT(slotDirectoryFinished())); + connect(d->styleDirLister, TQ_SIGNAL(newItems(const KFileItemList &)), this, TQ_SLOT(slotNewStyles(const KFileItemList &))); + connect(d->styleDirLister, TQ_SIGNAL(completed()), this, TQ_SLOT(slotDirectoryFinished())); if( !d->styleDirs.isEmpty() ) d->styleDirLister->openURL(d->styleDirs.pop(), true); diff --git a/kopete/kopete/chatwindow/kopeteemailwindow.cpp b/kopete/kopete/chatwindow/kopeteemailwindow.cpp index 4f0b24ea..0fda236e 100644 --- a/kopete/kopete/chatwindow/kopeteemailwindow.cpp +++ b/kopete/kopete/chatwindow/kopeteemailwindow.cpp @@ -129,22 +129,22 @@ KopeteEmailWindow::KopeteEmailWindow( Kopete::ChatSession *manager, EmailWindowP doc.documentElement().removeChild( doc.documentElement().childNodes().item(1) ); //Remove MainToolbar doc.documentElement().removeChild( doc.documentElement().lastChild() ); // Remove Edit popup */ - connect( d->editPart, TQT_SIGNAL( messageSent( Kopete::Message & ) ), - this, TQT_SIGNAL( messageSent( Kopete::Message & ) ) ); - connect( d->editPart, TQT_SIGNAL( canSendChanged( bool ) ), - this, TQT_SLOT( slotUpdateReplySend() ) ); - connect( d->editPart, TQT_SIGNAL( typing(bool) ), - manager, TQT_SIGNAL( typing(bool) ) ); + connect( d->editPart, TQ_SIGNAL( messageSent( Kopete::Message & ) ), + this, TQ_SIGNAL( messageSent( Kopete::Message & ) ) ); + connect( d->editPart, TQ_SIGNAL( canSendChanged( bool ) ), + this, TQ_SLOT( slotUpdateReplySend() ) ); + connect( d->editPart, TQ_SIGNAL( typing(bool) ), + manager, TQ_SIGNAL( typing(bool) ) ); //Connections to the manager and the ViewManager that every view should have - connect( this, TQT_SIGNAL( closing( KopeteView * ) ), - KopeteViewManager::viewManager(), TQT_SLOT( slotViewDestroyed( KopeteView * ) ) ); - connect( this, TQT_SIGNAL( activated( KopeteView * ) ), - KopeteViewManager::viewManager(), TQT_SLOT( slotViewActivated( KopeteView * ) ) ); - connect( this, TQT_SIGNAL( messageSent(Kopete::Message &) ), - manager, TQT_SLOT( sendMessage(Kopete::Message &) ) ); - connect( manager, TQT_SIGNAL( messageSuccess() ), - this, TQT_SLOT( messageSentSuccessfully() )); + connect( this, TQ_SIGNAL( closing( KopeteView * ) ), + KopeteViewManager::viewManager(), TQ_SLOT( slotViewDestroyed( KopeteView * ) ) ); + connect( this, TQ_SIGNAL( activated( KopeteView * ) ), + KopeteViewManager::viewManager(), TQ_SLOT( slotViewActivated( KopeteView * ) ) ); + connect( this, TQ_SIGNAL( messageSent(Kopete::Message &) ), + manager, TQ_SLOT( sendMessage(Kopete::Message &) ) ); + connect( manager, TQ_SIGNAL( messageSuccess() ), + this, TQ_SLOT( messageSentSuccessfully() )); TQWidget *containerWidget = new TQWidget( v ); containerWidget->setSizePolicy( TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum) ); @@ -153,16 +153,16 @@ KopeteEmailWindow::KopeteEmailWindow( Kopete::ChatSession *manager, EmailWindowP h->addStretch(); d->btnReadPrev = new KPushButton( i18n( "<< Prev" ), containerWidget ); - connect( d->btnReadPrev, TQT_SIGNAL( pressed() ), this, TQT_SLOT( slotReadPrev() ) ); + connect( d->btnReadPrev, TQ_SIGNAL( pressed() ), this, TQ_SLOT( slotReadPrev() ) ); h->addWidget( d->btnReadPrev, 0, TQt::AlignRight | TQt::AlignVCenter ); d->btnReadPrev->setEnabled( false ); d->btnReadNext = new KPushButton( i18n( "(0) Next >>" ), containerWidget ); - connect( d->btnReadNext, TQT_SIGNAL( pressed() ), this, TQT_SLOT( slotReadNext() ) ); + connect( d->btnReadNext, TQ_SIGNAL( pressed() ), this, TQ_SLOT( slotReadNext() ) ); h->addWidget( d->btnReadNext, 0, TQt::AlignRight | TQt::AlignVCenter ); d->btnReplySend = new KPushButton( containerWidget ); - connect( d->btnReplySend, TQT_SIGNAL( pressed() ), this, TQT_SLOT( slotReplySend() ) ); + connect( d->btnReplySend, TQ_SIGNAL( pressed() ), this, TQ_SLOT( slotReplySend() ) ); h->addWidget( d->btnReplySend, 0, TQt::AlignRight | TQt::AlignVCenter ); initActions(); @@ -207,33 +207,33 @@ void KopeteEmailWindow::initActions(void) TDEActionCollection *coll = actionCollection(); d->chatSend = new TDEAction( i18n( "&Send Message" ), TQString::fromLatin1( "mail-send" ), 0, - this, TQT_SLOT( slotReplySend() ), coll, "chat_send" ); + this, TQ_SLOT( slotReplySend() ), coll, "chat_send" ); //Default to 'Return' for sending messages d->chatSend->setShortcut( TQKeySequence( Key_Return ) ); - KStdAction::quit ( this, TQT_SLOT( slotCloseView() ), coll ); + KStdAction::quit ( this, TQ_SLOT( slotCloseView() ), coll ); - KStdAction::cut( d->editPart->widget(), TQT_SLOT( cut() ), coll ); - KStdAction::copy( this, TQT_SLOT(slotCopy()), coll); - KStdAction::paste( d->editPart->widget(), TQT_SLOT( paste() ), coll ); + KStdAction::cut( d->editPart->widget(), TQ_SLOT( cut() ), coll ); + KStdAction::copy( this, TQ_SLOT(slotCopy()), coll); + KStdAction::paste( d->editPart->widget(), TQ_SLOT( paste() ), coll ); new TDEAction( i18n( "&Set Font..." ), TQString::fromLatin1( "charset" ), 0, - d->editPart, TQT_SLOT( setFont() ), coll, "format_font" ); + d->editPart, TQ_SLOT( setFont() ), coll, "format_font" ); new TDEAction( i18n( "Set Text &Color..." ), TQString::fromLatin1( "pencil" ), 0, - d->editPart, TQT_SLOT( setFgColor() ), coll, "format_color" ); + d->editPart, TQ_SLOT( setFgColor() ), coll, "format_color" ); new TDEAction( i18n( "Set &Background Color..." ), TQString::fromLatin1( "fill" ), 0, - d->editPart, TQT_SLOT( setBgColor() ), coll, "format_bgcolor" ); + d->editPart, TQ_SLOT( setBgColor() ), coll, "format_bgcolor" ); - KStdAction::showMenubar( this, TQT_SLOT( slotViewMenuBar() ), coll ); + KStdAction::showMenubar( this, TQ_SLOT( slotViewMenuBar() ), coll ); setStandardToolBarMenuEnabled( true ); d->actionSmileyMenu = new KopeteEmoticonAction( coll, "format_smiley" ); d->actionSmileyMenu->setDelayed( false ); - connect(d->actionSmileyMenu, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(slotSmileyActivated(const TQString &))); + connect(d->actionSmileyMenu, TQ_SIGNAL(activated(const TQString &)), this, TQ_SLOT(slotSmileyActivated(const TQString &))); // add configure key bindings menu item - KStdAction::keyBindings( guiFactory(), TQT_SLOT( configureShortcuts() ), coll ); - KStdAction::configureToolbars(this, TQT_SLOT( slotConfToolbar() ), coll); + KStdAction::keyBindings( guiFactory(), TQ_SLOT( configureShortcuts() ), coll ); + KStdAction::configureToolbars(this, TQ_SLOT( slotConfToolbar() ), coll); //FIXME: no longer works? KopeteStdAction::preferences( coll , "settings_prefs" ); @@ -319,7 +319,7 @@ void KopeteEmailWindow::appendMessage(Kopete::Message &message) d->unreadMessageFrom = message.from()->metaContact() ? message.from()->metaContact()->displayName() : message.from()->contactId(); - TQTimer::singleShot( 1000, this, TQT_SLOT(slotMarkMessageRead()) ); + TQTimer::singleShot( 1000, this, TQ_SLOT(slotMarkMessageRead()) ); } } diff --git a/kopete/kopete/chatwindow/kopeteemoticonaction.cpp b/kopete/kopete/chatwindow/kopeteemoticonaction.cpp index e53d27e4..9e0c520f 100644 --- a/kopete/kopete/chatwindow/kopeteemoticonaction.cpp +++ b/kopete/kopete/chatwindow/kopeteemoticonaction.cpp @@ -46,7 +46,7 @@ public: emoticonSelector = new EmoticonSelector( m_popup, "KopeteEmoticonActionPrivate::emoticonSelector"); m_popup->insertItem( emoticonSelector ); // TODO: Maybe connect to kopeteprefs and redo list only on config changes - connect( m_popup, TQT_SIGNAL( aboutToShow() ), emoticonSelector, TQT_SLOT( prepareList() ) ); + connect( m_popup, TQ_SIGNAL( aboutToShow() ), emoticonSelector, TQ_SLOT( prepareList() ) ); } ~KopeteEmoticonActionPrivate() @@ -86,8 +86,8 @@ KopeteEmoticonAction::KopeteEmoticonAction( TQObject* parent, const char* name ) setIconSet( TQIconSet( icon ) ); setShortcutConfigurable( false ); - connect( d->emoticonSelector, TQT_SIGNAL( ItemSelected( const TQString & ) ), - this, TQT_SIGNAL( activated( const TQString & ) ) ); + connect( d->emoticonSelector, TQ_SIGNAL( ItemSelected( const TQString & ) ), + this, TQ_SIGNAL( activated( const TQString & ) ) ); } KopeteEmoticonAction::~KopeteEmoticonAction() @@ -149,7 +149,7 @@ int KopeteEmoticonAction::plug( TQWidget* widget, int index ) menu->setItemEnabled( id, false ); addContainer( menu, id ); - connect( menu, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) ); + connect( menu, TQ_SIGNAL( destroyed() ), this, TQ_SLOT( slotDestroyed() ) ); if ( m_parentCollection ) m_parentCollection->connectHighlight( menu, this ); @@ -166,8 +166,8 @@ int KopeteEmoticonAction::plug( TQWidget* widget, int index ) if ( icon().isEmpty() && !iconSet(TDEIcon::Small).isNull() ) { bar->insertButton( - iconSet(TDEIcon::Small).pixmap(), id_, TQT_SIGNAL(clicked()), this, - TQT_SLOT(slotActivated()), isEnabled(), plainText(), + iconSet(TDEIcon::Small).pixmap(), id_, TQ_SIGNAL(clicked()), this, + TQ_SLOT(slotActivated()), isEnabled(), plainText(), index ); } else @@ -179,8 +179,8 @@ int KopeteEmoticonAction::plug( TQWidget* widget, int index ) else instance = TDEGlobal::instance(); - bar->insertButton( icon(), id_, TQT_SIGNAL( clicked() ), this, - TQT_SLOT( slotActivated() ), isEnabled(), plainText(), + bar->insertButton( icon(), id_, TQ_SIGNAL( clicked() ), this, + TQ_SLOT( slotActivated() ), isEnabled(), plainText(), index, instance ); } @@ -189,7 +189,7 @@ int KopeteEmoticonAction::plug( TQWidget* widget, int index ) if (!whatsThis().isEmpty()) TQWhatsThis::add( bar->getButton(id_), whatsThis() ); - connect( bar, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) ); + connect( bar, TQ_SIGNAL( destroyed() ), this, TQ_SLOT( slotDestroyed() ) ); if (delayed()) bar->setDelayedPopup(id_, popupMenu(), stickyMenu()); @@ -214,7 +214,7 @@ int KopeteEmoticonAction::plug( TQWidget* widget, int index ) bar->setItemEnabled( id, false ); addContainer( bar, id ); - connect( bar, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) ); + connect( bar, TQ_SIGNAL( destroyed() ), this, TQ_SLOT( slotDestroyed() ) ); return containerCount() - 1; } diff --git a/kopete/kopete/chatwindow/krichtexteditpart.cpp b/kopete/kopete/chatwindow/krichtexteditpart.cpp index 70b0692f..52f156d3 100644 --- a/kopete/kopete/chatwindow/krichtexteditpart.cpp +++ b/kopete/kopete/chatwindow/krichtexteditpart.cpp @@ -127,86 +127,86 @@ void KopeteRichTextEditPart::createActions( TDEActionCollection *ac ) enableRichText = new TDEToggleAction(i18n("Enable &Rich Text"), "pencil", 0, ac, "enableRichText" ); enableRichText->setCheckedState(i18n("Disable &Rich Text")); - connect( enableRichText, TQT_SIGNAL( toggled(bool) ), - this, TQT_SLOT( slotSetRichTextEnabled(bool) ) ); + connect( enableRichText, TQ_SIGNAL( toggled(bool) ), + this, TQ_SLOT( slotSetRichTextEnabled(bool) ) ); checkSpelling = new TDEAction( i18n("Check &Spelling"), "tools-check-spelling", 0, - editor, TQT_SLOT( checkSpelling() ), ac, "check_spelling" ); + editor, TQ_SLOT( checkSpelling() ), ac, "check_spelling" ); //Fg Color actionFgColor = new TDEAction( i18n("Text &Color..."), "color_line", 0, - this, TQT_SLOT( setFgColor() ), + this, TQ_SLOT( setFgColor() ), ac, "format_color" ); //BG Color actionBgColor = new TDEAction( i18n("Background Co&lor..."), "color_fill", 0, - this, TQT_SLOT( setBgColor() ), + this, TQ_SLOT( setBgColor() ), ac, "format_bgcolor" ); //Font Family action_font = new TDEFontAction( i18n("&Font"), 0, ac, "format_font" ); - connect( action_font, TQT_SIGNAL( activated( const TQString & ) ), - this, TQT_SLOT( setFont( const TQString & ) ) ); + connect( action_font, TQ_SIGNAL( activated( const TQString & ) ), + this, TQ_SLOT( setFont( const TQString & ) ) ); //Font Size action_font_size = new TDEFontSizeAction( i18n("Font &Size"), 0, ac, "format_font_size" ); - connect( action_font_size, TQT_SIGNAL( fontSizeChanged(int) ), - this, TQT_SLOT( setFontSize(int) ) ); + connect( action_font_size, TQ_SIGNAL( fontSizeChanged(int) ), + this, TQ_SLOT( setFontSize(int) ) ); //Formatting action_bold = new TDEToggleAction( i18n("&Bold"), "format-text-bold", CTRL+Key_B, ac, "format_bold" ); - connect( action_bold, TQT_SIGNAL( toggled(bool) ), - this, TQT_SLOT( setBold(bool) ) ); + connect( action_bold, TQ_SIGNAL( toggled(bool) ), + this, TQ_SLOT( setBold(bool) ) ); action_italic = new TDEToggleAction( i18n("&Italic"), "format-text-italic", CTRL+Key_I, ac, "format_italic" ); - connect( action_italic, TQT_SIGNAL( toggled(bool) ), - this, TQT_SLOT( setItalic(bool) ) ); + connect( action_italic, TQ_SIGNAL( toggled(bool) ), + this, TQ_SLOT( setItalic(bool) ) ); action_underline = new TDEToggleAction( i18n("&Underline"), "format-text-underline", CTRL+Key_U, ac, "format_underline" ); - connect( action_underline, TQT_SIGNAL( toggled(bool) ), - this, TQT_SLOT( setUnderline(bool) ) ); + connect( action_underline, TQ_SIGNAL( toggled(bool) ), + this, TQ_SLOT( setUnderline(bool) ) ); - connect( editor, TQT_SIGNAL( currentFontChanged( const TQFont & ) ), - this, TQT_SLOT( updateCharFmt() ) ); + connect( editor, TQ_SIGNAL( currentFontChanged( const TQFont & ) ), + this, TQ_SLOT( updateCharFmt() ) ); updateCharFmt(); - connect( editor, TQT_SIGNAL( currentFontChanged( const TQFont & ) ), - this, TQT_SLOT( updateFont() ) ); + connect( editor, TQ_SIGNAL( currentFontChanged( const TQFont & ) ), + this, TQ_SLOT( updateFont() ) ); updateFont(); //Alignment action_align_left = new TDEToggleAction( i18n("Align &Left"), "format-text-direction-ltr", 0, ac, "format_align_left" ); - connect( action_align_left, TQT_SIGNAL( toggled(bool) ), - this, TQT_SLOT( setAlignLeft(bool) ) ); + connect( action_align_left, TQ_SIGNAL( toggled(bool) ), + this, TQ_SLOT( setAlignLeft(bool) ) ); action_align_center = new TDEToggleAction( i18n("Align &Center"), "text_center", 0, ac, "format_align_center" ); - connect( action_align_center, TQT_SIGNAL( toggled(bool) ), - this, TQT_SLOT( setAlignCenter(bool) ) ); + connect( action_align_center, TQ_SIGNAL( toggled(bool) ), + this, TQ_SLOT( setAlignCenter(bool) ) ); action_align_right = new TDEToggleAction( i18n("Align &Right"), "format-text-direction-rtl", 0, ac, "format_align_right" ); - connect( action_align_right, TQT_SIGNAL( toggled(bool) ), - this, TQT_SLOT( setAlignRight(bool) ) ); + connect( action_align_right, TQ_SIGNAL( toggled(bool) ), + this, TQ_SLOT( setAlignRight(bool) ) ); action_align_justify = new TDEToggleAction( i18n("&Justify"), "text_block", 0, ac, "format_align_justify" ); - connect( action_align_justify, TQT_SIGNAL( toggled(bool) ), - this, TQT_SLOT( setAlignJustify(bool) ) ); + connect( action_align_justify, TQ_SIGNAL( toggled(bool) ), + this, TQ_SLOT( setAlignJustify(bool) ) ); action_align_left->setExclusiveGroup( "alignment" ); action_align_center->setExclusiveGroup( "alignment" ); action_align_right->setExclusiveGroup( "alignment" ); action_align_justify->setExclusiveGroup( "alignment" ); - connect( editor, TQT_SIGNAL( cursorPositionChanged( int,int ) ), - this, TQT_SLOT( updateAligment() ) ); + connect( editor, TQ_SIGNAL( cursorPositionChanged( int,int ) ), + this, TQ_SLOT( updateAligment() ) ); updateAligment(); } diff --git a/kopete/kopete/config/accounts/kopeteaccountconfig.cpp b/kopete/kopete/config/accounts/kopeteaccountconfig.cpp index 2ecac32f..943f4d08 100644 --- a/kopete/kopete/config/accounts/kopeteaccountconfig.cpp +++ b/kopete/kopete/config/accounts/kopeteaccountconfig.cpp @@ -63,15 +63,15 @@ KopeteAccountConfig::KopeteAccountConfig( TQWidget *parent, const char * /* name m_view->mButtonUp->setIconSet( SmallIconSet( "go-up" ) ); m_view->mButtonDown->setIconSet( SmallIconSet( "go-down" ) ); - connect( m_view->mButtonNew, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddAccount() ) ); - connect( m_view->mButtonEdit, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotEditAccount() ) ); - connect( m_view->mButtonRemove, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotRemoveAccount() ) ); - connect( m_view->mButtonUp, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAccountUp() ) ); - connect( m_view->mButtonDown, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAccountDown() ) ); - connect( m_view->mAccountList, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( slotItemSelected() ) ); - connect( m_view->mAccountList, TQT_SIGNAL( doubleClicked( TQListViewItem * ) ), this, TQT_SLOT( slotEditAccount() ) ); - connect( m_view->mUseColor, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotColorChanged() ) ); - connect( m_view->mColorButton, TQT_SIGNAL( changed( const TQColor & ) ), this, TQT_SLOT( slotColorChanged() ) ); + connect( m_view->mButtonNew, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotAddAccount() ) ); + connect( m_view->mButtonEdit, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotEditAccount() ) ); + connect( m_view->mButtonRemove, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotRemoveAccount() ) ); + connect( m_view->mButtonUp, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotAccountUp() ) ); + connect( m_view->mButtonDown, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotAccountDown() ) ); + connect( m_view->mAccountList, TQ_SIGNAL( selectionChanged() ), this, TQ_SLOT( slotItemSelected() ) ); + connect( m_view->mAccountList, TQ_SIGNAL( doubleClicked( TQListViewItem * ) ), this, TQ_SLOT( slotEditAccount() ) ); + connect( m_view->mUseColor, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( slotColorChanged() ) ); + connect( m_view->mColorButton, TQ_SIGNAL( changed( const TQColor & ) ), this, TQ_SLOT( slotColorChanged() ) ); m_view->mAccountList->setSorting(-1); @@ -181,7 +181,7 @@ void KopeteAccountConfig::slotAccountDown() void KopeteAccountConfig::slotAddAccount() { AddAccountWizard *m_addwizard = new AddAccountWizard( this, "addAccountWizard", true ); - connect( m_addwizard, TQT_SIGNAL( destroyed( TQObject * ) ), this, TQT_SLOT( slotAddWizardDone() ) ); + connect( m_addwizard, TQ_SIGNAL( destroyed( TQObject * ) ), this, TQ_SLOT( slotAddWizardDone() ) ); m_addwizard->show(); } diff --git a/kopete/kopete/config/appearance/appearanceconfig.cpp b/kopete/kopete/config/appearance/appearanceconfig.cpp index 555c36a1..704e8ab4 100644 --- a/kopete/kopete/config/appearance/appearanceconfig.cpp +++ b/kopete/kopete/config/appearance/appearanceconfig.cpp @@ -193,41 +193,41 @@ AppearanceConfig::AppearanceConfig(TQWidget *parent, const char* /*name*/, const // "Emoticons" TAB ========================================================== d->mPrfsEmoticons = new AppearanceConfig_Emoticons(d->mAppearanceTabCtl); - connect(d->mPrfsEmoticons->chkUseEmoticons, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsEmoticons->chkRequireSpaces, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsEmoticons->icon_theme_list, TQT_SIGNAL(selectionChanged()), - this, TQT_SLOT(slotSelectedEmoticonsThemeChanged())); - connect(d->mPrfsEmoticons->btnInstallTheme, TQT_SIGNAL(clicked()), - this, TQT_SLOT(installEmoticonTheme())); - - connect(d->mPrfsEmoticons->btnGetThemes, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotGetEmoticonThemes())); - connect(d->mPrfsEmoticons->btnRemoveTheme, TQT_SIGNAL(clicked()), - this, TQT_SLOT(removeSelectedEmoticonTheme())); - connect(d->mPrfsEmoticons->btnEditThemes, TQT_SIGNAL(clicked()), - this, TQT_SLOT(editSelectedEmoticonTheme())); + connect(d->mPrfsEmoticons->chkUseEmoticons, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsEmoticons->chkRequireSpaces, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsEmoticons->icon_theme_list, TQ_SIGNAL(selectionChanged()), + this, TQ_SLOT(slotSelectedEmoticonsThemeChanged())); + connect(d->mPrfsEmoticons->btnInstallTheme, TQ_SIGNAL(clicked()), + this, TQ_SLOT(installEmoticonTheme())); + + connect(d->mPrfsEmoticons->btnGetThemes, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotGetEmoticonThemes())); + connect(d->mPrfsEmoticons->btnRemoveTheme, TQ_SIGNAL(clicked()), + this, TQ_SLOT(removeSelectedEmoticonTheme())); + connect(d->mPrfsEmoticons->btnEditThemes, TQ_SIGNAL(clicked()), + this, TQ_SLOT(editSelectedEmoticonTheme())); d->mAppearanceTabCtl->addTab(d->mPrfsEmoticons, i18n("&Emoticons")); // "Chat Window" TAB ======================================================== d->mPrfsChatWindow = new AppearanceConfig_ChatWindow(d->mAppearanceTabCtl); - connect(d->mPrfsChatWindow->styleList, TQT_SIGNAL(selectionChanged(TQListBoxItem *)), - this, TQT_SLOT(slotChatStyleSelected())); - connect(d->mPrfsChatWindow->variantList, TQT_SIGNAL(activated(const TQString&)), - this, TQT_SLOT(slotChatStyleVariantSelected(const TQString &))); - connect(d->mPrfsChatWindow->deleteButton, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotDeleteChatStyle())); - connect(d->mPrfsChatWindow->installButton, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotInstallChatStyle())); - connect(d->mPrfsChatWindow->btnGetStyles, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotGetChatStyles())); - connect(d->mPrfsChatWindow->groupConsecutiveMessages, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(emitChanged())); + connect(d->mPrfsChatWindow->styleList, TQ_SIGNAL(selectionChanged(TQListBoxItem *)), + this, TQ_SLOT(slotChatStyleSelected())); + connect(d->mPrfsChatWindow->variantList, TQ_SIGNAL(activated(const TQString&)), + this, TQ_SLOT(slotChatStyleVariantSelected(const TQString &))); + connect(d->mPrfsChatWindow->deleteButton, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotDeleteChatStyle())); + connect(d->mPrfsChatWindow->installButton, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotInstallChatStyle())); + connect(d->mPrfsChatWindow->btnGetStyles, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotGetChatStyles())); + connect(d->mPrfsChatWindow->groupConsecutiveMessages, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(emitChanged())); // Show the available styles when the Manager has finish to load the styles. - connect(ChatWindowStyleManager::self(), TQT_SIGNAL(loadStylesFinished()), this, TQT_SLOT(slotLoadChatStyles())); + connect(ChatWindowStyleManager::self(), TQ_SIGNAL(loadStylesFinished()), this, TQ_SLOT(slotLoadChatStyles())); d->mPrfsChatWindow->htmlFrame->setFrameStyle(TQFrame::WinPanel | TQFrame::Sunken); // Create the fake Chat Session @@ -252,30 +252,30 @@ AppearanceConfig::AppearanceConfig(TQWidget *parent, const char* /*name*/, const // "Contact List" TAB ======================================================= d->mPrfsContactList = new AppearanceConfig_ContactList(d->mAppearanceTabCtl); - connect(d->mPrfsContactList->mTreeContactList, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsContactList->mSortByGroup, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsContactList->mEditTooltips, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotEditTooltips())); - connect(d->mPrfsContactList->mIndentContacts, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsContactList->mDisplayMode, TQT_SIGNAL(clicked(int)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsContactList->mIconMode, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsContactList->mThemeURL, TQT_SIGNAL(textChanged(const TQString&)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsContactList->mAnimateChanges, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsContactList->mFadeVisibility, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsContactList->mFoldVisibility, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsContactList->mAutoHide, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsContactList->mAutoHideTimeout, TQT_SIGNAL(valueChanged(int)), - this, TQT_SLOT(emitChanged())); + connect(d->mPrfsContactList->mTreeContactList, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsContactList->mSortByGroup, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsContactList->mEditTooltips, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotEditTooltips())); + connect(d->mPrfsContactList->mIndentContacts, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsContactList->mDisplayMode, TQ_SIGNAL(clicked(int)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsContactList->mIconMode, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsContactList->mThemeURL, TQ_SIGNAL(textChanged(const TQString&)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsContactList->mAnimateChanges, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsContactList->mFadeVisibility, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsContactList->mFoldVisibility, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsContactList->mAutoHide, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsContactList->mAutoHideTimeout, TQ_SIGNAL(valueChanged(int)), + this, TQ_SLOT(emitChanged())); // don't enable the checkbox if XRender is not available #ifdef HAVE_XRENDER @@ -288,39 +288,39 @@ AppearanceConfig::AppearanceConfig(TQWidget *parent, const char* /*name*/, const // "Colors and Fonts" TAB =================================================== d->mPrfsColors = new AppearanceConfig_Colors(d->mAppearanceTabCtl); - connect(d->mPrfsColors->foregroundColor, TQT_SIGNAL(changed(const TQColor &)), - this, TQT_SLOT(slotHighlightChanged())); - connect(d->mPrfsColors->backgroundColor, TQT_SIGNAL(changed(const TQColor &)), - this, TQT_SLOT(slotHighlightChanged())); - connect(d->mPrfsColors->fontFace, TQT_SIGNAL(fontSelected(const TQFont &)), - this, TQT_SLOT(slotChangeFont())); - connect(d->mPrfsColors->textColor, TQT_SIGNAL(changed(const TQColor &)), - this, TQT_SLOT(slotUpdateChatPreview())); - connect(d->mPrfsColors->bgColor, TQT_SIGNAL(changed(const TQColor &)), - this, TQT_SLOT(slotUpdateChatPreview())); - connect(d->mPrfsColors->linkColor, TQT_SIGNAL(changed(const TQColor &)), - this, TQT_SLOT(slotUpdateChatPreview())); - connect(d->mPrfsColors->mGreyIdleMetaContacts, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsColors->idleContactColor, TQT_SIGNAL(changed(const TQColor &)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsColors->mUseCustomFonts, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsColors->mSmallFont, TQT_SIGNAL(fontSelected(const TQFont &)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsColors->mNormalFont, TQT_SIGNAL(fontSelected(const TQFont &)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsColors->mGroupFont, TQT_SIGNAL(fontSelected(const TQFont &)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsColors->mGroupNameColor, TQT_SIGNAL(changed(const TQColor &)), - this, TQT_SLOT(emitChanged())); - - connect(d->mPrfsColors->mBgOverride, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsColors->mFgOverride, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(emitChanged())); - connect(d->mPrfsColors->mRtfOverride, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(emitChanged())); + connect(d->mPrfsColors->foregroundColor, TQ_SIGNAL(changed(const TQColor &)), + this, TQ_SLOT(slotHighlightChanged())); + connect(d->mPrfsColors->backgroundColor, TQ_SIGNAL(changed(const TQColor &)), + this, TQ_SLOT(slotHighlightChanged())); + connect(d->mPrfsColors->fontFace, TQ_SIGNAL(fontSelected(const TQFont &)), + this, TQ_SLOT(slotChangeFont())); + connect(d->mPrfsColors->textColor, TQ_SIGNAL(changed(const TQColor &)), + this, TQ_SLOT(slotUpdateChatPreview())); + connect(d->mPrfsColors->bgColor, TQ_SIGNAL(changed(const TQColor &)), + this, TQ_SLOT(slotUpdateChatPreview())); + connect(d->mPrfsColors->linkColor, TQ_SIGNAL(changed(const TQColor &)), + this, TQ_SLOT(slotUpdateChatPreview())); + connect(d->mPrfsColors->mGreyIdleMetaContacts, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsColors->idleContactColor, TQ_SIGNAL(changed(const TQColor &)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsColors->mUseCustomFonts, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsColors->mSmallFont, TQ_SIGNAL(fontSelected(const TQFont &)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsColors->mNormalFont, TQ_SIGNAL(fontSelected(const TQFont &)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsColors->mGroupFont, TQ_SIGNAL(fontSelected(const TQFont &)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsColors->mGroupNameColor, TQ_SIGNAL(changed(const TQColor &)), + this, TQ_SLOT(emitChanged())); + + connect(d->mPrfsColors->mBgOverride, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsColors->mFgOverride, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(emitChanged())); + connect(d->mPrfsColors->mRtfOverride, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(emitChanged())); d->mAppearanceTabCtl->addTab(d->mPrfsColors, i18n("Colors && Fonts")); @@ -696,7 +696,7 @@ void AppearanceConfig::slotGetChatStyles() downloadDialog->setType( contentType ); // you have to do this by hand when providing your own Engine KNS::ProviderLoader *provider = new KNS::ProviderLoader( this ); - TQObject::connect( provider, TQT_SIGNAL( providersLoaded(Provider::List*) ), downloadDialog, TQT_SLOT( slotProviders (Provider::List *) ) ); + TQObject::connect( provider, TQ_SIGNAL( providersLoaded(Provider::List*) ), downloadDialog, TQ_SLOT( slotProviders (Provider::List *) ) ); provider->load( contentType, "https://www.trinitydesktop.org/ocs/providers.xml" ); downloadDialog->exec(); } @@ -869,7 +869,7 @@ void AppearanceConfig::slotGetEmoticonThemes() void AppearanceConfig::slotEditTooltips() { TooltipEditDialog *dlg = new TooltipEditDialog(this); - connect(dlg, TQT_SIGNAL(changed(bool)), this, TQT_SIGNAL(changed(bool))); + connect(dlg, TQ_SIGNAL(changed(bool)), this, TQ_SIGNAL(changed(bool))); dlg->exec(); delete dlg; } diff --git a/kopete/kopete/config/appearance/emoticonseditdialog.cpp b/kopete/kopete/config/appearance/emoticonseditdialog.cpp index 7bd23273..1432a328 100644 --- a/kopete/kopete/config/appearance/emoticonseditdialog.cpp +++ b/kopete/kopete/config/appearance/emoticonseditdialog.cpp @@ -60,7 +60,7 @@ void EditDialog::setupDlg() hb->addWidget(leText); vl->addLayout(hb); setMainWidget(wdg); - connect(btnIcon, TQT_SIGNAL(clicked()), this, TQT_SLOT(btnIconClicked())); + connect(btnIcon, TQ_SIGNAL(clicked()), this, TQ_SLOT(btnIconClicked())); } void EditDialog::btnIconClicked() @@ -134,10 +134,10 @@ EmoticonsEditDialog::EmoticonsEditDialog(TQWidget *parent, TQString theme, const mMainWidget->klvEmoticons->setColumnWidth(0, TQListView::Maximum); mMainWidget->klvEmoticons->setColumnWidth(1, TQListView::Maximum); - connect(this, TQT_SIGNAL(okClicked()), this, TQT_SLOT(slotOkClicked())); - connect(mMainWidget->btnAdd, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAddClicked())); - connect(mMainWidget->btnEdit, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditClicked())); - connect(mMainWidget->btnRemove, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotRemoveClicked())); + connect(this, TQ_SIGNAL(okClicked()), this, TQ_SLOT(slotOkClicked())); + connect(mMainWidget->btnAdd, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotAddClicked())); + connect(mMainWidget->btnEdit, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotEditClicked())); + connect(mMainWidget->btnRemove, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotRemoveClicked())); } void EmoticonsEditDialog::slotOkClicked() diff --git a/kopete/kopete/config/appearance/tooltipeditdialog.cpp b/kopete/kopete/config/appearance/tooltipeditdialog.cpp index d23fbe74..eb6b6269 100644 --- a/kopete/kopete/config/appearance/tooltipeditdialog.cpp +++ b/kopete/kopete/config/appearance/tooltipeditdialog.cpp @@ -66,8 +66,8 @@ TooltipEditDialog::TooltipEditDialog(TQWidget *parent, const char* name) Kopete::Global::Properties::self()->templateMap()); TQStringList usedKeys = KopetePrefs::prefs()->toolTipContents(); - connect(mMainWidget->lstUnusedItems, TQT_SIGNAL(doubleClicked ( TQListViewItem *, const TQPoint &, int )), this, TQT_SLOT(slotAddButton())); - connect(mMainWidget->lstUsedItems, TQT_SIGNAL(doubleClicked ( TQListViewItem *, const TQPoint &, int )), this, TQT_SLOT(slotRemoveButton())); + connect(mMainWidget->lstUnusedItems, TQ_SIGNAL(doubleClicked ( TQListViewItem *, const TQPoint &, int )), this, TQ_SLOT(slotAddButton())); + connect(mMainWidget->lstUsedItems, TQ_SIGNAL(doubleClicked ( TQListViewItem *, const TQPoint &, int )), this, TQ_SLOT(slotRemoveButton())); // first fill the "used" list TQStringList::Iterator usedIt=usedKeys.end(); @@ -91,35 +91,35 @@ TooltipEditDialog::TooltipEditDialog(TQWidget *parent, const char* name) new TooltipItem(mMainWidget->lstUnusedItems, it.data().label(), it.key()); } - connect(mMainWidget->lstUnusedItems, TQT_SIGNAL(selectionChanged(TQListViewItem *)), - this, TQT_SLOT(slotUnusedSelected(TQListViewItem *))); - connect(mMainWidget->lstUsedItems, TQT_SIGNAL(selectionChanged(TQListViewItem *)), - this, TQT_SLOT(slotUsedSelected(TQListViewItem *))); + connect(mMainWidget->lstUnusedItems, TQ_SIGNAL(selectionChanged(TQListViewItem *)), + this, TQ_SLOT(slotUnusedSelected(TQListViewItem *))); + connect(mMainWidget->lstUsedItems, TQ_SIGNAL(selectionChanged(TQListViewItem *)), + this, TQ_SLOT(slotUsedSelected(TQListViewItem *))); TQIconSet iconSet; iconSet = SmallIconSet("go-up"); mMainWidget->tbUp->setIconSet(iconSet); mMainWidget->tbUp->setEnabled(false); mMainWidget->tbUp->setAutoRepeat(true); - connect(mMainWidget->tbUp, TQT_SIGNAL(clicked()), TQT_SLOT(slotUpButton())); + connect(mMainWidget->tbUp, TQ_SIGNAL(clicked()), TQ_SLOT(slotUpButton())); iconSet = SmallIconSet("go-down"); mMainWidget->tbDown->setIconSet(iconSet); mMainWidget->tbDown->setEnabled(false); mMainWidget->tbDown->setAutoRepeat(true); - connect(mMainWidget->tbDown, TQT_SIGNAL(clicked()), TQT_SLOT(slotDownButton())); + connect(mMainWidget->tbDown, TQ_SIGNAL(clicked()), TQ_SLOT(slotDownButton())); iconSet = TQApplication::reverseLayout() ? SmallIconSet("back") : SmallIconSet("forward"); mMainWidget->tbAdd->setIconSet(iconSet); mMainWidget->tbAdd->setEnabled(false); - connect(mMainWidget->tbAdd, TQT_SIGNAL(clicked()), TQT_SLOT(slotAddButton())); + connect(mMainWidget->tbAdd, TQ_SIGNAL(clicked()), TQ_SLOT(slotAddButton())); iconSet = TQApplication::reverseLayout() ? SmallIconSet("forward") : SmallIconSet("back"); mMainWidget->tbRemove->setIconSet(iconSet); mMainWidget->tbRemove->setEnabled(false); - connect(mMainWidget->tbRemove, TQT_SIGNAL(clicked()), TQT_SLOT(slotRemoveButton())); + connect(mMainWidget->tbRemove, TQ_SIGNAL(clicked()), TQ_SLOT(slotRemoveButton())); - connect(this, TQT_SIGNAL(okClicked()), this, TQT_SLOT(slotOkClicked())); + connect(this, TQ_SIGNAL(okClicked()), this, TQ_SLOT(slotOkClicked())); resize(TQSize(450, 450)); } diff --git a/kopete/kopete/config/avdevice/avdeviceconfig.cpp b/kopete/kopete/config/avdevice/avdeviceconfig.cpp index fe9c59aa..5add39fc 100644 --- a/kopete/kopete/config/avdevice/avdeviceconfig.cpp +++ b/kopete/kopete/config/avdevice/avdeviceconfig.cpp @@ -52,17 +52,17 @@ AVDeviceConfig::AVDeviceConfig(TQWidget *parent, const char * name , const TQSt // "Video" TAB ============================================================ mPrfsVideoDevice = new AVDeviceConfig_VideoDevice(mAVDeviceTabCtl); - connect(mPrfsVideoDevice->mDeviceKComboBox, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotDeviceKComboBoxChanged(int))); - connect(mPrfsVideoDevice->mInputKComboBox, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotInputKComboBoxChanged(int))); - connect(mPrfsVideoDevice->mStandardKComboBox, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotStandardKComboBoxChanged(int))); - connect(mPrfsVideoDevice->mBrightnessSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotBrightnessSliderChanged(int))); - connect(mPrfsVideoDevice->mContrastSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotContrastSliderChanged(int))); - connect(mPrfsVideoDevice->mSaturationSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotSaturationSliderChanged(int))); - connect(mPrfsVideoDevice->mWhitenessSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotWhitenessSliderChanged(int))); - connect(mPrfsVideoDevice->mHueSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotHueSliderChanged(int))); - connect(mPrfsVideoDevice->mImageAutoBrightnessContrast, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotImageAutoBrightnessContrastChanged(bool))); - connect(mPrfsVideoDevice->mImageAutoColorCorrection, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotImageAutoColorCorrectionChanged(bool))); - connect(mPrfsVideoDevice->mImageAsMirror, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotImageAsMirrorChanged(bool))); + connect(mPrfsVideoDevice->mDeviceKComboBox, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotDeviceKComboBoxChanged(int))); + connect(mPrfsVideoDevice->mInputKComboBox, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotInputKComboBoxChanged(int))); + connect(mPrfsVideoDevice->mStandardKComboBox, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotStandardKComboBoxChanged(int))); + connect(mPrfsVideoDevice->mBrightnessSlider, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(slotBrightnessSliderChanged(int))); + connect(mPrfsVideoDevice->mContrastSlider, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(slotContrastSliderChanged(int))); + connect(mPrfsVideoDevice->mSaturationSlider, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(slotSaturationSliderChanged(int))); + connect(mPrfsVideoDevice->mWhitenessSlider, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(slotWhitenessSliderChanged(int))); + connect(mPrfsVideoDevice->mHueSlider, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(slotHueSliderChanged(int))); + connect(mPrfsVideoDevice->mImageAutoBrightnessContrast, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotImageAutoBrightnessContrastChanged(bool))); + connect(mPrfsVideoDevice->mImageAutoColorCorrection, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotImageAutoColorCorrectionChanged(bool))); + connect(mPrfsVideoDevice->mImageAsMirror, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotImageAsMirrorChanged(bool))); // why is this here? // mPrfsVideoDevice->mVideoImageLabel->setPixmap(qpixmap); @@ -81,7 +81,7 @@ AVDeviceConfig::AVDeviceConfig(TQWidget *parent, const char * name , const TQSt mVideoDevicePool->getImage(&qimage); if (qpixmap.convertFromImage(qimage,0) == true) mPrfsVideoDevice->mVideoImageLabel->setPixmap(qpixmap); - connect(&qtimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotUpdateImage()) ); + connect(&qtimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotUpdateImage()) ); qtimer.start(0,FALSE); } diff --git a/kopete/kopete/config/behavior/behaviorconfig.cpp b/kopete/kopete/config/behavior/behaviorconfig.cpp index e042c1d4..8f4e7de6 100644 --- a/kopete/kopete/config/behavior/behaviorconfig.cpp +++ b/kopete/kopete/config/behavior/behaviorconfig.cpp @@ -77,81 +77,81 @@ BehaviorConfig::BehaviorConfig(TQWidget *parent, const char * /* name */, const // "General" TAB ============================================================ - connect(mPrfsGeneral->mShowTrayChk, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect(mPrfsGeneral->mStartDockedChk, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect(mPrfsGeneral->mUseQueueChk, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect(mPrfsGeneral->mUseStackChk, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect(mPrfsGeneral->mQueueUnreadMessagesChk, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect(mPrfsGeneral->mAutoConnect, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); + connect(mPrfsGeneral->mShowTrayChk, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect(mPrfsGeneral->mStartDockedChk, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect(mPrfsGeneral->mUseQueueChk, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect(mPrfsGeneral->mUseStackChk, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect(mPrfsGeneral->mQueueUnreadMessagesChk, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect(mPrfsGeneral->mAutoConnect, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); // "Events" TAB ============================================================ - connect(mPrfsEvents->mQueueOnlyHighlightedMessagesInGroupChatsChk, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect(mPrfsEvents->mQueueOnlyMessagesOnAnotherDesktopChk, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect(mPrfsEvents->mBalloonNotifyChk, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect(mPrfsEvents->mBalloonNotifyIgnoreClosesChatViewChk, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect(mPrfsEvents->mCloseBalloonChk, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect(mPrfsEvents->mBalloonCloseDelay, TQT_SIGNAL(valueChanged(int)), - this, TQT_SLOT(slotValueChanged(int))); - connect(mPrfsEvents->mTrayflashNotifyChk, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect(mPrfsEvents->mTrayflashNotifyLeftClickOpensMessageChk, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect(mPrfsEvents->mTrayflashNotifySetCurrentDesktopToChatViewChk, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect(mPrfsEvents->mSoundIfAwayChk, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect(mPrfsEvents->mEventIfActive, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect(mPrfsEvents->mRaiseMsgWindowChk, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); + connect(mPrfsEvents->mQueueOnlyHighlightedMessagesInGroupChatsChk, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect(mPrfsEvents->mQueueOnlyMessagesOnAnotherDesktopChk, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect(mPrfsEvents->mBalloonNotifyChk, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect(mPrfsEvents->mBalloonNotifyIgnoreClosesChatViewChk, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect(mPrfsEvents->mCloseBalloonChk, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect(mPrfsEvents->mBalloonCloseDelay, TQ_SIGNAL(valueChanged(int)), + this, TQ_SLOT(slotValueChanged(int))); + connect(mPrfsEvents->mTrayflashNotifyChk, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect(mPrfsEvents->mTrayflashNotifyLeftClickOpensMessageChk, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect(mPrfsEvents->mTrayflashNotifySetCurrentDesktopToChatViewChk, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect(mPrfsEvents->mSoundIfAwayChk, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect(mPrfsEvents->mEventIfActive, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect(mPrfsEvents->mRaiseMsgWindowChk, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); // "Chat" TAB =============================================================== - connect( mPrfsChat->cb_ShowEventsChk, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect( mPrfsChat->highlightEnabled, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect( mPrfsChat->cb_SpellCheckChk, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect( mPrfsChat->cmbChatGroupingPolicy, TQT_SIGNAL(activated(int)), - this, TQT_SLOT(slotValueChanged(int))); - connect( mPrfsChat->mChatViewBufferSize, TQT_SIGNAL(valueChanged(int)), - this, TQT_SLOT(slotValueChanged(int))); - connect( mPrfsChat->truncateContactNameEnabled, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect( mPrfsChat->mMaxContactNameLength, TQT_SIGNAL(valueChanged(int)), - this, TQT_SLOT(slotValueChanged(int))); - connect( mPrfsChat->viewPlugin, TQT_SIGNAL(activated(int)), - this, TQT_SLOT(slotValueChanged(int))); - connect( mPrfsChat->viewPlugin, TQT_SIGNAL(activated(int)), - this, TQT_SLOT(slotUpdatePluginLabel(int))); + connect( mPrfsChat->cb_ShowEventsChk, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect( mPrfsChat->highlightEnabled, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect( mPrfsChat->cb_SpellCheckChk, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect( mPrfsChat->cmbChatGroupingPolicy, TQ_SIGNAL(activated(int)), + this, TQ_SLOT(slotValueChanged(int))); + connect( mPrfsChat->mChatViewBufferSize, TQ_SIGNAL(valueChanged(int)), + this, TQ_SLOT(slotValueChanged(int))); + connect( mPrfsChat->truncateContactNameEnabled, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect( mPrfsChat->mMaxContactNameLength, TQ_SIGNAL(valueChanged(int)), + this, TQ_SLOT(slotValueChanged(int))); + connect( mPrfsChat->viewPlugin, TQ_SIGNAL(activated(int)), + this, TQ_SLOT(slotValueChanged(int))); + connect( mPrfsChat->viewPlugin, TQ_SIGNAL(activated(int)), + this, TQ_SLOT(slotUpdatePluginLabel(int))); // "Away" TAB =============================================================== - connect( mAwayConfigUI->rememberedMessages, TQT_SIGNAL(valueChanged(int)), - this, TQT_SLOT(slotValueChanged(int))); - connect( mAwayConfigUI->mAutoAwayTimeout, TQT_SIGNAL(valueChanged(int)), - this, TQT_SLOT(slotValueChanged(int))); - connect( mAwayConfigUI->mGoAvailable, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect( mAwayConfigUI->mUseAutoAway, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect( mAwayConfigUI->mDisplayLastAwayMessage, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect( mAwayConfigUI->mDisplayCustomAwayMessage, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotSettingsChanged(bool))); - connect( mAwayConfigUI->mAutoAwayMessageEdit, TQT_SIGNAL(textChanged(const TQString&)), - this, TQT_SLOT(slotTextChanged(const TQString&))); + connect( mAwayConfigUI->rememberedMessages, TQ_SIGNAL(valueChanged(int)), + this, TQ_SLOT(slotValueChanged(int))); + connect( mAwayConfigUI->mAutoAwayTimeout, TQ_SIGNAL(valueChanged(int)), + this, TQ_SLOT(slotValueChanged(int))); + connect( mAwayConfigUI->mGoAvailable, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect( mAwayConfigUI->mUseAutoAway, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect( mAwayConfigUI->mDisplayLastAwayMessage, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect( mAwayConfigUI->mDisplayCustomAwayMessage, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotSettingsChanged(bool))); + connect( mAwayConfigUI->mAutoAwayMessageEdit, TQ_SIGNAL(textChanged(const TQString&)), + this, TQ_SLOT(slotTextChanged(const TQString&))); } void BehaviorConfig::save() diff --git a/kopete/kopete/config/identity/kopeteidentityconfig.cpp b/kopete/kopete/config/identity/kopeteidentityconfig.cpp index f57de188..c6419c13 100644 --- a/kopete/kopete/config/identity/kopeteidentityconfig.cpp +++ b/kopete/kopete/config/identity/kopeteidentityconfig.cpp @@ -129,28 +129,28 @@ KopeteIdentityConfig::KopeteIdentityConfig(TQWidget *parent, const char */*name* load(); // Load Configuration // Action signal/slots - connect(d->m_view->buttonChangeAddressee, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotChangeAddressee())); - connect(d->m_view->comboSelectIdentity, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(slotUpdateCurrentIdentity(const TQString& ))); - connect(d->m_view->buttonNewIdentity, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNewIdentity())); - connect(d->m_view->buttonCopyIdentity, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCopyIdentity())); - connect(d->m_view->buttonRenameIdentity, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotRenameIdentity())); - connect(d->m_view->buttonRemoveIdentity, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotRemoveIdentity())); - connect(d->m_view->comboPhotoURL, TQT_SIGNAL(urlSelected(const TQString& )), this, TQT_SLOT(slotChangePhoto(const TQString& ))); - connect(d->m_view->buttonClearPhoto, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClearPhoto())); + connect(d->m_view->buttonChangeAddressee, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotChangeAddressee())); + connect(d->m_view->comboSelectIdentity, TQ_SIGNAL(activated(const TQString &)), this, TQ_SLOT(slotUpdateCurrentIdentity(const TQString& ))); + connect(d->m_view->buttonNewIdentity, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotNewIdentity())); + connect(d->m_view->buttonCopyIdentity, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotCopyIdentity())); + connect(d->m_view->buttonRenameIdentity, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotRenameIdentity())); + connect(d->m_view->buttonRemoveIdentity, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotRemoveIdentity())); + connect(d->m_view->comboPhotoURL, TQ_SIGNAL(urlSelected(const TQString& )), this, TQ_SLOT(slotChangePhoto(const TQString& ))); + connect(d->m_view->buttonClearPhoto, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotClearPhoto())); // Settings signal/slots - connect(d->m_view->radioNicknameContact, TQT_SIGNAL(toggled(bool )), this, TQT_SLOT(slotEnableAndDisableWidgets())); - connect(d->m_view->radioNicknameCustom, TQT_SIGNAL(toggled(bool )), this, TQT_SLOT(slotEnableAndDisableWidgets())); - connect(d->m_view->radioNicknameKABC, TQT_SIGNAL(toggled(bool )), this, TQT_SLOT(slotEnableAndDisableWidgets())); - - connect(d->m_view->radioPhotoContact, TQT_SIGNAL(toggled(bool )), this, TQT_SLOT(slotEnableAndDisableWidgets())); - connect(d->m_view->radioPhotoCustom, TQT_SIGNAL(toggled(bool )), this, TQT_SLOT(slotEnableAndDisableWidgets())); - connect(d->m_view->radioPhotoKABC, TQT_SIGNAL(toggled(bool )), this, TQT_SLOT(slotEnableAndDisableWidgets())); - - connect(d->m_view->checkSyncPhotoKABC, TQT_SIGNAL(toggled(bool )), this, TQT_SLOT(slotSettingsChanged())); - connect(d->m_view->lineNickname, TQT_SIGNAL(textChanged(const TQString& )), this, TQT_SLOT(slotSettingsChanged())); - connect(d->m_view->comboNameContact, TQT_SIGNAL(activated(int )), this, TQT_SLOT(slotSettingsChanged())); - connect(d->m_view->comboPhotoContact, TQT_SIGNAL(activated(int )), this, TQT_SLOT(slotEnableAndDisableWidgets())); + connect(d->m_view->radioNicknameContact, TQ_SIGNAL(toggled(bool )), this, TQ_SLOT(slotEnableAndDisableWidgets())); + connect(d->m_view->radioNicknameCustom, TQ_SIGNAL(toggled(bool )), this, TQ_SLOT(slotEnableAndDisableWidgets())); + connect(d->m_view->radioNicknameKABC, TQ_SIGNAL(toggled(bool )), this, TQ_SLOT(slotEnableAndDisableWidgets())); + + connect(d->m_view->radioPhotoContact, TQ_SIGNAL(toggled(bool )), this, TQ_SLOT(slotEnableAndDisableWidgets())); + connect(d->m_view->radioPhotoCustom, TQ_SIGNAL(toggled(bool )), this, TQ_SLOT(slotEnableAndDisableWidgets())); + connect(d->m_view->radioPhotoKABC, TQ_SIGNAL(toggled(bool )), this, TQ_SLOT(slotEnableAndDisableWidgets())); + + connect(d->m_view->checkSyncPhotoKABC, TQ_SIGNAL(toggled(bool )), this, TQ_SLOT(slotSettingsChanged())); + connect(d->m_view->lineNickname, TQ_SIGNAL(textChanged(const TQString& )), this, TQ_SLOT(slotSettingsChanged())); + connect(d->m_view->comboNameContact, TQ_SIGNAL(activated(int )), this, TQ_SLOT(slotSettingsChanged())); + connect(d->m_view->comboPhotoContact, TQ_SIGNAL(activated(int )), this, TQ_SLOT(slotEnableAndDisableWidgets())); } KopeteIdentityConfig::~KopeteIdentityConfig() diff --git a/kopete/kopete/config/plugins/kopetepluginconfig.cpp b/kopete/kopete/config/plugins/kopetepluginconfig.cpp index d54bc68a..a7ae332d 100644 --- a/kopete/kopete/config/plugins/kopetepluginconfig.cpp +++ b/kopete/kopete/config/plugins/kopetepluginconfig.cpp @@ -55,9 +55,9 @@ KopetePluginConfig::KopetePluginConfig( TQWidget *parent, const char *name ) ( new TQVBoxLayout( plainPage(), 0, 0 ) )->setAutoAdd( true ); d->pluginSelector = new KPluginSelector( plainPage() ); setMainWidget( d->pluginSelector ); - connect( d->pluginSelector, TQT_SIGNAL( changed( bool ) ), this, TQT_SLOT( setChanged( bool ) ) ); - connect( d->pluginSelector, TQT_SIGNAL( configCommitted( const TQCString & ) ), - KSettings::Dispatcher::self(), TQT_SLOT( reparseConfiguration( const TQCString & ) ) ); + connect( d->pluginSelector, TQ_SIGNAL( changed( bool ) ), this, TQ_SLOT( setChanged( bool ) ) ); + connect( d->pluginSelector, TQ_SIGNAL( configCommitted( const TQCString & ) ), + KSettings::Dispatcher::self(), TQ_SLOT( reparseConfiguration( const TQCString & ) ) ); d->pluginSelector->addPlugins( Kopete::PluginManager::self()->availablePlugins( "Plugins" ), i18n( "General Plugins" ), "Plugins" ); } diff --git a/kopete/kopete/contactlist/customnotificationprops.cpp b/kopete/kopete/contactlist/customnotificationprops.cpp index 82851eb4..b322c726 100644 --- a/kopete/kopete/contactlist/customnotificationprops.cpp +++ b/kopete/kopete/contactlist/customnotificationprops.cpp @@ -58,7 +58,7 @@ CustomNotificationProps::CustomNotificationProps( TQWidget *parent, Kopete::Noti m_eventList = contactSpecificEvents; slotEventsComboChanged( m_notifyWidget->cmbEvents->currentItem() ); // we have to do this after adding items - connect( m_notifyWidget->cmbEvents, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotEventsComboChanged( int ) ) ); + connect( m_notifyWidget->cmbEvents, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( slotEventsComboChanged( int ) ) ); } void CustomNotificationProps::slotEventsComboChanged( int itemNo ) diff --git a/kopete/kopete/contactlist/kopetecontactlistview.cpp b/kopete/kopete/contactlist/kopetecontactlistview.cpp index adf8ea32..7b060d3d 100644 --- a/kopete/kopete/contactlist/kopetecontactlistview.cpp +++ b/kopete/kopete/contactlist/kopetecontactlistview.cpp @@ -411,38 +411,38 @@ KopeteContactListView::KopeteContactListView( TQWidget *parent, const char *name setFullWidth( true ); - connect( this, TQT_SIGNAL( contextMenu( TDEListView *, TQListViewItem *, const TQPoint & ) ), - TQT_SLOT( slotContextMenu( TDEListView *, TQListViewItem *, const TQPoint & ) ) ); - connect( this, TQT_SIGNAL( expanded( TQListViewItem * ) ), - TQT_SLOT( slotExpanded( TQListViewItem * ) ) ); - connect( this, TQT_SIGNAL( collapsed( TQListViewItem * ) ), - TQT_SLOT( slotCollapsed( TQListViewItem * ) ) ); - connect( this, TQT_SIGNAL( executed( TQListViewItem *, const TQPoint &, int ) ), - TQT_SLOT( slotExecuted( TQListViewItem *, const TQPoint &, int ) ) ); - connect( this, TQT_SIGNAL( selectionChanged() ), TQT_SLOT( slotViewSelectionChanged() ) ); - connect( this, TQT_SIGNAL( itemRenamed( TQListViewItem * ) ), - TQT_SLOT( slotItemRenamed( TQListViewItem * ) ) ); - - connect( KopetePrefs::prefs(), TQT_SIGNAL( saved() ), TQT_SLOT( slotSettingsChanged() ) ); - - connect( Kopete::ContactList::self(), TQT_SIGNAL( selectionChanged() ), - TQT_SLOT( slotListSelectionChanged() ) ); + connect( this, TQ_SIGNAL( contextMenu( TDEListView *, TQListViewItem *, const TQPoint & ) ), + TQ_SLOT( slotContextMenu( TDEListView *, TQListViewItem *, const TQPoint & ) ) ); + connect( this, TQ_SIGNAL( expanded( TQListViewItem * ) ), + TQ_SLOT( slotExpanded( TQListViewItem * ) ) ); + connect( this, TQ_SIGNAL( collapsed( TQListViewItem * ) ), + TQ_SLOT( slotCollapsed( TQListViewItem * ) ) ); + connect( this, TQ_SIGNAL( executed( TQListViewItem *, const TQPoint &, int ) ), + TQ_SLOT( slotExecuted( TQListViewItem *, const TQPoint &, int ) ) ); + connect( this, TQ_SIGNAL( selectionChanged() ), TQ_SLOT( slotViewSelectionChanged() ) ); + connect( this, TQ_SIGNAL( itemRenamed( TQListViewItem * ) ), + TQ_SLOT( slotItemRenamed( TQListViewItem * ) ) ); + + connect( KopetePrefs::prefs(), TQ_SIGNAL( saved() ), TQ_SLOT( slotSettingsChanged() ) ); + + connect( Kopete::ContactList::self(), TQ_SIGNAL( selectionChanged() ), + TQ_SLOT( slotListSelectionChanged() ) ); connect( Kopete::ContactList::self(), - TQT_SIGNAL( metaContactAdded( Kopete::MetaContact * ) ), - TQT_SLOT( slotMetaContactAdded( Kopete::MetaContact * ) ) ); + TQ_SIGNAL( metaContactAdded( Kopete::MetaContact * ) ), + TQ_SLOT( slotMetaContactAdded( Kopete::MetaContact * ) ) ); connect( Kopete::ContactList::self(), - TQT_SIGNAL( metaContactRemoved( Kopete::MetaContact * ) ), - TQT_SLOT( slotMetaContactDeleted( Kopete::MetaContact * ) ) ); - connect( Kopete::ContactList::self(), TQT_SIGNAL( groupAdded( Kopete::Group * ) ), - TQT_SLOT( slotGroupAdded( Kopete::Group * ) ) ); + TQ_SIGNAL( metaContactRemoved( Kopete::MetaContact * ) ), + TQ_SLOT( slotMetaContactDeleted( Kopete::MetaContact * ) ) ); + connect( Kopete::ContactList::self(), TQ_SIGNAL( groupAdded( Kopete::Group * ) ), + TQ_SLOT( slotGroupAdded( Kopete::Group * ) ) ); - connect( Kopete::ChatSessionManager::self(), TQT_SIGNAL( newEvent( Kopete::MessageEvent * ) ), - this, TQT_SLOT( slotNewMessageEvent( Kopete::MessageEvent * ) ) ); + connect( Kopete::ChatSessionManager::self(), TQ_SIGNAL( newEvent( Kopete::MessageEvent * ) ), + this, TQ_SLOT( slotNewMessageEvent( Kopete::MessageEvent * ) ) ); - connect( this, TQT_SIGNAL( dropped( TQDropEvent *, TQListViewItem *, TQListViewItem * ) ), - this, TQT_SLOT( slotDropped( TQDropEvent *, TQListViewItem *, TQListViewItem * ) ) ); + connect( this, TQ_SIGNAL( dropped( TQDropEvent *, TQListViewItem *, TQListViewItem * ) ), + this, TQ_SLOT( slotDropped( TQDropEvent *, TQListViewItem *, TQListViewItem * ) ) ); - connect( &undoTimer, TQT_SIGNAL(timeout()) , this, TQT_SLOT (slotTimeout() ) ); + connect( &undoTimer, TQ_SIGNAL(timeout()) , this, TQ_SLOT (slotTimeout() ) ); addColumn( i18n( "Contacts" ), 0 ); //add an unique colums to add every contact header()->hide(); // and hide the ugly header which show the single word "Contacts" @@ -461,33 +461,33 @@ KopeteContactListView::KopeteContactListView( TQWidget *parent, const char *name void KopeteContactListView::initActions( TDEActionCollection *ac ) { - actionUndo = KStdAction::undo( this , TQT_SLOT( slotUndo() ) , ac ); - actionRedo = KStdAction::redo( this , TQT_SLOT( slotRedo() ) , ac ); + actionUndo = KStdAction::undo( this , TQ_SLOT( slotUndo() ) , ac ); + actionRedo = KStdAction::redo( this , TQ_SLOT( slotRedo() ) , ac ); actionUndo->setEnabled(false); actionRedo->setEnabled(false); - new TDEAction( i18n( "Create New Group..." ), 0, 0, this, TQT_SLOT( addGroup() ), + new TDEAction( i18n( "Create New Group..." ), 0, 0, this, TQ_SLOT( addGroup() ), ac, "AddGroup" ); actionSendMessage = KopeteStdAction::sendMessage( - this, TQT_SLOT( slotSendMessage() ), ac, "contactSendMessage" ); - actionStartChat = KopeteStdAction::chat( this, TQT_SLOT( slotStartChat() ), + this, TQ_SLOT( slotSendMessage() ), ac, "contactSendMessage" ); + actionStartChat = KopeteStdAction::chat( this, TQ_SLOT( slotStartChat() ), ac, "contactStartChat" ); actionMove = new KopeteGroupListAction( i18n( "&Move To" ), TQString::fromLatin1( "edit-cut" ), - 0, this, TQT_SLOT( slotMoveToGroup() ), ac, "contactMove" ); + 0, this, TQ_SLOT( slotMoveToGroup() ), ac, "contactMove" ); actionCopy = new KopeteGroupListAction( i18n( "&Copy To" ), TQString::fromLatin1( "edit-copy" ), 0, - this, TQT_SLOT( slotCopyToGroup() ), ac, "contactCopy" ); + this, TQ_SLOT( slotCopyToGroup() ), ac, "contactCopy" ); - actionRemove = KopeteStdAction::deleteContact( this, TQT_SLOT( slotRemove() ), + actionRemove = KopeteStdAction::deleteContact( this, TQ_SLOT( slotRemove() ), ac, "contactRemove" ); actionSendEmail = new TDEAction( i18n( "Send Email..." ), TQString::fromLatin1( "mail_generic" ), - 0, this, TQT_SLOT( slotSendEmail() ), ac, "contactSendEmail" ); + 0, this, TQ_SLOT( slotSendEmail() ), ac, "contactSendEmail" ); /* this actionRename is buggy, and useless with properties, removed in kopeteui.rc*/ actionRename = new TDEAction( i18n( "Rename" ), "document-save-as", 0, - this, TQT_SLOT( slotRename() ), ac, "contactRename" ); - actionSendFile = KopeteStdAction::sendFile( this, TQT_SLOT( slotSendFile() ), + this, TQ_SLOT( slotRename() ), ac, "contactRename" ); + actionSendFile = KopeteStdAction::sendFile( this, TQ_SLOT( slotSendFile() ), ac, "contactSendFile" ); actionAddContact = new TDEActionMenu( i18n( "&Add Contact" ), @@ -495,15 +495,15 @@ void KopeteContactListView::initActions( TDEActionCollection *ac ) actionAddContact->popupMenu()->insertTitle( i18n("Select Account") ); actionAddTemporaryContact = new TDEAction( i18n( "Add to Your Contact List" ), "add_user", 0, - this, TQT_SLOT( slotAddTemporaryContact() ), ac, "contactAddTemporaryContact" ); + this, TQ_SLOT( slotAddTemporaryContact() ), ac, "contactAddTemporaryContact" ); - connect( Kopete::ContactList::self(), TQT_SIGNAL( metaContactSelected( bool ) ), this, TQT_SLOT( slotMetaContactSelected( bool ) ) ); + connect( Kopete::ContactList::self(), TQ_SIGNAL( metaContactSelected( bool ) ), this, TQ_SLOT( slotMetaContactSelected( bool ) ) ); - connect( Kopete::AccountManager::self(), TQT_SIGNAL(accountRegistered( Kopete::Account* )), TQT_SLOT(slotAddSubContactActionNewAccount(Kopete::Account*))); - connect( Kopete::AccountManager::self(), TQT_SIGNAL(accountUnregistered( const Kopete::Account* )), TQT_SLOT(slotAddSubContactActionAccountDeleted(const Kopete::Account *))); + connect( Kopete::AccountManager::self(), TQ_SIGNAL(accountRegistered( Kopete::Account* )), TQ_SLOT(slotAddSubContactActionNewAccount(Kopete::Account*))); + connect( Kopete::AccountManager::self(), TQ_SIGNAL(accountUnregistered( const Kopete::Account* )), TQ_SLOT(slotAddSubContactActionAccountDeleted(const Kopete::Account *))); actionProperties = new TDEAction( i18n( "&Properties" ), "edit_user", TQt::Key_Alt + TQt::Key_Return, - this, TQT_SLOT( slotProperties() ), ac, "contactProperties" ); + this, TQ_SLOT( slotProperties() ), ac, "contactProperties" ); // Update enabled/disabled actions slotViewSelectionChanged(); @@ -516,7 +516,7 @@ KopeteContactListView::~KopeteContactListView() void KopeteContactListView::slotAddSubContactActionNewAccount(Kopete::Account* account) { - TDEAction *action = new TDEAction( account->accountLabel(), account->accountIcon(), 0 , this, TQT_SLOT(slotAddContact()), account); + TDEAction *action = new TDEAction( account->accountLabel(), account->accountIcon(), 0 , this, TQ_SLOT(slotAddContact()), account); m_accountAddContactMap.insert( account, action); actionAddContact->insert( action ); } @@ -536,14 +536,14 @@ void KopeteContactListView::slotMetaContactAdded( Kopete::MetaContact *mc ) { d->viewStrategy->addMetaContact( mc ); - connect( mc, TQT_SIGNAL( addedToGroup( Kopete::MetaContact *, Kopete::Group * ) ), - TQT_SLOT( slotAddedToGroup( Kopete::MetaContact *, Kopete::Group * ) ) ); - connect( mc, TQT_SIGNAL( removedFromGroup( Kopete::MetaContact *, Kopete::Group * ) ), - TQT_SLOT( slotRemovedFromGroup( Kopete::MetaContact *, Kopete::Group * ) ) ); - connect( mc, TQT_SIGNAL( movedToGroup( Kopete::MetaContact *, Kopete::Group *, Kopete::Group * ) ), - TQT_SLOT( slotMovedToGroup( Kopete::MetaContact *, Kopete::Group *, Kopete::Group * ) ) ); - connect( mc, TQT_SIGNAL( onlineStatusChanged( Kopete::MetaContact *, Kopete::OnlineStatus::StatusType ) ), - TQT_SLOT( slotContactStatusChanged( Kopete::MetaContact * ) ) ); + connect( mc, TQ_SIGNAL( addedToGroup( Kopete::MetaContact *, Kopete::Group * ) ), + TQ_SLOT( slotAddedToGroup( Kopete::MetaContact *, Kopete::Group * ) ) ); + connect( mc, TQ_SIGNAL( removedFromGroup( Kopete::MetaContact *, Kopete::Group * ) ), + TQ_SLOT( slotRemovedFromGroup( Kopete::MetaContact *, Kopete::Group * ) ) ); + connect( mc, TQ_SIGNAL( movedToGroup( Kopete::MetaContact *, Kopete::Group *, Kopete::Group * ) ), + TQ_SLOT( slotMovedToGroup( Kopete::MetaContact *, Kopete::Group *, Kopete::Group * ) ) ); + connect( mc, TQ_SIGNAL( onlineStatusChanged( Kopete::MetaContact *, Kopete::OnlineStatus::StatusType ) ), + TQ_SLOT( slotContactStatusChanged( Kopete::MetaContact * ) ) ); } void KopeteContactListView::slotMetaContactDeleted( Kopete::MetaContact *mc ) @@ -678,7 +678,7 @@ void KopeteContactListView::slotContextMenu( TDEListView * /*listview*/, if ( c ) { TDEPopupMenu *p = c->popupMenu(); - connect( p, TQT_SIGNAL( aboutToHide() ), p, TQT_SLOT( deleteLater() ) ); + connect( p, TQ_SIGNAL( aboutToHide() ), p, TQ_SLOT( deleteLater() ) ); p->popup( point ); } else @@ -710,7 +710,7 @@ void KopeteContactListView::slotContextMenu( TDEListView * /*listview*/, } TDEPopupMenu *contactMenu = it.current()->popupMenu(); - connect( popup, TQT_SIGNAL( aboutToHide() ), contactMenu, TQT_SLOT( deleteLater() ) ); + connect( popup, TQ_SIGNAL( aboutToHide() ), contactMenu, TQ_SLOT( deleteLater() ) ); TQString nick=c->property(Kopete::Global::Properties::self()->nickName()).value().toString(); TQString text= nick.isEmpty() ? c->contactId() : i18n( "Translators: format: '<displayName> (<id>)'", "%2 <%1>" ). arg( c->contactId(), nick ); text=text.replace("&","&&"); // cf BUG 115449 diff --git a/kopete/kopete/contactlist/kopetegrouplistaction.cpp b/kopete/kopete/contactlist/kopetegrouplistaction.cpp index 5936af4f..6bf4805f 100644 --- a/kopete/kopete/contactlist/kopetegrouplistaction.cpp +++ b/kopete/kopete/contactlist/kopetegrouplistaction.cpp @@ -33,11 +33,11 @@ KopeteGroupListAction::KopeteGroupListAction( const TQString &text, const TQStri const char *slot, TQObject *parent, const char *name ) : TDEListAction( text, pix, cut, parent, name ) { - connect( this, TQT_SIGNAL( activated() ), receiver, slot ); + connect( this, TQ_SIGNAL( activated() ), receiver, slot ); - connect( Kopete::ContactList::self(), TQT_SIGNAL( groupAdded( Kopete::Group * ) ), this, TQT_SLOT( slotUpdateList() ) ); - connect( Kopete::ContactList::self(), TQT_SIGNAL( groupRemoved( Kopete::Group * ) ), this, TQT_SLOT( slotUpdateList() ) ); - connect( Kopete::ContactList::self(), TQT_SIGNAL( groupRenamed(Kopete::Group*, const TQString& ) ), this, TQT_SLOT( slotUpdateList() ) ); + connect( Kopete::ContactList::self(), TQ_SIGNAL( groupAdded( Kopete::Group * ) ), this, TQ_SLOT( slotUpdateList() ) ); + connect( Kopete::ContactList::self(), TQ_SIGNAL( groupRemoved( Kopete::Group * ) ), this, TQ_SLOT( slotUpdateList() ) ); + connect( Kopete::ContactList::self(), TQ_SIGNAL( groupRenamed(Kopete::Group*, const TQString& ) ), this, TQ_SLOT( slotUpdateList() ) ); slotUpdateList(); } diff --git a/kopete/kopete/contactlist/kopetegroupviewitem.cpp b/kopete/kopete/contactlist/kopetegroupviewitem.cpp index 0e50c24f..55f4165f 100644 --- a/kopete/kopete/contactlist/kopetegroupviewitem.cpp +++ b/kopete/kopete/contactlist/kopetegroupviewitem.cpp @@ -105,14 +105,14 @@ void KopeteGroupViewItem::initLVI() d->name->setToolTipSource( d->toolTipSource.get() ); d->count->setToolTipSource( d->toolTipSource.get() ); - connect( m_group, TQT_SIGNAL( displayNameChanged( Kopete::Group*, const TQString& ) ), - this, TQT_SLOT( refreshDisplayName() ) ); + connect( m_group, TQ_SIGNAL( displayNameChanged( Kopete::Group*, const TQString& ) ), + this, TQ_SLOT( refreshDisplayName() ) ); - connect( KopetePrefs::prefs(), TQT_SIGNAL( contactListAppearanceChanged() ), - TQT_SLOT( slotConfigChanged() ) ); - connect( kapp, TQT_SIGNAL( appearanceChanged() ), TQT_SLOT( slotConfigChanged() ) ); + connect( KopetePrefs::prefs(), TQ_SIGNAL( contactListAppearanceChanged() ), + TQ_SLOT( slotConfigChanged() ) ); + connect( kapp, TQ_SIGNAL( appearanceChanged() ), TQ_SLOT( slotConfigChanged() ) ); - connect( m_group, TQT_SIGNAL( iconAppearanceChanged() ), TQT_SLOT( updateIcon() ) ); + connect( m_group, TQ_SIGNAL( iconAppearanceChanged() ), TQ_SLOT( updateIcon() ) ); refreshDisplayName(); slotConfigChanged(); diff --git a/kopete/kopete/contactlist/kopetelviprops.cpp b/kopete/kopete/contactlist/kopetelviprops.cpp index 64fb1233..e1472bd4 100644 --- a/kopete/kopete/contactlist/kopetelviprops.cpp +++ b/kopete/kopete/contactlist/kopetelviprops.cpp @@ -92,13 +92,13 @@ KopeteGVIProps::KopeteGVIProps(KopeteGroupViewItem *gvi, TQWidget *parent, const mainWidget->icnbOpen->setIcon( openName ); mainWidget->icnbClosed->setIcon( closeName ); - connect( this, TQT_SIGNAL(okClicked()), this, TQT_SLOT( slotOkClicked() ) ); - connect( mainWidget->chkUseCustomIcons, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( slotUseCustomIconsToggled( bool ) ) ); - connect( mainWidget->icnbOpen, TQT_SIGNAL( iconChanged( TQString ) ), - TQT_SLOT( slotIconChanged() ) ); - connect( mainWidget->icnbClosed, TQT_SIGNAL( iconChanged( TQString ) ), - TQT_SLOT( slotIconChanged() ) ); + connect( this, TQ_SIGNAL(okClicked()), this, TQ_SLOT( slotOkClicked() ) ); + connect( mainWidget->chkUseCustomIcons, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( slotUseCustomIconsToggled( bool ) ) ); + connect( mainWidget->icnbOpen, TQ_SIGNAL( iconChanged( TQString ) ), + TQ_SLOT( slotIconChanged() ) ); + connect( mainWidget->icnbClosed, TQ_SIGNAL( iconChanged( TQString ) ), + TQ_SLOT( slotIconChanged() ) ); slotUseCustomIconsToggled( mainWidget->chkUseCustomIcons->isChecked() ); } @@ -170,19 +170,19 @@ KopeteMetaLVIProps::KopeteMetaLVIProps(KopeteMetaContactLVI *lvi, TQWidget *pare setMainWidget( mainWidget ); item = lvi; - connect( mainWidget->radioNameKABC, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEnableAndDisableWidgets())); - connect( mainWidget->radioNameContact, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEnableAndDisableWidgets())); - connect( mainWidget->radioNameCustom, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEnableAndDisableWidgets())); - connect( mainWidget->radioPhotoKABC, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEnableAndDisableWidgets())); - connect( mainWidget->radioPhotoContact, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEnableAndDisableWidgets())); - connect( mainWidget->radioPhotoCustom, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEnableAndDisableWidgets())); - connect( mainWidget->cmbPhotoUrl, TQT_SIGNAL(urlSelected(const TQString &)), TQT_SLOT(slotEnableAndDisableWidgets())); - connect( mainWidget->cmbAccountPhoto, TQT_SIGNAL(activated ( int )), TQT_SLOT(slotEnableAndDisableWidgets())); + connect( mainWidget->radioNameKABC, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotEnableAndDisableWidgets())); + connect( mainWidget->radioNameContact, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotEnableAndDisableWidgets())); + connect( mainWidget->radioNameCustom, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotEnableAndDisableWidgets())); + connect( mainWidget->radioPhotoKABC, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotEnableAndDisableWidgets())); + connect( mainWidget->radioPhotoContact, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotEnableAndDisableWidgets())); + connect( mainWidget->radioPhotoCustom, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotEnableAndDisableWidgets())); + connect( mainWidget->cmbPhotoUrl, TQ_SIGNAL(urlSelected(const TQString &)), TQ_SLOT(slotEnableAndDisableWidgets())); + connect( mainWidget->cmbAccountPhoto, TQ_SIGNAL(activated ( int )), TQ_SLOT(slotEnableAndDisableWidgets())); mainWidget->btnClearPhoto->setIconSet( SmallIconSet( TQApplication::reverseLayout() ? "locationbar_erase" : "clear_left" ) ); - connect( mainWidget->btnClearPhoto, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotClearPhotoClicked() ) ); - connect( mainWidget->widAddresseeLink, TQT_SIGNAL( addresseeChanged( const TDEABC::Addressee & ) ), TQT_SLOT( slotAddresseeChanged( const TDEABC::Addressee & ) ) ); + connect( mainWidget->btnClearPhoto, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotClearPhotoClicked() ) ); + connect( mainWidget->widAddresseeLink, TQ_SIGNAL( addresseeChanged( const TDEABC::Addressee & ) ), TQ_SLOT( slotAddresseeChanged( const TDEABC::Addressee & ) ) ); mainWidget->chkUseCustomIcons->setChecked( item->metaContact()->useCustomIcon() ); TQString offlineName = item->metaContact()->icon( Kopete::ContactListElement::Offline ); @@ -232,17 +232,17 @@ KopeteMetaLVIProps::KopeteMetaLVIProps(KopeteMetaContactLVI *lvi, TQWidget *pare slotLoadNameSources(); slotLoadPhotoSources(); - connect( this, TQT_SIGNAL(okClicked()), this, TQT_SLOT( slotOkClicked() ) ); - connect( mainWidget->chkUseCustomIcons, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( slotUseCustomIconsToggled( bool ) ) ); - connect( mainWidget->btnImportKABC, TQT_SIGNAL( clicked() ), - this, TQT_SLOT( slotImportClicked() ) ); - connect( mainWidget->btnExportKABC, TQT_SIGNAL( clicked() ), - this, TQT_SLOT( slotExportClicked() ) ); - connect( mFromKABC, TQT_SIGNAL( clicked() ), - this, TQT_SLOT( slotFromKABCClicked() ) ); - connect( mNotificationProps->widget()->customSound, TQT_SIGNAL( openFileDialog( KURLRequester * )), - TQT_SLOT( slotOpenSoundDialog( KURLRequester * ))); + connect( this, TQ_SIGNAL(okClicked()), this, TQ_SLOT( slotOkClicked() ) ); + connect( mainWidget->chkUseCustomIcons, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( slotUseCustomIconsToggled( bool ) ) ); + connect( mainWidget->btnImportKABC, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( slotImportClicked() ) ); + connect( mainWidget->btnExportKABC, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( slotExportClicked() ) ); + connect( mFromKABC, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( slotFromKABCClicked() ) ); + connect( mNotificationProps->widget()->customSound, TQ_SIGNAL( openFileDialog( KURLRequester * )), + TQ_SLOT( slotOpenSoundDialog( KURLRequester * ))); slotUseCustomIconsToggled( mainWidget->chkUseCustomIcons->isChecked() ); slotEnableAndDisableWidgets(); @@ -523,8 +523,8 @@ void KopeteMetaLVIProps::slotOpenSoundDialog( KURLRequester *requester ) { // taken from tdelibs/tdeio/tdefile/knotifydialog.cpp // only need to init this once - requester->disconnect( TQT_SIGNAL( openFileDialog( KURLRequester * )), - this, TQT_SLOT( slotOpenSoundDialog( KURLRequester * ))); + requester->disconnect( TQ_SIGNAL( openFileDialog( KURLRequester * )), + this, TQ_SLOT( slotOpenSoundDialog( KURLRequester * ))); KFileDialog *fileDialog = requester->fileDialog(); //fileDialog->setCaption( i18n("Select Sound File") ); diff --git a/kopete/kopete/contactlist/kopetemetacontactlvi.cpp b/kopete/kopete/contactlist/kopetemetacontactlvi.cpp index 21cad8d2..a4f162d2 100644 --- a/kopete/kopete/contactlist/kopetemetacontactlvi.cpp +++ b/kopete/kopete/contactlist/kopetemetacontactlvi.cpp @@ -214,43 +214,43 @@ void KopeteMetaContactLVI::initLVI() m_oldStatus = m_metaContact->status(); - connect( m_metaContact, TQT_SIGNAL( displayNameChanged( const TQString &, const TQString & ) ), - TQT_SLOT( slotDisplayNameChanged() ) ); + connect( m_metaContact, TQ_SIGNAL( displayNameChanged( const TQString &, const TQString & ) ), + TQ_SLOT( slotDisplayNameChanged() ) ); - connect( m_metaContact, TQT_SIGNAL( photoChanged() ), - TQT_SLOT( slotPhotoChanged() ) ); + connect( m_metaContact, TQ_SIGNAL( photoChanged() ), + TQ_SLOT( slotPhotoChanged() ) ); - connect( m_metaContact, TQT_SIGNAL( onlineStatusChanged( Kopete::MetaContact *, Kopete::OnlineStatus::StatusType ) ), - TQT_SLOT( slotPhotoChanged() ) ); + connect( m_metaContact, TQ_SIGNAL( onlineStatusChanged( Kopete::MetaContact *, Kopete::OnlineStatus::StatusType ) ), + TQ_SLOT( slotPhotoChanged() ) ); - connect( m_metaContact, TQT_SIGNAL( onlineStatusChanged( Kopete::MetaContact *, Kopete::OnlineStatus::StatusType ) ), - this, TQT_SLOT(slotIdleStateChanged( ) ) ); + connect( m_metaContact, TQ_SIGNAL( onlineStatusChanged( Kopete::MetaContact *, Kopete::OnlineStatus::StatusType ) ), + this, TQ_SLOT(slotIdleStateChanged( ) ) ); - connect( m_metaContact, TQT_SIGNAL( contactStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus & ) ), - TQT_SLOT( slotContactStatusChanged( Kopete::Contact * ) ) ); + connect( m_metaContact, TQ_SIGNAL( contactStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus & ) ), + TQ_SLOT( slotContactStatusChanged( Kopete::Contact * ) ) ); - connect( m_metaContact, TQT_SIGNAL( contactAdded( Kopete::Contact * ) ), - TQT_SLOT( slotContactAdded( Kopete::Contact * ) ) ); + connect( m_metaContact, TQ_SIGNAL( contactAdded( Kopete::Contact * ) ), + TQ_SLOT( slotContactAdded( Kopete::Contact * ) ) ); - connect( m_metaContact, TQT_SIGNAL( contactRemoved( Kopete::Contact * ) ), - TQT_SLOT( slotContactRemoved( Kopete::Contact * ) ) ); + connect( m_metaContact, TQ_SIGNAL( contactRemoved( Kopete::Contact * ) ), + TQ_SLOT( slotContactRemoved( Kopete::Contact * ) ) ); - connect( m_metaContact, TQT_SIGNAL( iconAppearanceChanged() ), - TQT_SLOT( slotUpdateMetaContact() ) ); + connect( m_metaContact, TQ_SIGNAL( iconAppearanceChanged() ), + TQ_SLOT( slotUpdateMetaContact() ) ); - connect( m_metaContact, TQT_SIGNAL( useCustomIconChanged( bool ) ), - TQT_SLOT( slotUpdateMetaContact() ) ); + connect( m_metaContact, TQ_SIGNAL( useCustomIconChanged( bool ) ), + TQ_SLOT( slotUpdateMetaContact() ) ); - connect( m_metaContact, TQT_SIGNAL( contactIdleStateChanged( Kopete::Contact * ) ), - TQT_SLOT( slotIdleStateChanged( Kopete::Contact * ) ) ); + connect( m_metaContact, TQ_SIGNAL( contactIdleStateChanged( Kopete::Contact * ) ), + TQ_SLOT( slotIdleStateChanged( Kopete::Contact * ) ) ); - connect( KopetePrefs::prefs(), TQT_SIGNAL( contactListAppearanceChanged() ), - TQT_SLOT( slotConfigChanged() ) ); + connect( KopetePrefs::prefs(), TQ_SIGNAL( contactListAppearanceChanged() ), + TQ_SLOT( slotConfigChanged() ) ); - connect( kapp, TQT_SIGNAL( appearanceChanged() ), TQT_SLOT( slotConfigChanged() ) ); + connect( kapp, TQ_SIGNAL( appearanceChanged() ), TQ_SLOT( slotConfigChanged() ) ); mBlinkTimer = new TQTimer( this, "mBlinkTimer" ); - connect( mBlinkTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( slotBlink() ) ); + connect( mBlinkTimer, TQ_SIGNAL( timeout() ), TQ_SLOT( slotBlink() ) ); mIsBlinkIcon = false; //if ( !mBlinkIcon ) @@ -439,11 +439,11 @@ void KopeteMetaContactLVI::slotContactStatusChanged( Kopete::Contact *c ) break; case signedIn: connect(KNotification::event(m_metaContact, "kopete_contact_online", text, m_metaContact->photo(), KopeteSystemTray::systemTray(), i18n( "Chat" )) , - TQT_SIGNAL(activated(unsigned int )) , this, TQT_SLOT( execute() ) ); + TQ_SIGNAL(activated(unsigned int )) , this, TQ_SLOT( execute() ) ); break; case changedStatus: connect(KNotification::event(m_metaContact, "kopete_contact_status_change", text, m_metaContact->photo(), KopeteSystemTray::systemTray(), i18n( "Chat" )) , - TQT_SIGNAL(activated(unsigned int )) , this, TQT_SLOT( execute() )); + TQ_SIGNAL(activated(unsigned int )) , this, TQ_SLOT( execute() )); break; case signedOut: KNotification::event(m_metaContact, "kopete_contact_offline", text, m_metaContact->photo(), KopeteSystemTray::systemTray()); @@ -736,8 +736,8 @@ void KopeteMetaContactLVI::setDisplayMode( int mode, int iconmode ) new VSpacerComponent( imageBox ); if(!metaContact()->photoSource() && !Kopete::KABCPersistence::self()->addressBook()->findByUid( metaContact()->metaContactId() ).isEmpty() ) { //if the photo is the one of the kaddressbook, track every change in the adressbook, it might be the photo of our contact. - connect( Kopete::KABCPersistence::self()->addressBook() , TQT_SIGNAL(addressBookChanged (AddressBook *) ) , - this , TQT_SLOT(slotPhotoChanged())); + connect( Kopete::KABCPersistence::self()->addressBook() , TQ_SIGNAL(addressBookChanged (AddressBook *) ) , + this , TQ_SLOT(slotPhotoChanged())); } } else { d->metaContactIcon = new FaceComponent( hbox ); @@ -847,11 +847,11 @@ void KopeteMetaContactLVI::slotContactPropertyChanged( Kopete::Contact *contact, void KopeteMetaContactLVI::slotContactAdded( Kopete::Contact *c ) { - connect( c, TQT_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &, + connect( c, TQ_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ), - this, TQT_SLOT( slotContactPropertyChanged( Kopete::Contact *, const TQString &, + this, TQ_SLOT( slotContactPropertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ) ); - connect( c->account() , TQT_SIGNAL( colorChanged(const TQColor& ) ) , this, TQT_SLOT( updateContactIcons() ) ); + connect( c->account() , TQ_SIGNAL( colorChanged(const TQColor& ) ) , this, TQ_SLOT( updateContactIcons() ) ); updateContactIcon( c ); @@ -861,11 +861,11 @@ void KopeteMetaContactLVI::slotContactAdded( Kopete::Contact *c ) void KopeteMetaContactLVI::slotContactRemoved( Kopete::Contact *c ) { - disconnect( c, TQT_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &, + disconnect( c, TQ_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ), - this, TQT_SLOT( slotContactPropertyChanged( Kopete::Contact *, + this, TQ_SLOT( slotContactPropertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ) ); - disconnect( c->account() , TQT_SIGNAL( colorChanged(const TQColor& ) ) , this, TQT_SLOT( updateContactIcons() ) ); + disconnect( c->account() , TQ_SIGNAL( colorChanged(const TQColor& ) ) , this, TQ_SLOT( updateContactIcons() ) ); if ( ListView::Component *comp = contactComponent( c ) ) delete comp; @@ -1019,8 +1019,8 @@ void KopeteMetaContactLVI::catchEvent( Kopete::MessageEvent *event ) { d->events.append( event ); - connect( event, TQT_SIGNAL( done( Kopete::MessageEvent* ) ), - this, TQT_SLOT( slotEventDone( Kopete::MessageEvent * ) ) ); + connect( event, TQ_SIGNAL( done( Kopete::MessageEvent* ) ), + this, TQ_SLOT( slotEventDone( Kopete::MessageEvent * ) ) ); if ( mBlinkTimer->isActive() ) mBlinkTimer->stop(); diff --git a/kopete/kopete/contactlist/tdeabcexport.cpp b/kopete/kopete/contactlist/tdeabcexport.cpp index 12589fa9..6e67be96 100644 --- a/kopete/kopete/contactlist/tdeabcexport.cpp +++ b/kopete/kopete/contactlist/tdeabcexport.cpp @@ -58,10 +58,10 @@ class ContactLVI : public TQCheckListItem KabcExportWizard::KabcExportWizard( TQWidget *parent, const char *name ) : KabcExportWizard_Base( parent, name ) { - connect( m_addrBooks, TQT_SIGNAL( selectionChanged( TQListBoxItem * ) ), TQT_SLOT( slotResourceSelectionChanged( TQListBoxItem * ) ) ); + connect( m_addrBooks, TQ_SIGNAL( selectionChanged( TQListBoxItem * ) ), TQ_SLOT( slotResourceSelectionChanged( TQListBoxItem * ) ) ); - connect( m_btnSelectAll, TQT_SIGNAL( clicked() ), TQT_SLOT( slotSelectAll() ) ); - connect( m_btnDeselectAll, TQT_SIGNAL( clicked() ), TQT_SLOT( slotDeselectAll() ) ); + connect( m_btnSelectAll, TQ_SIGNAL( clicked() ), TQ_SLOT( slotSelectAll() ) ); + connect( m_btnDeselectAll, TQ_SIGNAL( clicked() ), TQ_SLOT( slotDeselectAll() ) ); // fill resource selector m_addressBook = Kopete::KABCPersistence::self()->addressBook(); diff --git a/kopete/kopete/kimifaceimpl.cpp b/kopete/kopete/kimifaceimpl.cpp index faa721e0..be4c0311 100644 --- a/kopete/kopete/kimifaceimpl.cpp +++ b/kopete/kopete/kimifaceimpl.cpp @@ -43,8 +43,8 @@ KIMIfaceImpl::KIMIfaceImpl() : DCOPObject( "KIMIface" ), TQObject() { connect( Kopete::ContactList::self(), - TQT_SIGNAL( metaContactAdded( Kopete::MetaContact * ) ), - TQT_SLOT( slotMetaContactAdded( Kopete::MetaContact * ) ) ); + TQ_SIGNAL( metaContactAdded( Kopete::MetaContact * ) ), + TQ_SLOT( slotMetaContactAdded( Kopete::MetaContact * ) ) ); } KIMIfaceImpl::~KIMIfaceImpl() @@ -332,8 +332,8 @@ bool KIMIfaceImpl::addContact( const TQString &contactId, const TQString &protoc void KIMIfaceImpl::slotMetaContactAdded( Kopete::MetaContact *mc ) { - connect( mc, TQT_SIGNAL( onlineStatusChanged( Kopete::MetaContact *, Kopete::OnlineStatus::StatusType ) ), - TQT_SLOT( slotContactStatusChanged( Kopete::MetaContact * ) ) ); + connect( mc, TQ_SIGNAL( onlineStatusChanged( Kopete::MetaContact *, Kopete::OnlineStatus::StatusType ) ), + TQ_SLOT( slotContactStatusChanged( Kopete::MetaContact * ) ) ); } void KIMIfaceImpl::slotContactStatusChanged( Kopete::MetaContact *mc ) diff --git a/kopete/kopete/kopeteapplication.cpp b/kopete/kopete/kopeteapplication.cpp index b5cdc868..263ed973 100644 --- a/kopete/kopete/kopeteapplication.cpp +++ b/kopete/kopete/kopeteapplication.cpp @@ -83,7 +83,7 @@ KopeteApplication::KopeteApplication() * Additionally, it makes the GUI appear less 'blocking' during startup, so * there is a secondary benefit as well here. (Martijn) */ - TQTimer::singleShot( 0, this, TQT_SLOT( slotLoadPlugins() ) ); + TQTimer::singleShot( 0, this, TQ_SLOT( slotLoadPlugins() ) ); m_mimeFactory = new Kopete::MimeSourceFactory; TQMimeSourceFactory::addFactory( m_mimeFactory ); @@ -177,15 +177,15 @@ void KopeteApplication::slotLoadPlugins() showConfigDialog = false; // pretend all plugins were loaded :) - TQTimer::singleShot(0, this, TQT_SLOT( slotAllPluginsLoaded() )); + TQTimer::singleShot(0, this, TQ_SLOT( slotAllPluginsLoaded() )); } else { Kopete::PluginManager::self()->loadAllPlugins(); } - connect( Kopete::PluginManager::self(), TQT_SIGNAL( allPluginsLoaded() ), - this, TQT_SLOT( slotAllPluginsLoaded() )); + connect( Kopete::PluginManager::self(), TQ_SIGNAL( allPluginsLoaded() ), + this, TQ_SLOT( slotAllPluginsLoaded() )); if( showConfigDialog ) { diff --git a/kopete/kopete/kopeteballoon.cpp b/kopete/kopete/kopeteballoon.cpp index 37701db9..e921cfe4 100644 --- a/kopete/kopete/kopeteballoon.cpp +++ b/kopete/kopete/kopeteballoon.cpp @@ -109,23 +109,23 @@ KopeteBalloon::KopeteBalloon(const TQString &text, const TQString &pix) setPalette(TQToolTip::palette()); setAutoMask(TRUE); - connect(mViewButton, TQT_SIGNAL(clicked()), - this, TQT_SIGNAL(signalButtonClicked())); - connect(mViewButton, TQT_SIGNAL(clicked()), - this, TQT_SLOT(deleteLater())); - connect(mIgnoreButton, TQT_SIGNAL(clicked()), - this, TQT_SIGNAL(signalIgnoreButtonClicked())); - connect(mIgnoreButton, TQT_SIGNAL(clicked()), - this, TQT_SLOT(deleteLater())); - connect(mCaption, TQT_SIGNAL(linkClicked(const TQString &)), - this, TQT_SIGNAL(signalIgnoreButtonClicked())); - connect(mCaption, TQT_SIGNAL(linkClicked(const TQString &)), - this, TQT_SLOT(deleteLater())); + connect(mViewButton, TQ_SIGNAL(clicked()), + this, TQ_SIGNAL(signalButtonClicked())); + connect(mViewButton, TQ_SIGNAL(clicked()), + this, TQ_SLOT(deleteLater())); + connect(mIgnoreButton, TQ_SIGNAL(clicked()), + this, TQ_SIGNAL(signalIgnoreButtonClicked())); + connect(mIgnoreButton, TQ_SIGNAL(clicked()), + this, TQ_SLOT(deleteLater())); + connect(mCaption, TQ_SIGNAL(linkClicked(const TQString &)), + this, TQ_SIGNAL(signalIgnoreButtonClicked())); + connect(mCaption, TQ_SIGNAL(linkClicked(const TQString &)), + this, TQ_SLOT(deleteLater())); KopetePrefs *p = KopetePrefs::prefs(); // Autoclose balloon if (p->balloonClose()) - TQTimer::singleShot( p->balloonCloseDelay() * 1000, this, TQT_SIGNAL( signalTimeout( ) ) ); + TQTimer::singleShot( p->balloonCloseDelay() * 1000, this, TQ_SIGNAL( signalTimeout( ) ) ); } void KopeteBalloon::setAnchor(const TQPoint &anchor) diff --git a/kopete/kopete/kopeteeditglobalidentitywidget.cpp b/kopete/kopete/kopeteeditglobalidentitywidget.cpp index 8d510694..6c80cd4c 100644 --- a/kopete/kopete/kopeteeditglobalidentitywidget.cpp +++ b/kopete/kopete/kopeteeditglobalidentitywidget.cpp @@ -83,7 +83,7 @@ KopeteEditGlobalIdentityWidget::KopeteEditGlobalIdentityWidget(TQWidget *parent, createGUI(); // Update the GUI when a global identity key change. - connect(Kopete::ContactList::self(), TQT_SIGNAL(globalIdentityChanged(const TQString&, const TQVariant& )), this, TQT_SLOT(updateGUI(const TQString&, const TQVariant&))); + connect(Kopete::ContactList::self(), TQ_SIGNAL(globalIdentityChanged(const TQString&, const TQVariant& )), this, TQ_SLOT(updateGUI(const TQString&, const TQVariant&))); } KopeteEditGlobalIdentityWidget::~KopeteEditGlobalIdentityWidget() @@ -129,15 +129,15 @@ void KopeteEditGlobalIdentityWidget::createGUI() d->labelPicture->setMaximumSize(TQSize(d->iconSize, d->iconSize)); d->labelPicture->setFrameShape(TQFrame::Box); d->mainLayout->addWidget(d->labelPicture); - connect(d->labelPicture, TQT_SIGNAL(clicked()), this, TQT_SLOT(photoClicked())); + connect(d->labelPicture, TQ_SIGNAL(clicked()), this, TQ_SLOT(photoClicked())); // The nickname lineEdit d->lineNickname = new KLineEdit(this); d->mainLayout->addWidget(d->lineNickname); // Update the nickname when the user press return. - connect(d->lineNickname, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(changeNickname())); + connect(d->lineNickname, TQ_SIGNAL(returnPressed()), this, TQ_SLOT(changeNickname())); // Show the nickname text in red when they are change. - connect(d->lineNickname, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(lineNicknameTextChanged(const TQString& ))); + connect(d->lineNickname, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(lineNicknameTextChanged(const TQString& ))); } void KopeteEditGlobalIdentityWidget::updateGUI(const TQString &key, const TQVariant &value) diff --git a/kopete/kopete/kopetewindow.cpp b/kopete/kopete/kopetewindow.cpp index 80cddf94..7f6f4c5d 100644 --- a/kopete/kopete/kopetewindow.cpp +++ b/kopete/kopete/kopetewindow.cpp @@ -140,8 +140,8 @@ KopeteWindow::KopeteWindow( TQWidget *parent, const char *name ) GlobalStatusMessageIconLabel *label = new GlobalStatusMessageIconLabel( statusBarMessage, "statusmsglabel" ); label->setFixedSize( 16, 16 ); label->setPixmap( SmallIcon( "kopetestatusmessage" ) ); - connect(label, TQT_SIGNAL(iconClicked( const TQPoint& )), - this, TQT_SLOT(slotGlobalStatusMessageIconClicked( const TQPoint& ))); + connect(label, TQ_SIGNAL(iconClicked( const TQPoint& )), + this, TQ_SLOT(slotGlobalStatusMessageIconClicked( const TQPoint& ))); TQToolTip::add( label, i18n( "Global status message" ) ); m_globalStatusMessage = new KSqueezedTextLabel( statusBarMessage ); statusBar()->addWidget(statusBarMessage, 1, false ); @@ -157,22 +157,22 @@ KopeteWindow::KopeteWindow( TQWidget *parent, const char *name ) // -------------------------------------------------------------------------------- // Trap all loaded plugins, so we can add their status bar icons accordingly , also used to add XMLGUIClient - connect( Kopete::PluginManager::self(), TQT_SIGNAL( pluginLoaded( Kopete::Plugin * ) ), - this, TQT_SLOT( slotPluginLoaded( Kopete::Plugin * ) ) ); - connect( Kopete::PluginManager::self(), TQT_SIGNAL( allPluginsLoaded() ), - this, TQT_SLOT( slotAllPluginsLoaded() )); + connect( Kopete::PluginManager::self(), TQ_SIGNAL( pluginLoaded( Kopete::Plugin * ) ), + this, TQ_SLOT( slotPluginLoaded( Kopete::Plugin * ) ) ); + connect( Kopete::PluginManager::self(), TQ_SIGNAL( allPluginsLoaded() ), + this, TQ_SLOT( slotAllPluginsLoaded() )); //Connect the appropriate account signals /* Please note that I tried to put this in the slotAllPluginsLoaded() function * but it seemed to break the account icons in the statusbar --Matt */ - connect( Kopete::AccountManager::self(), TQT_SIGNAL(accountRegistered(Kopete::Account*)), - this, TQT_SLOT(slotAccountRegistered(Kopete::Account*))); - connect( Kopete::AccountManager::self(), TQT_SIGNAL(accountUnregistered(const Kopete::Account*)), - this, TQT_SLOT(slotAccountUnregistered(const Kopete::Account*))); + connect( Kopete::AccountManager::self(), TQ_SIGNAL(accountRegistered(Kopete::Account*)), + this, TQ_SLOT(slotAccountRegistered(Kopete::Account*))); + connect( Kopete::AccountManager::self(), TQ_SIGNAL(accountUnregistered(const Kopete::Account*)), + this, TQ_SLOT(slotAccountUnregistered(const Kopete::Account*))); - connect( m_autoHideTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotAutoHide() ) ); - connect( KopetePrefs::prefs(), TQT_SIGNAL( contactListAppearanceChanged() ), - this, TQT_SLOT( slotContactListAppearanceChanged() ) ); + connect( m_autoHideTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotAutoHide() ) ); + connect( KopetePrefs::prefs(), TQ_SIGNAL( contactListAppearanceChanged() ), + this, TQ_SLOT( slotContactListAppearanceChanged() ) ); createGUI ( "kopeteui.rc", false ); @@ -210,21 +210,21 @@ void KopeteWindow::initActions() actionAddContact->setDelayed( false ); // this signal mapper is needed to call slotAddContact with the correct arguments addContactMapper = new TQSignalMapper( this ); - connect( addContactMapper, TQT_SIGNAL( mapped( const TQString & ) ), - this, TQT_SLOT( slotAddContactDialogInternal( const TQString & ) ) ); + connect( addContactMapper, TQ_SIGNAL( mapped( const TQString & ) ), + this, TQ_SLOT( slotAddContactDialogInternal( const TQString & ) ) ); /* ConnectAll is now obsolete. "Go online" has replaced it. actionConnect = new TDEAction( i18n( "&Connect Accounts" ), "connect_creating", - 0, Kopete::AccountManager::self(), TQT_SLOT( connectAll() ), + 0, Kopete::AccountManager::self(), TQ_SLOT( connectAll() ), actionCollection(), "ConnectAll" ); */ actionDisconnect = new TDEAction( i18n( "O&ffline" ), "connect_no", - 0, this, TQT_SLOT( slotDisconnectAll() ), + 0, this, TQ_SLOT( slotDisconnectAll() ), actionCollection(), "DisconnectAll" ); actionExportContacts = new TDEAction( i18n( "&Export Contacts..." ), "", 0, this, - TQT_SLOT( showExportDialog() ),actionCollection(), "ExportContacts" ); + TQ_SLOT( showExportDialog() ),actionCollection(), "ExportContacts" ); /* the connection menu has been replaced by the set status menu actionConnectionMenu = new TDEActionMenu( i18n("Connection"),"connect_established", @@ -238,28 +238,28 @@ void KopeteWindow::initActions() actionDisconnect->setEnabled(false); selectAway = new TDEAction( i18n("&Away"), SmallIcon("kopeteaway"), 0, - this, TQT_SLOT( slotGlobalAway() ), actionCollection(), + this, TQ_SLOT( slotGlobalAway() ), actionCollection(), "SetAwayAll" ); selectBusy = new TDEAction( i18n("&Busy"), SmallIcon("kopeteaway"), 0, - this, TQT_SLOT( slotGlobalBusy() ), actionCollection(), + this, TQ_SLOT( slotGlobalBusy() ), actionCollection(), "SetBusyAll" ); actionSetInvisible = new TDEAction( i18n( "&Invisible" ), "kopeteavailable", 0 , - this, TQT_SLOT( slotSetInvisibleAll() ), actionCollection(), + this, TQ_SLOT( slotSetInvisibleAll() ), actionCollection(), "SetInvisibleAll" ); /*actionSetAvailable = new TDEAction( i18n( "&Online" ), "kopeteavailable", 0 , Kopete::AccountManager::self(), - TQT_SLOT( setAvailableAll() ), actionCollection(), + TQ_SLOT( setAvailableAll() ), actionCollection(), "SetAvailableAll" );*/ actionSetAvailable = new TDEAction( i18n("&Online"), SmallIcon("kopeteavailable"), 0, this, - TQT_SLOT( slotGlobalAvailable() ), actionCollection(), + TQ_SLOT( slotGlobalAvailable() ), actionCollection(), "SetAvailableAll" ); actionAwayMenu = new TDEActionMenu( i18n("&Set Status"), "kopeteavailable", @@ -273,25 +273,25 @@ void KopeteWindow::initActions() actionPrefs = KopeteStdAction::preferences( actionCollection(), "settings_prefs" ); - KStdAction::quit(this, TQT_SLOT(slotQuit()), actionCollection()); + KStdAction::quit(this, TQ_SLOT(slotQuit()), actionCollection()); setStandardToolBarMenuEnabled(true); - menubarAction = KStdAction::showMenubar(this, TQT_SLOT(showMenubar()), actionCollection(), "settings_showmenubar" ); - statusbarAction = KStdAction::showStatusbar(this, TQT_SLOT(showStatusbar()), actionCollection(), "settings_showstatusbar"); + menubarAction = KStdAction::showMenubar(this, TQ_SLOT(showMenubar()), actionCollection(), "settings_showmenubar" ); + statusbarAction = KStdAction::showStatusbar(this, TQ_SLOT(showStatusbar()), actionCollection(), "settings_showstatusbar"); - KStdAction::keyBindings( guiFactory(), TQT_SLOT( configureShortcuts() ), actionCollection(), "settings_keys" ); + KStdAction::keyBindings( guiFactory(), TQ_SLOT( configureShortcuts() ), actionCollection(), "settings_keys" ); new TDEAction( i18n( "Configure Plugins..." ), "preferences-desktop-peripherals", 0, this, - TQT_SLOT( slotConfigurePlugins() ), actionCollection(), "settings_plugins" ); + TQ_SLOT( slotConfigurePlugins() ), actionCollection(), "settings_plugins" ); new TDEAction( i18n( "Configure &Global Shortcuts..." ), "configure_shortcuts", 0, this, - TQT_SLOT( slotConfGlobalKeys() ), actionCollection(), "settings_global" ); + TQ_SLOT( slotConfGlobalKeys() ), actionCollection(), "settings_global" ); - KStdAction::configureToolbars( this, TQT_SLOT(slotConfToolbar()), actionCollection() ); - KStdAction::configureNotifications(this, TQT_SLOT(slotConfNotifications()), actionCollection(), "settings_notifications" ); + KStdAction::configureToolbars( this, TQ_SLOT(slotConfToolbar()), actionCollection() ); + KStdAction::configureNotifications(this, TQ_SLOT(slotConfNotifications()), actionCollection(), "settings_notifications" ); actionShowOffliners = new TDEToggleAction( i18n( "Show Offline &Users" ), "show_offliners", CTRL + Key_U, - this, TQT_SLOT( slotToggleShowOffliners() ), actionCollection(), "settings_show_offliners" ); + this, TQ_SLOT( slotToggleShowOffliners() ), actionCollection(), "settings_show_offliners" ); actionShowEmptyGroups = new TDEToggleAction( i18n( "Show Empty &Groups" ), "folder", CTRL + Key_G, - this, TQT_SLOT( slotToggleShowEmptyGroups() ), actionCollection(), "settings_show_empty_groups" ); + this, TQ_SLOT( slotToggleShowEmptyGroups() ), actionCollection(), "settings_show_empty_groups" ); actionShowOffliners->setCheckedState(i18n("Hide Offline &Users")); actionShowEmptyGroups->setCheckedState(i18n("Hide Empty &Groups")); @@ -306,7 +306,7 @@ void KopeteWindow::initActions() // quick search bar - clear button TDEAction *resetQuickSearch = new TDEAction( i18n( "Reset Quick Search" ), TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase", - 0, searchBar, TQT_SLOT( clear() ), actionCollection(), "quicksearch_reset" ); + 0, searchBar, TQ_SLOT( clear() ), actionCollection(), "quicksearch_reset" ); resetQuickSearch->setWhatsThis( i18n( "Reset Quick Search\n" "Resets the quick search so that all contacts and groups are shown again." ) ); @@ -319,22 +319,22 @@ void KopeteWindow::initActions() // TDEActionMenu for selecting the global status message(kopeteonlinestatus_0) TDEActionMenu * setStatusMenu = new TDEActionMenu( i18n( "Set Status Message" ), "kopeteeditstatusmessage", actionCollection(), "SetStatusMessage" ); setStatusMenu->setDelayed( false ); - connect( setStatusMenu->popupMenu(), TQT_SIGNAL( aboutToShow() ), TQT_SLOT(slotBuildStatusMessageMenu() ) ); - connect( setStatusMenu->popupMenu(), TQT_SIGNAL( activated( int ) ), TQT_SLOT(slotStatusMessageSelected( int ) ) ); + connect( setStatusMenu->popupMenu(), TQ_SIGNAL( aboutToShow() ), TQ_SLOT(slotBuildStatusMessageMenu() ) ); + connect( setStatusMenu->popupMenu(), TQ_SIGNAL( activated( int ) ), TQ_SLOT(slotStatusMessageSelected( int ) ) ); // sync actions, config and prefs-dialog - connect ( KopetePrefs::prefs(), TQT_SIGNAL(saved()), this, TQT_SLOT(slotConfigChanged()) ); + connect ( KopetePrefs::prefs(), TQ_SIGNAL(saved()), this, TQ_SLOT(slotConfigChanged()) ); slotConfigChanged(); globalAccel = new TDEGlobalAccel( this ); globalAccel->insert( TQString::fromLatin1("Read Message"), i18n("Read Message"), i18n("Read the next pending message"), - CTRL+SHIFT+Key_I, KKey::QtWIN+CTRL+Key_I, Kopete::ChatSessionManager::self(), TQT_SLOT(slotReadMessage()) ); + CTRL+SHIFT+Key_I, KKey::QtWIN+CTRL+Key_I, Kopete::ChatSessionManager::self(), TQ_SLOT(slotReadMessage()) ); globalAccel->insert( TQString::fromLatin1("Show/Hide Contact List"), i18n("Show/Hide Contact List"), i18n("Show or hide the contact list"), - CTRL+SHIFT+Key_S, KKey::QtWIN+CTRL+Key_S, this, TQT_SLOT(slotShowHide()) ); + CTRL+SHIFT+Key_S, KKey::QtWIN+CTRL+Key_S, this, TQ_SLOT(slotShowHide()) ); globalAccel->insert( TQString::fromLatin1("Set Away/Back"), i18n("Set Away/Back"), i18n("Sets away from keyboard or sets back"), - CTRL+SHIFT+Key_W, KKey::QtWIN+CTRL+SHIFT+Key_W, this, TQT_SLOT(slotToggleAway()) ); + CTRL+SHIFT+Key_W, KKey::QtWIN+CTRL+SHIFT+Key_W, this, TQ_SLOT(slotToggleAway()) ); globalAccel->readSettings(); globalAccel->updateConnections(); @@ -391,9 +391,9 @@ void KopeteWindow::initSystray() //actionConnectionMenu->plug ( tm, 1 ); tm->insertSeparator( 1 ); - TQObject::connect( m_tray, TQT_SIGNAL( aboutToShowMenu( TDEPopupMenu * ) ), - this, TQT_SLOT( slotTrayAboutToShowMenu( TDEPopupMenu * ) ) ); - TQObject::connect( m_tray, TQT_SIGNAL( quitSelected() ), this, TQT_SLOT( slotQuit() ) ); + TQObject::connect( m_tray, TQ_SIGNAL( aboutToShowMenu( TDEPopupMenu * ) ), + this, TQ_SLOT( slotTrayAboutToShowMenu( TDEPopupMenu * ) ) ); + TQObject::connect( m_tray, TQ_SIGNAL( quitSelected() ), this, TQ_SLOT( slotQuit() ) ); } KopeteWindow::~KopeteWindow() @@ -430,7 +430,7 @@ void KopeteWindow::loadOptions() // FIXME: HACK: Is there a way to do that automatic ? editGlobalIdentityWidget->setIconSize(toolBar("editGlobalIdentityBar")->iconSize()); - connect(toolBar("editGlobalIdentityBar"), TQT_SIGNAL(modechange()), editGlobalIdentityWidget, TQT_SLOT(iconSizeChanged())); + connect(toolBar("editGlobalIdentityBar"), TQ_SIGNAL(modechange()), editGlobalIdentityWidget, TQ_SLOT(iconSizeChanged())); applyMainWindowSettings( config, "General Options" ); config->setGroup("General Options"); @@ -518,9 +518,9 @@ void KopeteWindow::slotToggleShowOffliners() KopetePrefs *p = KopetePrefs::prefs(); p->setShowOffline ( actionShowOffliners->isChecked() ); - disconnect ( KopetePrefs::prefs(), TQT_SIGNAL(saved()), this, TQT_SLOT(slotConfigChanged()) ); + disconnect ( KopetePrefs::prefs(), TQ_SIGNAL(saved()), this, TQ_SLOT(slotConfigChanged()) ); p->save(); - connect ( KopetePrefs::prefs(), TQT_SIGNAL(saved()), this, TQT_SLOT(slotConfigChanged()) ); + connect ( KopetePrefs::prefs(), TQ_SIGNAL(saved()), this, TQ_SLOT(slotConfigChanged()) ); } void KopeteWindow::slotToggleShowEmptyGroups() @@ -528,9 +528,9 @@ void KopeteWindow::slotToggleShowEmptyGroups() KopetePrefs *p = KopetePrefs::prefs(); p->setShowEmptyGroups ( actionShowEmptyGroups->isChecked() ); - disconnect ( KopetePrefs::prefs(), TQT_SIGNAL(saved()), this, TQT_SLOT(slotConfigChanged()) ); + disconnect ( KopetePrefs::prefs(), TQ_SIGNAL(saved()), this, TQ_SLOT(slotConfigChanged()) ); p->save(); - connect ( KopetePrefs::prefs(), TQT_SIGNAL(saved()), this, TQT_SLOT(slotConfigChanged()) ); + connect ( KopetePrefs::prefs(), TQ_SIGNAL(saved()), this, TQ_SLOT(slotConfigChanged()) ); } void KopeteWindow::slotConfigChanged() @@ -578,8 +578,8 @@ void KopeteWindow::slotConfToolbar() { saveMainWindowSettings(TDEGlobal::config(), "General Options"); KEditToolbar *dlg = new KEditToolbar(factory()); - connect( dlg, TQT_SIGNAL(newToolbarConfig()), this, TQT_SLOT(slotUpdateToolbar()) ); - connect( dlg, TQT_SIGNAL(finished()) , dlg, TQT_SLOT(deleteLater())); + connect( dlg, TQ_SIGNAL(newToolbarConfig()), this, TQ_SLOT(slotUpdateToolbar()) ); + connect( dlg, TQ_SIGNAL(finished()) , dlg, TQ_SLOT(deleteLater())); dlg->show(); } @@ -704,22 +704,22 @@ void KopeteWindow::slotAccountRegistered( Kopete::Account *account ) actionDisconnect->setEnabled(true); connect( account->myself(), - TQT_SIGNAL(onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus &) ), - this, TQT_SLOT( slotAccountStatusIconChanged( Kopete::Contact * ) ) ); + TQ_SIGNAL(onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus &) ), + this, TQ_SLOT( slotAccountStatusIconChanged( Kopete::Contact * ) ) ); -// connect( account, TQT_SIGNAL( iconAppearanceChanged() ), TQT_SLOT( slotAccountStatusIconChanged() ) ); - connect( account, TQT_SIGNAL( colorChanged(const TQColor& ) ), TQT_SLOT( slotAccountStatusIconChanged() ) ); +// connect( account, TQ_SIGNAL( iconAppearanceChanged() ), TQ_SLOT( slotAccountStatusIconChanged() ) ); + connect( account, TQ_SIGNAL( colorChanged(const TQColor& ) ), TQ_SLOT( slotAccountStatusIconChanged() ) ); connect( account->myself(), - TQT_SIGNAL(propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ), - this, TQT_SLOT( slotAccountStatusIconChanged( Kopete::Contact* ) ) ); + TQ_SIGNAL(propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ), + this, TQ_SLOT( slotAccountStatusIconChanged( Kopete::Contact* ) ) ); KopeteAccountStatusBarIcon *sbIcon = new KopeteAccountStatusBarIcon( account, m_statusBarWidget ); - connect( sbIcon, TQT_SIGNAL( rightClicked( Kopete::Account *, const TQPoint & ) ), - TQT_SLOT( slotAccountStatusIconRightClicked( Kopete::Account *, + connect( sbIcon, TQ_SIGNAL( rightClicked( Kopete::Account *, const TQPoint & ) ), + TQ_SLOT( slotAccountStatusIconRightClicked( Kopete::Account *, const TQPoint & ) ) ); - connect( sbIcon, TQT_SIGNAL( leftClicked( Kopete::Account *, const TQPoint & ) ), - TQT_SLOT( slotAccountStatusIconRightClicked( Kopete::Account *, + connect( sbIcon, TQ_SIGNAL( leftClicked( Kopete::Account *, const TQPoint & ) ), + TQ_SLOT( slotAccountStatusIconRightClicked( Kopete::Account *, const TQPoint & ) ) ); m_accountStatusBarIcons.insert( account, sbIcon ); @@ -728,7 +728,7 @@ void KopeteWindow::slotAccountRegistered( Kopete::Account *account ) // add an item for this account to the add contact actionmenu TQString s = "actionAdd%1Contact"; s.arg( account->accountId() ); - TDEAction *action = new TDEAction( account->accountLabel(), account->accountIcon(), 0 , addContactMapper, TQT_SLOT( map() ), account, s.latin1() ); + TDEAction *action = new TDEAction( account->accountLabel(), account->accountIcon(), 0 , addContactMapper, TQ_SLOT( map() ), account, s.latin1() ); addContactMapper->setMapping( action, account->protocol()->pluginId() + TQChar(0xE000) + account->accountId() ); actionAddContact->insert( action ); } @@ -882,7 +882,7 @@ void KopeteWindow::slotAccountStatusIconRightClicked( Kopete::Account *account, if ( !actionMenu ) return; - connect( actionMenu->popupMenu(), TQT_SIGNAL( aboutToHide() ), actionMenu, TQT_SLOT( deleteLater() ) ); + connect( actionMenu->popupMenu(), TQ_SIGNAL( aboutToHide() ), actionMenu, TQ_SLOT( deleteLater() ) ); actionMenu->popupMenu()->popup( p ); } @@ -895,7 +895,7 @@ void KopeteWindow::slotTrayAboutToShowMenu( TDEPopupMenu * popup ) if( menu ) menu->plug(popup, 1 ); - connect(popup , TQT_SIGNAL(aboutToHide()) , menu , TQT_SLOT(deleteLater())); + connect(popup , TQ_SIGNAL(aboutToHide()) , menu , TQ_SLOT(deleteLater())); } } @@ -909,7 +909,7 @@ void KopeteWindow::slotTrayAboutToShowMenu( TDEPopupMenu * popup ) { TDEActionMenu *menu = proto->protocolActions(); - connect( menu->popupMenu(), TQT_SIGNAL( aboutToHide() ), menu, TQT_SLOT( deleteLater() ) ); + connect( menu->popupMenu(), TQ_SIGNAL( aboutToHide() ), menu, TQ_SLOT( deleteLater() ) ); menu->popupMenu()->popup( p ); } }*/ @@ -990,7 +990,7 @@ void KopeteWindow::slotBuildStatusMessageMenu() newMessageLabel->setFocusPolicy( TQWidget::ClickFocus );*/ newMessagePix->setFocusProxy( m_newMessageEdit ); newMessagePix->setFocusPolicy( TQWidget::ClickFocus ); - connect( m_newMessageEdit, TQT_SIGNAL( returnPressed() ), TQT_SLOT( slotNewStatusMessageEntered() ) ); + connect( m_newMessageEdit, TQ_SIGNAL( returnPressed() ), TQ_SLOT( slotNewStatusMessageEntered() ) ); m_globalStatusMessageMenu->insertItem( newMessageBox ); @@ -1004,8 +1004,8 @@ void KopeteWindow::slotBuildStatusMessageMenu() { m_globalStatusMessageMenu->insertItem( KStringHandler::rsqueeze( *it ), i ); } -// connect( m_globalStatusMessageMenu, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotStatusMessageSelected( int ) ) ); -// connect( messageMenu, TQT_SIGNAL( aboutToHide() ), messageMenu, TQT_SLOT( deleteLater() ) ); +// connect( m_globalStatusMessageMenu, TQ_SIGNAL( activated( int ) ), TQ_SLOT( slotStatusMessageSelected( int ) ) ); +// connect( messageMenu, TQ_SIGNAL( aboutToHide() ), messageMenu, TQ_SLOT( deleteLater() ) ); m_newMessageEdit->setFocus(); @@ -1033,10 +1033,10 @@ void KopeteWindow::slotNewStatusMessageEntered() void KopeteWindow::slotGlobalStatusMessageIconClicked( const TQPoint &position ) { TDEPopupMenu *statusMessageIconMenu = new TDEPopupMenu(this, "statusMessageIconMenu"); - connect(statusMessageIconMenu, TQT_SIGNAL( aboutToShow() ), - this, TQT_SLOT(slotBuildStatusMessageMenu())); - connect( statusMessageIconMenu, TQT_SIGNAL( activated( int ) ), - TQT_SLOT( slotStatusMessageSelected( int ) ) ); + connect(statusMessageIconMenu, TQ_SIGNAL( aboutToShow() ), + this, TQ_SLOT(slotBuildStatusMessageMenu())); + connect( statusMessageIconMenu, TQ_SIGNAL( activated( int ) ), + TQ_SLOT( slotStatusMessageSelected( int ) ) ); statusMessageIconMenu->popup(position); } diff --git a/kopete/kopete/systemtray.cpp b/kopete/kopete/systemtray.cpp index 8a18b0dd..9d0fe5e8 100644 --- a/kopete/kopete/systemtray.cpp +++ b/kopete/kopete/systemtray.cpp @@ -61,15 +61,15 @@ KopeteSystemTray::KopeteSystemTray(TQWidget* parent, const char* name) mKopeteIcon = loadIcon("kopete"); - connect(mBlinkTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotBlink())); - connect(Kopete::ChatSessionManager::self() , TQT_SIGNAL(newEvent(Kopete::MessageEvent*)), - this, TQT_SLOT(slotNewEvent(Kopete::MessageEvent*))); - connect(KopetePrefs::prefs(), TQT_SIGNAL(saved()), this, TQT_SLOT(slotConfigChanged())); + connect(mBlinkTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotBlink())); + connect(Kopete::ChatSessionManager::self() , TQ_SIGNAL(newEvent(Kopete::MessageEvent*)), + this, TQ_SLOT(slotNewEvent(Kopete::MessageEvent*))); + connect(KopetePrefs::prefs(), TQ_SIGNAL(saved()), this, TQ_SLOT(slotConfigChanged())); connect(Kopete::AccountManager::self(), - TQT_SIGNAL(accountOnlineStatusChanged(Kopete::Account *, + TQ_SIGNAL(accountOnlineStatusChanged(Kopete::Account *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus &)), - this, TQT_SLOT(slotReevaluateAccountStates())); + this, TQ_SLOT(slotReevaluateAccountStates())); // the slot called by default by the quit action, KSystemTray::maybeQuit(), // just closes the parent window, which is hard to distinguish in that window's closeEvent() @@ -81,7 +81,7 @@ KopeteSystemTray::KopeteSystemTray(TQWidget* parent, const char* name) TDEAction *quit = actionCollection()->action( "file_quit" ); quit->disconnect(); KopeteWindow *myParent = static_cast<KopeteWindow *>( parent ); - connect( quit, TQT_SIGNAL( activated() ), myParent, TQT_SLOT( slotQuit() ) ); + connect( quit, TQ_SIGNAL( activated() ), myParent, TQ_SLOT( slotQuit() ) ); //setPixmap(mKopeteIcon); slotReevaluateAccountStates(); @@ -205,8 +205,8 @@ void KopeteSystemTray::slotNewEvent( Kopete::MessageEvent *event ) mBalloonEventList.append( event ); } - connect(event, TQT_SIGNAL(done(Kopete::MessageEvent*)), - this, TQT_SLOT(slotEventDone(Kopete::MessageEvent*))); + connect(event, TQ_SIGNAL(done(Kopete::MessageEvent*)), + this, TQ_SLOT(slotEventDone(Kopete::MessageEvent*))); if( event->message().manager() != 0 ) { @@ -262,7 +262,7 @@ void KopeteSystemTray::removeBalloonEvent(Kopete::MessageEvent *event) { //delay the addBalloon to let the time to event be deleted //in case a contact has been deleted cf Bug 100196 - TQTimer::singleShot(0, this, TQT_SLOT(addBalloon())); + TQTimer::singleShot(0, this, TQ_SLOT(addBalloon())); } else { @@ -303,10 +303,10 @@ void KopeteSystemTray::addBalloon() m_balloon = new KopeteBalloon( i18n( "<qt><nobr><b>New Message from %1:</b></nobr><br><nobr>\"%2\"</nobr></qt>" ) .arg( TQStyleSheet::escape( msgFrom ), msgText ), TQString() ); - connect(m_balloon, TQT_SIGNAL(signalBalloonClicked()), mBalloonEventList.first() , TQT_SLOT(apply())); - connect(m_balloon, TQT_SIGNAL(signalButtonClicked()), mBalloonEventList.first() , TQT_SLOT(apply())); - connect(m_balloon, TQT_SIGNAL(signalIgnoreButtonClicked()), mBalloonEventList.first() , TQT_SLOT(ignore())); - connect(m_balloon, TQT_SIGNAL(signalTimeout()), this , TQT_SLOT(slotRemoveBalloon())); + connect(m_balloon, TQ_SIGNAL(signalBalloonClicked()), mBalloonEventList.first() , TQ_SLOT(apply())); + connect(m_balloon, TQ_SIGNAL(signalButtonClicked()), mBalloonEventList.first() , TQ_SLOT(apply())); + connect(m_balloon, TQ_SIGNAL(signalIgnoreButtonClicked()), mBalloonEventList.first() , TQ_SLOT(ignore())); + connect(m_balloon, TQ_SIGNAL(signalTimeout()), this , TQ_SLOT(slotRemoveBalloon())); m_balloon->setAnchor(mapToGlobal(pos())); m_balloon->show(); KWin::setOnAllDesktops(m_balloon->winId(), true); |