diff options
Diffstat (limited to 'kopete/kopete/addcontactwizard/fastaddcontactwizard.cpp')
-rw-r--r-- | kopete/kopete/addcontactwizard/fastaddcontactwizard.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kopete/kopete/addcontactwizard/fastaddcontactwizard.cpp b/kopete/kopete/addcontactwizard/fastaddcontactwizard.cpp index 43c499d6..48e1b159 100644 --- a/kopete/kopete/addcontactwizard/fastaddcontactwizard.cpp +++ b/kopete/kopete/addcontactwizard/fastaddcontactwizard.cpp @@ -17,7 +17,7 @@ * * ************************************************************************* */ -#include <qptrlist.h> +#include <tqptrlist.h> #include <addcontactpage.h> #include <kiconloader.h> @@ -30,18 +30,18 @@ #include "fastaddcontactwizard.h" -FastAddContactWizard::FastAddContactWizard( QWidget *parent, const char *name ) +FastAddContactWizard::FastAddContactWizard( TQWidget *parent, const char *name ) : FastAddContactWizard_Base( parent, name ) { m_accountItems.clear(); // Populate the accounts list - QListViewItem* accountLVI = 0L; - QPtrList<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts(); + TQListViewItem* accountLVI = 0L; + TQPtrList<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts(); for(Kopete::Account *i=accounts.first() ; i; i=accounts.next() ) { - accountLVI= new QListViewItem( protocolListView, i->accountLabel() ); - accountLVI->setText(1,i->protocol()->displayName() + QString::fromLatin1(" ") ); + accountLVI= new TQListViewItem( protocolListView, i->accountLabel() ); + accountLVI->setText(1,i->protocol()->displayName() + TQString::fromLatin1(" ") ); accountLVI->setPixmap( 1, SmallIcon( i->protocol()->pluginIcon() ) ); m_accountItems.insert(accountLVI,i); } @@ -50,9 +50,9 @@ FastAddContactWizard::FastAddContactWizard( QWidget *parent, const char *name ) protocolListView->setCurrentItem( accountLVI ); // Account choice validation connections - connect( protocolListView, SIGNAL(clicked(QListViewItem *)), this, SLOT(slotProtocolListClicked(QListViewItem *))); - connect( protocolListView, SIGNAL(selectionChanged(QListViewItem *)), this, SLOT(slotProtocolListClicked(QListViewItem *))); - connect( protocolListView, SIGNAL(spacePressed(QListViewItem *)), this, SLOT(slotProtocolListClicked(QListViewItem *))); + 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 *))); setNextEnabled( selectService, false ); setFinishEnabled(finis, true); @@ -62,7 +62,7 @@ FastAddContactWizard::~FastAddContactWizard() { } -void FastAddContactWizard::slotProtocolListClicked( QListViewItem *account) +void FastAddContactWizard::slotProtocolListClicked( TQListViewItem *account) { setNextEnabled( selectService, account? account->isSelected() : false ); } @@ -74,25 +74,25 @@ void FastAddContactWizard::next() // the chosen protocol if ( currentPage() == selectService ) { - QMap <Kopete::Account*,AddContactPage*>::Iterator it; + TQMap <Kopete::Account*,AddContactPage*>::Iterator it; for ( it = protocolPages.begin(); it != protocolPages.end(); ++it ) { delete it.data(); } protocolPages.clear(); - QListViewItem* item = protocolListView->selectedItem(); + TQListViewItem* item = protocolListView->selectedItem(); AddContactPage *addPage = m_accountItems[item]->protocol()->createAddContactWidget(this, m_accountItems[item] ); if (addPage) { - QString title = i18n( "The account name is prepended here", + TQString title = i18n( "The account name is prepended here", "%1 contact information" ) .arg( item->text(0) ); addPage->show(); insertPage( addPage, title, indexOf( finis ) ); protocolPages.insert( m_accountItems[item] , addPage ); } - QWizard::next(); + TQWizard::next(); return; } @@ -105,7 +105,7 @@ void FastAddContactWizard::next() return; } - QWizard::next(); + TQWizard::next(); } void FastAddContactWizard::accept() @@ -117,7 +117,7 @@ void FastAddContactWizard::accept() bool ok = protocolPages.isEmpty(); // get each protocol's contact - QMap <Kopete::Account*,AddContactPage*>::Iterator it; + TQMap <Kopete::Account*,AddContactPage*>::Iterator it; for ( it = protocolPages.begin(); it != protocolPages.end(); ++it ) ok |= it.data()->apply( it.key(), metaContact ); |