From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kopete/protocols/gadu/gadueditcontact.cpp | 34 +++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'kopete/protocols/gadu/gadueditcontact.cpp') diff --git a/kopete/protocols/gadu/gadueditcontact.cpp b/kopete/protocols/gadu/gadueditcontact.cpp index 24aa8940..985a9874 100644 --- a/kopete/protocols/gadu/gadueditcontact.cpp +++ b/kopete/protocols/gadu/gadueditcontact.cpp @@ -34,19 +34,19 @@ #include #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include // FIXME: this and gaduadcontactpage should have one base class, with some code duplicated in both. GaduEditContact::GaduEditContact( GaduAccount* account, GaduContact* contact, - QWidget* parent, const char* name ) + TQWidget* parent, const char* name ) : KDialogBase( parent, name, true, i18n( "Edit Contact's Properties" ), KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, true ), account_( account ), contact_( contact ) @@ -64,7 +64,7 @@ GaduEditContact::GaduEditContact( GaduAccount* account, GaduContact* contact, } GaduEditContact::GaduEditContact( GaduAccount* account, GaduContactsList::ContactLine* clin, - QWidget* parent , const char* name ) + TQWidget* parent , const char* name ) : KDialogBase( parent, name, true, i18n( "Edit Contact's Properties" ), KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, true ), account_( account ), contact_( NULL ) @@ -83,8 +83,8 @@ void GaduEditContact::fillGroups() { Kopete::Group *g, *cg; - QPtrList cgl; - QPtrList gl; + TQPtrList cgl; + TQPtrList gl; if ( contact_ ) { cgl = contact_->metaContact()->groups(); @@ -96,7 +96,7 @@ GaduEditContact::fillGroups() if ( g->type() == Kopete::Group::Temporary ) { continue; } - QCheckListItem* item = new QCheckListItem( ui_->groups, g->displayName(), QCheckListItem::CheckBox ); + TQCheckListItem* item = new TQCheckListItem( ui_->groups, g->displayName(), TQCheckListItem::CheckBox ); // FIXME: optimize this O(2) search for( cg = cgl.first(); cg; cg = cgl.next() ) { if ( cg->groupId() == g->groupId() ) { @@ -118,12 +118,12 @@ GaduEditContact::init() // fill values from cl into proper fields on widget show(); - connect( this, SIGNAL( okClicked() ), SLOT( slotApply() ) ); - connect( ui_->groups, SIGNAL( clicked( QListViewItem * ) ), SLOT( listClicked( QListViewItem * ) ) ); + connect( this, TQT_SIGNAL( okClicked() ), TQT_SLOT( slotApply() ) ); + connect( ui_->groups, TQT_SIGNAL( clicked( TQListViewItem * ) ), TQT_SLOT( listClicked( TQListViewItem * ) ) ); } void -GaduEditContact::listClicked( QListViewItem* /*item*/ ) +GaduEditContact::listClicked( TQListViewItem* /*item*/ ) { } @@ -147,7 +147,7 @@ GaduEditContact::fillIn() void GaduEditContact::slotApply() { - QPtrList gl; + TQPtrList gl; Kopete::Group* group; cl_->firstname = ui_->fornameEdit_->text().stripWhiteSpace(); @@ -173,8 +173,8 @@ GaduEditContact::slotApply() contact_->setContactDetails( cl_ ); gl = Kopete::ContactList::self()->groups(); - for ( QListViewItemIterator it( ui_->groups ); it.current(); ++it ) { - QCheckListItem *check = dynamic_cast( it.current() ); + for ( TQListViewItemIterator it( ui_->groups ); it.current(); ++it ) { + TQCheckListItem *check = dynamic_cast( it.current() ); if ( !check ) { continue; -- cgit v1.2.1