diff options
Diffstat (limited to 'kopete/kopete/addcontactwizard/addcontactwizard.cpp')
-rw-r--r-- | kopete/kopete/addcontactwizard/addcontactwizard.cpp | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/kopete/kopete/addcontactwizard/addcontactwizard.cpp b/kopete/kopete/addcontactwizard/addcontactwizard.cpp index 9b1ca28e..7198d53c 100644 --- a/kopete/kopete/addcontactwizard/addcontactwizard.cpp +++ b/kopete/kopete/addcontactwizard/addcontactwizard.cpp @@ -42,9 +42,9 @@ // Finish // true -#include <qcheckbox.h> -#include <qlayout.h> -#include <qvbox.h> +#include <tqcheckbox.h> +#include <tqlayout.h> +#include <tqvbox.h> #include <kapplication.h> #include <kconfig.h> #include <klocale.h> @@ -71,10 +71,10 @@ #include "kopeteaccount.h" #include "kopetegroup.h" -AddContactWizard::AddContactWizard( QWidget *parent, const char *name ) +AddContactWizard::AddContactWizard( TQWidget *parent, const char *name ) : AddContactWizard_Base( parent, name ) { - //QVBox *kabcPageVbox = new QVBox(this->page(1)); + //TQVBox *kabcPageVbox = new TQVBox(this->page(1)); m_addressbookSelectorWidget = new Kopete::UI::AddressBookSelectorWidget(this->page(1)); selectAddresseeLayout->addWidget(m_addressbookSelectorWidget); @@ -82,21 +82,21 @@ AddContactWizard::AddContactWizard( QWidget *parent, const char *name ) Kopete::GroupList groups=Kopete::ContactList::self()->groups(); for( Kopete::Group *it = groups.first(); it; it = groups.next() ) { - QString groupname = it->displayName(); + TQString groupname = it->displayName(); if ( !groupname.isEmpty() ) - m_groupItems.insert(new QCheckListItem( groupList, groupname, QCheckListItem::CheckBox) , it ) ; + m_groupItems.insert(new TQCheckListItem( groupList, groupname, TQCheckListItem::CheckBox) , it ) ; } protocolListView->clear(); m_accountItems.clear(); // Populate the accounts list - QCheckListItem* accountLVI = 0; - QPtrList<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts(); + TQCheckListItem* accountLVI = 0; + TQPtrList<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts(); for(Kopete::Account *i=accounts.first() ; i; i=accounts.next() ) { - accountLVI= new QCheckListItem( protocolListView, i->accountLabel(), QCheckListItem::CheckBox); - accountLVI->setText(1,i->protocol()->displayName() + QString::fromLatin1(" ") ); + accountLVI= new TQCheckListItem( protocolListView, i->accountLabel(), TQCheckListItem::CheckBox); + accountLVI->setText(1,i->protocol()->displayName() + TQString::fromLatin1(" ") ); //FIXME - I'm not sure the column 1 is a right place for the colored icon -Olivier accountLVI->setPixmap( 1, i->accountIcon() ); m_accountItems.insert(accountLVI,i); @@ -115,17 +115,17 @@ AddContactWizard::AddContactWizard( QWidget *parent, const char *name ) setFinishEnabled( finis, true ); // Addressee validation connections - connect( chkAddressee, SIGNAL( toggled( bool ) ), - SLOT( slotCheckAddresseeChoice( bool ) ) ); - connect( m_addressbookSelectorWidget, SIGNAL(addresseeListClicked( QListViewItem * )), SLOT(slotAddresseeListClicked( QListViewItem * )) ); + connect( chkAddressee, TQT_SIGNAL( toggled( bool ) ), + TQT_SLOT( slotCheckAddresseeChoice( bool ) ) ); + connect( m_addressbookSelectorWidget, TQT_SIGNAL(addresseeListClicked( TQListViewItem * )), TQT_SLOT(slotAddresseeListClicked( TQListViewItem * )) ); // Group manipulation connection - connect( addGroupButton, SIGNAL(clicked()) , SLOT(slotAddGroupClicked()) ); + connect( addGroupButton, TQT_SIGNAL(clicked()) , TQT_SLOT(slotAddGroupClicked()) ); // 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 *))); // read sticky settings KConfig *config = kapp->config(); @@ -147,7 +147,7 @@ void AddContactWizard::slotCheckAddresseeChoice( bool on ) setAppropriate( selectAddressee, on ); } -void AddContactWizard::slotAddresseeListClicked( QListViewItem */*addressee*/ ) +void AddContactWizard::slotAddresseeListClicked( TQListViewItem */*addressee*/ ) { // enable next if a valid addressee is selected bool selected = m_addressbookSelectorWidget->addresseeSelected(); @@ -159,22 +159,22 @@ void AddContactWizard::slotAddresseeListClicked( QListViewItem */*addressee*/ ) void AddContactWizard::slotAddGroupClicked() { - QString groupName = KInputDialog::getText( + TQString groupName = KInputDialog::getText( i18n( "New Group" ), i18n( "Please enter the name for the new group:" ) ); if ( !groupName.isNull() ) - ( new QCheckListItem( groupList, groupName, QCheckListItem::CheckBox ) )->setOn( true ); + ( new TQCheckListItem( groupList, groupName, TQCheckListItem::CheckBox ) )->setOn( true ); } -void AddContactWizard::slotProtocolListClicked( QListViewItem *) +void AddContactWizard::slotProtocolListClicked( TQListViewItem *) { // Just makes sure a protocol is selected before allowing the user to continue bool oneIsChecked = false; - for (QListViewItemIterator it(protocolListView); it.current(); ++it) + for (TQListViewItemIterator it(protocolListView); it.current(); ++it) { - QCheckListItem *check = dynamic_cast<QCheckListItem *>(it.current()); + TQCheckListItem *check = dynamic_cast<TQCheckListItem *>(it.current()); if (check && check->isOn()) { oneIsChecked = true; @@ -197,9 +197,9 @@ void AddContactWizard::accept() // set the metacontact's groups bool topLevel = true; - for ( QListViewItemIterator it( groupList ); it.current(); ++it ) + for ( TQListViewItemIterator it( groupList ); it.current(); ++it ) { - QCheckListItem *check = dynamic_cast<QCheckListItem *>( it.current() ); + TQCheckListItem *check = dynamic_cast<TQCheckListItem *>( it.current() ); if ( check && check->isOn() ) { if(m_groupItems.contains(check)) @@ -215,7 +215,7 @@ void AddContactWizard::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 = ok || it.data()->apply( it.key(), metaContact ); @@ -246,7 +246,7 @@ void AddContactWizard::accept() void AddContactWizard::reject() { - QWizard::reject(); + TQWizard::reject(); } void AddContactWizard::next() @@ -257,11 +257,11 @@ void AddContactWizard::next() if (currentPage() == selectService || (currentPage() == intro && !appropriate( selectService ))) { - QStringList usedAccounts; + TQStringList usedAccounts; // We don't keep track of this pointer because it gets deleted when the wizard does (which is what we want) - for (QListViewItemIterator it(protocolListView); it.current(); ++it) + for (TQListViewItemIterator it(protocolListView); it.current(); ++it) { - QCheckListItem *item = dynamic_cast<QCheckListItem *>(it.current()); + TQCheckListItem *item = dynamic_cast<TQCheckListItem *>(it.current()); if (item && item->isOn()) { Kopete::Account *i=m_accountItems[item]; @@ -278,8 +278,8 @@ void AddContactWizard::next() if (!addPage) continue; - connect(addPage, SIGNAL(dataValid( AddContactPage *, bool )), - this, SLOT( slotDataValid( AddContactPage *, bool ))); + connect(addPage, TQT_SIGNAL(dataValid( AddContactPage *, bool )), + this, TQT_SLOT( slotDataValid( AddContactPage *, bool ))); addPage->show(); insertPage( addPage, i18n( "The user has to select the contact to add to the given account name", @@ -289,7 +289,7 @@ void AddContactWizard::next() } //remove pages that were eventualy added previusely, and needs to be removed if the user pressed back. - QMap <Kopete::Account*,AddContactPage*>::Iterator it; + TQMap <Kopete::Account*,AddContactPage*>::Iterator it; for ( it = protocolPages.begin(); it != protocolPages.end(); ++it ) { Kopete::Account *i=it.key(); @@ -299,7 +299,7 @@ void AddContactWizard::next() protocolPages.remove(it); } } - QWizard::next(); + TQWizard::next(); return; } @@ -316,15 +316,15 @@ void AddContactWizard::next() return; } - QWizard::next(); + TQWizard::next(); } -void AddContactWizard::showPage( QWidget *page ) +void AddContactWizard::showPage( TQWidget *page ) { if ( page == intro ) setNextEnabled( page, true); // make sure the first page's Next is always enabled - QWizard::showPage( page ); + TQWizard::showPage( page ); if ( page == finis ) finishButton()->setFocus(); |