diff options
Diffstat (limited to 'kopete/kopete/contactlist/kabcexport.cpp')
-rw-r--r-- | kopete/kopete/contactlist/kabcexport.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/kopete/kopete/contactlist/kabcexport.cpp b/kopete/kopete/contactlist/kabcexport.cpp index 73f67344..0051f585 100644 --- a/kopete/kopete/contactlist/kabcexport.cpp +++ b/kopete/kopete/contactlist/kabcexport.cpp @@ -19,11 +19,11 @@ ************************************************************************* */ -#include <qpushbutton.h> -#include <qlistbox.h> -#include <qlistview.h> -#include <qptrlist.h> -#include <qmap.h> +#include <tqpushbutton.h> +#include <tqlistbox.h> +#include <tqlistview.h> +#include <tqptrlist.h> +#include <tqmap.h> #include <klocale.h> #include <kmessagebox.h> @@ -48,27 +48,27 @@ class ContactLVI : public QCheckListItem { public: - ContactLVI ( Kopete::MetaContact * mc, QListView * parent, const QString & text, Type tt = RadioButtonController ) : QCheckListItem( parent, text, tt ), mc( mc ) + ContactLVI ( Kopete::MetaContact * mc, TQListView * parent, const TQString & text, Type tt = RadioButtonController ) : TQCheckListItem( parent, text, tt ), mc( mc ) { } Kopete::MetaContact * mc; - QString uid; + TQString uid; }; // ctor populates the resource list and contact list, and enables the next button on the first page -KabcExportWizard::KabcExportWizard( QWidget *parent, const char *name ) +KabcExportWizard::KabcExportWizard( TQWidget *parent, const char *name ) : KabcExportWizard_Base( parent, name ) { - connect( m_addrBooks, SIGNAL( selectionChanged( QListBoxItem * ) ), SLOT( slotResourceSelectionChanged( QListBoxItem * ) ) ); + connect( m_addrBooks, TQT_SIGNAL( selectionChanged( TQListBoxItem * ) ), TQT_SLOT( slotResourceSelectionChanged( TQListBoxItem * ) ) ); - connect( m_btnSelectAll, SIGNAL( clicked() ), SLOT( slotSelectAll() ) ); - connect( m_btnDeselectAll, SIGNAL( clicked() ), SLOT( slotDeselectAll() ) ); + connect( m_btnSelectAll, TQT_SIGNAL( clicked() ), TQT_SLOT( slotSelectAll() ) ); + connect( m_btnDeselectAll, TQT_SIGNAL( clicked() ), TQT_SLOT( slotDeselectAll() ) ); // fill resource selector m_addressBook = Kopete::KABCPersistence::self()->addressBook(); - QPtrList<KABC::Resource> kabcResources = m_addressBook->resources(); + TQPtrList<KABC::Resource> kabcResources = m_addressBook->resources(); - QPtrListIterator<KABC::Resource> resIt( kabcResources ); + TQPtrListIterator<KABC::Resource> resIt( kabcResources ); KABC::Resource *resource; uint counter = 0; @@ -82,8 +82,8 @@ KabcExportWizard::KabcExportWizard( QWidget *parent, const char *name ) counter++; } } - setNextEnabled( QWizard::page( 0 ), false ); - setFinishEnabled( QWizard::page( 1 ), true ); + setNextEnabled( TQWizard::page( 0 ), false ); + setFinishEnabled( TQWizard::page( 1 ), true ); // if there were no writable address books, tell the user if ( counter == 0 ) { @@ -96,15 +96,15 @@ KabcExportWizard::KabcExportWizard( QWidget *parent, const char *name ) m_addrBooks->setSelected( 0, true ); // fill contact list - QPtrList<Kopete::MetaContact> contacts = Kopete::ContactList::self()->metaContacts(); - QPtrListIterator<Kopete::MetaContact> it( contacts ); + TQPtrList<Kopete::MetaContact> contacts = Kopete::ContactList::self()->metaContacts(); + TQPtrListIterator<Kopete::MetaContact> it( contacts ); counter = 0; - QString alreadyIn = i18n( " (already in address book)" ); + TQString alreadyIn = i18n( " (already in address book)" ); for (; it.current(); ++it) { m_contactMap.insert( counter, it.current() ); - QCheckListItem * lvi = new ContactLVI( it.current(), m_contactList, - it.current()->displayName(), QCheckListItem::CheckBox ); + TQCheckListItem * lvi = new ContactLVI( it.current(), m_contactList, + it.current()->displayName(), TQCheckListItem::CheckBox ); lvi->setOn( false ); if ( it.current()->metaContactId().contains(':') ) { @@ -123,7 +123,7 @@ KabcExportWizard::~KabcExportWizard() void KabcExportWizard::slotDeselectAll() { - QListViewItemIterator it( m_contactList ); + TQListViewItemIterator it( m_contactList ); while ( it.current() ) { ContactLVI *item = static_cast<ContactLVI *>( it.current() ); @@ -134,7 +134,7 @@ void KabcExportWizard::slotDeselectAll() void KabcExportWizard::slotSelectAll() { - QListViewItemIterator it( m_contactList ); + TQListViewItemIterator it( m_contactList ); while ( it.current() ) { ContactLVI *item = static_cast<ContactLVI *>( it.current() ); @@ -145,9 +145,9 @@ void KabcExportWizard::slotSelectAll() } } -void KabcExportWizard::slotResourceSelectionChanged( QListBoxItem * lbi ) +void KabcExportWizard::slotResourceSelectionChanged( TQListBoxItem * lbi ) { - setNextEnabled( QWizard::page( 0 ), lbi->isSelected() ); + setNextEnabled( TQWizard::page( 0 ), lbi->isSelected() ); } // accept runs the export algorithm @@ -159,7 +159,7 @@ void KabcExportWizard::accept() m_resourceMap[ ( m_addrBooks->index( m_addrBooks->selectedItem() ) ) ]; // for each item checked { - QListViewItemIterator it( m_contactList ); + TQListViewItemIterator it( m_contactList ); while ( it.current() ) { ContactLVI *item = static_cast<ContactLVI *>( it.current() ); @@ -175,7 +175,7 @@ void KabcExportWizard::accept() addr.setResource( selectedResource ); // set name - QPtrList<Kopete::Contact> contacts = item->mc->contacts(); + TQPtrList<Kopete::Contact> contacts = item->mc->contacts(); if ( contacts.count() == 1 ) { Kopete::ContactProperty prop; @@ -207,14 +207,14 @@ void KabcExportWizard::accept() } // request a write in case we only changed details on existing linked addressee Kopete::KABCPersistence::self()->writeAddressBook( selectedResource ); - QDialog::accept(); + TQDialog::accept(); } void KabcExportWizard::exportDetails( Kopete::MetaContact * mc, KABC::Addressee & addr ) { // for each contact - QPtrList<Kopete::Contact> contacts = mc->contacts(); - QPtrListIterator<Kopete::Contact> cit( contacts ); + TQPtrList<Kopete::Contact> contacts = mc->contacts(); + TQPtrListIterator<Kopete::Contact> cit( contacts ); for( ; cit.current(); ++cit ) { Kopete::ContactProperty prop; @@ -241,7 +241,7 @@ void KabcExportWizard::exportDetails( Kopete::MetaContact * mc, KABC::Addressee } // metacontact photo - QImage photo = mc->photo(); + TQImage photo = mc->photo(); if ( !photo.isNull() ) addr.setPhoto( KABC::Picture( photo ) ); } |