summaryrefslogtreecommitdiffstats
path: root/kopete/kopete/contactlist/kopetecontactlistview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/kopete/contactlist/kopetecontactlistview.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/kopete/contactlist/kopetecontactlistview.cpp')
-rw-r--r--kopete/kopete/contactlist/kopetecontactlistview.cpp352
1 files changed, 176 insertions, 176 deletions
diff --git a/kopete/kopete/contactlist/kopetecontactlistview.cpp b/kopete/kopete/contactlist/kopetecontactlistview.cpp
index b6b01a2f..4e45f602 100644
--- a/kopete/kopete/contactlist/kopetecontactlistview.cpp
+++ b/kopete/kopete/contactlist/kopetecontactlistview.cpp
@@ -25,13 +25,13 @@
#include "kopetecontactlistview.h"
#include "kopeteuiglobal.h"
-#include <qcursor.h>
-#include <qdragobject.h>
-#include <qheader.h>
-#include <qstylesheet.h>
-#include <qtimer.h>
-#include <qtooltip.h>
-#include <qguardedptr.h>
+#include <tqcursor.h>
+#include <tqdragobject.h>
+#include <tqheader.h>
+#include <tqstylesheet.h>
+#include <tqtimer.h>
+#include <tqtooltip.h>
+#include <tqguardedptr.h>
#include <kaction.h>
#include <kapplication.h>
@@ -97,13 +97,13 @@ public:
void addCurrentItems()
{
// Add the already existing groups now
- QPtrList<Kopete::Group> grps = Kopete::ContactList::self()->groups();
- for ( QPtrListIterator<Kopete::Group> groupIt( grps ); groupIt.current(); ++groupIt )
+ TQPtrList<Kopete::Group> grps = Kopete::ContactList::self()->groups();
+ for ( TQPtrListIterator<Kopete::Group> groupIt( grps ); groupIt.current(); ++groupIt )
addGroup( groupIt.current() );
// Add the already existing meta contacts now
- QPtrList<Kopete::MetaContact> metaContacts = Kopete::ContactList::self()->metaContacts();
- for ( QPtrListIterator<Kopete::MetaContact> it( metaContacts ); it.current(); ++it )
+ TQPtrList<Kopete::MetaContact> metaContacts = Kopete::ContactList::self()->metaContacts();
+ for ( TQPtrListIterator<Kopete::MetaContact> it( metaContacts ); it.current(); ++it )
addMetaContact( it.current() );
}
@@ -119,13 +119,13 @@ public:
virtual void metaContactStatusChanged( Kopete::MetaContact *mc ) = 0;
protected:
- // work around QListView design stupidity.
+ // work around TQListView design stupidity.
// GroupViewItem will be QListView-derived, or QListViewItem-derived.
template<typename GroupViewItem>
void addMetaContactToGroupInner( Kopete::MetaContact *mc, GroupViewItem *gpi )
{
// check if the contact isn't already in the group
- for( QListViewItem *item = gpi->firstChild(); item; item = item->nextSibling() )
+ for( TQListViewItem *item = gpi->firstChild(); item; item = item->nextSibling() )
if ( KopeteMetaContactLVI *mci = dynamic_cast<KopeteMetaContactLVI*>(item) )
if ( mci->metaContact() == mc )
return;
@@ -136,7 +136,7 @@ protected:
void removeMetaContactFromGroupInner( Kopete::MetaContact *mc, GroupViewItem *gpi )
{
KopeteMetaContactLVI* mci;
- QListViewItem* item = gpi->firstChild();
+ TQListViewItem* item = gpi->firstChild();
while(item) {
mci = dynamic_cast<KopeteMetaContactLVI*>(item);
item = item->nextSibling();
@@ -220,7 +220,7 @@ private:
KopeteGroupViewItem *findGroupItem( Kopete::Group *gp )
{
if ( gp->type() == Kopete::Group::TopLevel ) return 0;
- for( QListViewItem *item = listView()->firstChild(); item; item = item->nextSibling() )
+ for( TQListViewItem *item = listView()->firstChild(); item; item = item->nextSibling() )
if ( KopeteGroupViewItem *gvi = dynamic_cast<KopeteGroupViewItem*>(item) )
if ( gvi->group() == gp )
return gvi;
@@ -327,15 +327,15 @@ private:
}
// check if the contact is already in the correct "group"
- QListViewItem *currentGroup = mc->isOnline() ? m_onlineItem : m_offlineItem;
- for( QListViewItem *lvi = currentGroup->firstChild(); lvi; lvi = lvi->nextSibling() )
+ TQListViewItem *currentGroup = mc->isOnline() ? m_onlineItem : m_offlineItem;
+ for( TQListViewItem *lvi = currentGroup->firstChild(); lvi; lvi = lvi->nextSibling() )
if ( KopeteMetaContactLVI *kc = dynamic_cast<KopeteMetaContactLVI*>( lvi ) )
if ( kc->metaContact() == mc )
return;
// item not found in the right group; look for it in the other group
- QListViewItem *oppositeGroup = mc->isOnline() ? m_offlineItem : m_onlineItem;
- for( QListViewItem *lvi = oppositeGroup->firstChild(); lvi; lvi = lvi->nextSibling() )
+ TQListViewItem *oppositeGroup = mc->isOnline() ? m_offlineItem : m_onlineItem;
+ for( TQListViewItem *lvi = oppositeGroup->firstChild(); lvi; lvi = lvi->nextSibling() )
{
if ( KopeteMetaContactLVI *kc = dynamic_cast<KopeteMetaContactLVI*>( lvi ) )
{
@@ -354,7 +354,7 @@ private:
}
KopeteStatusGroupViewItem *m_onlineItem, *m_offlineItem;
- QGuardedPtr<KopeteGroupViewItem> m_temporaryItem;
+ TQGuardedPtr<KopeteGroupViewItem> m_temporaryItem;
};
void KopeteContactListViewPrivate::updateViewStrategy( KListView *view )
@@ -376,9 +376,9 @@ void KopeteContactListViewPrivate::updateViewStrategy( KListView *view )
// returns the next item in a depth-first descent of the list view.
// much like QLVI::itemBelow but does not depend on visibility of items, etc.
-static QListViewItem *nextItem( QListViewItem *item )
+static TQListViewItem *nextItem( TQListViewItem *item )
{
- if ( QListViewItem *it = item->firstChild() )
+ if ( TQListViewItem *it = item->firstChild() )
return it;
while ( item && !item->nextSibling() )
item = item->parent();
@@ -389,7 +389,7 @@ static QListViewItem *nextItem( QListViewItem *item )
-KopeteContactListView::KopeteContactListView( QWidget *parent, const char *name )
+KopeteContactListView::KopeteContactListView( TQWidget *parent, const char *name )
: Kopete::UI::ListView::ListView( parent, name )
{
d = new KopeteContactListViewPrivate;
@@ -411,38 +411,38 @@ KopeteContactListView::KopeteContactListView( QWidget *parent, const char *name
setFullWidth( true );
- connect( this, SIGNAL( contextMenu( KListView *, QListViewItem *, const QPoint & ) ),
- SLOT( slotContextMenu( KListView *, QListViewItem *, const QPoint & ) ) );
- connect( this, SIGNAL( expanded( QListViewItem * ) ),
- SLOT( slotExpanded( QListViewItem * ) ) );
- connect( this, SIGNAL( collapsed( QListViewItem * ) ),
- SLOT( slotCollapsed( QListViewItem * ) ) );
- connect( this, SIGNAL( executed( QListViewItem *, const QPoint &, int ) ),
- SLOT( slotExecuted( QListViewItem *, const QPoint &, int ) ) );
- connect( this, SIGNAL( selectionChanged() ), SLOT( slotViewSelectionChanged() ) );
- connect( this, SIGNAL( itemRenamed( QListViewItem * ) ),
- SLOT( slotItemRenamed( QListViewItem * ) ) );
-
- connect( KopetePrefs::prefs(), SIGNAL( saved() ), SLOT( slotSettingsChanged() ) );
-
- connect( Kopete::ContactList::self(), SIGNAL( selectionChanged() ),
- SLOT( slotListSelectionChanged() ) );
+ connect( this, TQT_SIGNAL( contextMenu( KListView *, TQListViewItem *, const TQPoint & ) ),
+ TQT_SLOT( slotContextMenu( KListView *, 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( Kopete::ContactList::self(),
- SIGNAL( metaContactAdded( Kopete::MetaContact * ) ),
- SLOT( slotMetaContactAdded( Kopete::MetaContact * ) ) );
+ TQT_SIGNAL( metaContactAdded( Kopete::MetaContact * ) ),
+ TQT_SLOT( slotMetaContactAdded( Kopete::MetaContact * ) ) );
connect( Kopete::ContactList::self(),
- SIGNAL( metaContactRemoved( Kopete::MetaContact * ) ),
- SLOT( slotMetaContactDeleted( Kopete::MetaContact * ) ) );
- connect( Kopete::ContactList::self(), SIGNAL( groupAdded( Kopete::Group * ) ),
- SLOT( slotGroupAdded( Kopete::Group * ) ) );
+ TQT_SIGNAL( metaContactRemoved( Kopete::MetaContact * ) ),
+ TQT_SLOT( slotMetaContactDeleted( Kopete::MetaContact * ) ) );
+ connect( Kopete::ContactList::self(), TQT_SIGNAL( groupAdded( Kopete::Group * ) ),
+ TQT_SLOT( slotGroupAdded( Kopete::Group * ) ) );
- connect( Kopete::ChatSessionManager::self(), SIGNAL( newEvent( Kopete::MessageEvent * ) ),
- this, SLOT( slotNewMessageEvent( Kopete::MessageEvent * ) ) );
+ connect( Kopete::ChatSessionManager::self(), TQT_SIGNAL( newEvent( Kopete::MessageEvent * ) ),
+ this, TQT_SLOT( slotNewMessageEvent( Kopete::MessageEvent * ) ) );
- connect( this, SIGNAL( dropped( QDropEvent *, QListViewItem *, QListViewItem * ) ),
- this, SLOT( slotDropped( QDropEvent *, QListViewItem *, QListViewItem * ) ) );
+ connect( this, TQT_SIGNAL( dropped( TQDropEvent *, TQListViewItem *, TQListViewItem * ) ),
+ this, TQT_SLOT( slotDropped( TQDropEvent *, TQListViewItem *, TQListViewItem * ) ) );
- connect( &undoTimer, SIGNAL(timeout()) , this, SLOT (slotTimeout() ) );
+ connect( &undoTimer, TQT_SIGNAL(timeout()) , this, TQT_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"
@@ -453,7 +453,7 @@ KopeteContactListView::KopeteContactListView( QWidget *parent, const char *name
setItemsMovable( false );
setDropVisualizer( false );
setDropHighlighter( true );
- setSelectionMode( QListView::Extended );
+ setSelectionMode( TQListView::Extended );
// Load in the user's initial settings
slotSettingsChanged();
@@ -461,49 +461,49 @@ KopeteContactListView::KopeteContactListView( QWidget *parent, const char *name
void KopeteContactListView::initActions( KActionCollection *ac )
{
- actionUndo = KStdAction::undo( this , SLOT( slotUndo() ) , ac );
- actionRedo = KStdAction::redo( this , SLOT( slotRedo() ) , ac );
+ actionUndo = KStdAction::undo( this , TQT_SLOT( slotUndo() ) , ac );
+ actionRedo = KStdAction::redo( this , TQT_SLOT( slotRedo() ) , ac );
actionUndo->setEnabled(false);
actionRedo->setEnabled(false);
- new KAction( i18n( "Create New Group..." ), 0, 0, this, SLOT( addGroup() ),
+ new KAction( i18n( "Create New Group..." ), 0, 0, this, TQT_SLOT( addGroup() ),
ac, "AddGroup" );
actionSendMessage = KopeteStdAction::sendMessage(
- this, SLOT( slotSendMessage() ), ac, "contactSendMessage" );
- actionStartChat = KopeteStdAction::chat( this, SLOT( slotStartChat() ),
+ this, TQT_SLOT( slotSendMessage() ), ac, "contactSendMessage" );
+ actionStartChat = KopeteStdAction::chat( this, TQT_SLOT( slotStartChat() ),
ac, "contactStartChat" );
- actionMove = new KopeteGroupListAction( i18n( "&Move To" ), QString::fromLatin1( "editcut" ),
- 0, this, SLOT( slotMoveToGroup() ), ac, "contactMove" );
- actionCopy = new KopeteGroupListAction( i18n( "&Copy To" ), QString::fromLatin1( "editcopy" ), 0,
- this, SLOT( slotCopyToGroup() ), ac, "contactCopy" );
+ actionMove = new KopeteGroupListAction( i18n( "&Move To" ), TQString::fromLatin1( "editcut" ),
+ 0, this, TQT_SLOT( slotMoveToGroup() ), ac, "contactMove" );
+ actionCopy = new KopeteGroupListAction( i18n( "&Copy To" ), TQString::fromLatin1( "editcopy" ), 0,
+ this, TQT_SLOT( slotCopyToGroup() ), ac, "contactCopy" );
- actionRemove = KopeteStdAction::deleteContact( this, SLOT( slotRemove() ),
+ actionRemove = KopeteStdAction::deleteContact( this, TQT_SLOT( slotRemove() ),
ac, "contactRemove" );
- actionSendEmail = new KAction( i18n( "Send Email..." ), QString::fromLatin1( "mail_generic" ),
- 0, this, SLOT( slotSendEmail() ), ac, "contactSendEmail" );
+ actionSendEmail = new KAction( i18n( "Send Email..." ), TQString::fromLatin1( "mail_generic" ),
+ 0, this, TQT_SLOT( slotSendEmail() ), ac, "contactSendEmail" );
/* this actionRename is buggy, and useless with properties, removed in kopeteui.rc*/
actionRename = new KAction( i18n( "Rename" ), "filesaveas", 0,
- this, SLOT( slotRename() ), ac, "contactRename" );
- actionSendFile = KopeteStdAction::sendFile( this, SLOT( slotSendFile() ),
+ this, TQT_SLOT( slotRename() ), ac, "contactRename" );
+ actionSendFile = KopeteStdAction::sendFile( this, TQT_SLOT( slotSendFile() ),
ac, "contactSendFile" );
actionAddContact = new KActionMenu( i18n( "&Add Contact" ),
- QString::fromLatin1( "add_user" ), ac , "contactAddContact" );
+ TQString::fromLatin1( "add_user" ), ac , "contactAddContact" );
actionAddContact->popupMenu()->insertTitle( i18n("Select Account") );
actionAddTemporaryContact = new KAction( i18n( "Add to Your Contact List" ), "add_user", 0,
- this, SLOT( slotAddTemporaryContact() ), ac, "contactAddTemporaryContact" );
+ this, TQT_SLOT( slotAddTemporaryContact() ), ac, "contactAddTemporaryContact" );
- connect( Kopete::ContactList::self(), SIGNAL( metaContactSelected( bool ) ), this, SLOT( slotMetaContactSelected( bool ) ) );
+ connect( Kopete::ContactList::self(), TQT_SIGNAL( metaContactSelected( bool ) ), this, TQT_SLOT( slotMetaContactSelected( bool ) ) );
- connect( Kopete::AccountManager::self(), SIGNAL(accountRegistered( Kopete::Account* )), SLOT(slotAddSubContactActionNewAccount(Kopete::Account*)));
- connect( Kopete::AccountManager::self(), SIGNAL(accountUnregistered( const Kopete::Account* )), SLOT(slotAddSubContactActionAccountDeleted(const Kopete::Account *)));
+ 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 *)));
actionProperties = new KAction( i18n( "&Properties" ), "edit_user", Qt::Key_Alt + Qt::Key_Return,
- this, SLOT( slotProperties() ), ac, "contactProperties" );
+ this, TQT_SLOT( slotProperties() ), ac, "contactProperties" );
// Update enabled/disabled actions
slotViewSelectionChanged();
@@ -516,7 +516,7 @@ KopeteContactListView::~KopeteContactListView()
void KopeteContactListView::slotAddSubContactActionNewAccount(Kopete::Account* account)
{
- KAction *action = new KAction( account->accountLabel(), account->accountIcon(), 0 , this, SLOT(slotAddContact()), account);
+ KAction *action = new KAction( account->accountLabel(), account->accountIcon(), 0 , this, TQT_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, SIGNAL( addedToGroup( Kopete::MetaContact *, Kopete::Group * ) ),
- SLOT( slotAddedToGroup( Kopete::MetaContact *, Kopete::Group * ) ) );
- connect( mc, SIGNAL( removedFromGroup( Kopete::MetaContact *, Kopete::Group * ) ),
- SLOT( slotRemovedFromGroup( Kopete::MetaContact *, Kopete::Group * ) ) );
- connect( mc, SIGNAL( movedToGroup( Kopete::MetaContact *, Kopete::Group *, Kopete::Group * ) ),
- SLOT( slotMovedToGroup( Kopete::MetaContact *, Kopete::Group *, Kopete::Group * ) ) );
- connect( mc, SIGNAL( onlineStatusChanged( Kopete::MetaContact *, Kopete::OnlineStatus::StatusType ) ),
- SLOT( slotContactStatusChanged( Kopete::MetaContact * ) ) );
+ 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 * ) ) );
}
void KopeteContactListView::slotMetaContactDeleted( Kopete::MetaContact *mc )
@@ -595,7 +595,7 @@ void KopeteContactListView::removeContact( Kopete::MetaContact *c )
void KopeteContactListView::addGroup()
{
- QString groupName =
+ TQString groupName =
KInputDialog::getText( i18n( "New Group" ),
i18n( "Please enter the name for the new group:" ) );
@@ -603,7 +603,7 @@ void KopeteContactListView::addGroup()
addGroup( groupName );
}
-void KopeteContactListView::addGroup( const QString &groupName )
+void KopeteContactListView::addGroup( const TQString &groupName )
{
d->viewStrategy->addGroup( Kopete::ContactList::self()->findGroup(groupName) );
}
@@ -613,7 +613,7 @@ void KopeteContactListView::slotGroupAdded( Kopete::Group *group )
d->viewStrategy->addGroup( group );
}
-void KopeteContactListView::slotExpanded( QListViewItem *item )
+void KopeteContactListView::slotExpanded( TQListViewItem *item )
{
KopeteGroupViewItem *groupLVI = dynamic_cast<KopeteGroupViewItem *>( item );
if ( groupLVI )
@@ -626,7 +626,7 @@ void KopeteContactListView::slotExpanded( QListViewItem *item )
delayedSort();
}
-void KopeteContactListView::slotCollapsed( QListViewItem *item )
+void KopeteContactListView::slotCollapsed( TQListViewItem *item )
{
KopeteGroupViewItem *groupLVI = dynamic_cast<KopeteGroupViewItem*>( item );
if ( groupLVI )
@@ -637,7 +637,7 @@ void KopeteContactListView::slotCollapsed( QListViewItem *item )
}
void KopeteContactListView::slotContextMenu( KListView * /*listview*/,
- QListViewItem *item, const QPoint &point )
+ TQListViewItem *item, const TQPoint &point )
{
// FIXME: this code should be moved to the various list view item classes.
KopeteMetaContactLVI *metaLVI = dynamic_cast<KopeteMetaContactLVI *>( item );
@@ -653,7 +653,7 @@ void KopeteContactListView::slotContextMenu( KListView * /*listview*/,
{
clearSelection();
//Clear selection doesn't update lists of selected contact if the item is onlt heilighted (see bug 106090)
- Kopete::ContactList::self()->setSelectedItems( QPtrList<Kopete::MetaContact>() , QPtrList<Kopete::Group>() );
+ Kopete::ContactList::self()->setSelectedItems( TQPtrList<Kopete::MetaContact>() , TQPtrList<Kopete::Group>() );
}
int nb = Kopete::ContactList::self()->selectedMetaContacts().count() +
@@ -674,11 +674,11 @@ void KopeteContactListView::slotContextMenu( KListView * /*listview*/,
int py = mapFromGlobal( point ).y() - itemRect( item ).y() - (header()->isVisible() ? header()->height() : 0) ;
//kdDebug( 14000 ) << k_funcinfo << "x: " << px << ", y: " << py << endl;
- Kopete::Contact *c = metaLVI->contactForPoint( QPoint( px, py ) ) ;
+ Kopete::Contact *c = metaLVI->contactForPoint( TQPoint( px, py ) ) ;
if ( c )
{
KPopupMenu *p = c->popupMenu();
- connect( p, SIGNAL( aboutToHide() ), p, SLOT( deleteLater() ) );
+ connect( p, TQT_SIGNAL( aboutToHide() ), p, TQT_SLOT( deleteLater() ) );
p->popup( point );
}
else
@@ -687,11 +687,11 @@ void KopeteContactListView::slotContextMenu( KListView * /*listview*/,
window->factory()->container( "contact_popup", window ) );
if ( popup )
{
- QString title = i18n( "Translators: format: '<nickname> (<online status>)'", "%1 (%2)" ).
+ TQString title = i18n( "Translators: format: '<nickname> (<online status>)'", "%1 (%2)" ).
arg( metaLVI->metaContact()->displayName(), metaLVI->metaContact()->statusString() );
if ( title.length() > 43 )
- title = title.left( 40 ) + QString::fromLatin1( "..." );
+ title = title.left( 40 ) + TQString::fromLatin1( "..." );
if ( popup->title( 0 ).isNull() )
popup->insertTitle ( title, 0, 0 );
@@ -700,7 +700,7 @@ void KopeteContactListView::slotContextMenu( KListView * /*listview*/,
// Submenus for separate contact actions
bool sep = false; //FIXME: find if there is already a separator in the end - Olivier
- QPtrList<Kopete::Contact> it = metaLVI->metaContact()->contacts();
+ TQPtrList<Kopete::Contact> it = metaLVI->metaContact()->contacts();
for( Kopete::Contact *c = it.first(); c; c = it.next() )
{
if( sep )
@@ -710,13 +710,13 @@ void KopeteContactListView::slotContextMenu( KListView * /*listview*/,
}
KPopupMenu *contactMenu = it.current()->popupMenu();
- connect( popup, SIGNAL( aboutToHide() ), contactMenu, SLOT( deleteLater() ) );
- QString nick=c->property(Kopete::Global::Properties::self()->nickName()).value().toString();
- QString text= nick.isEmpty() ? c->contactId() : i18n( "Translators: format: '<displayName> (<id>)'", "%2 <%1>" ). arg( c->contactId(), nick );
+ connect( popup, TQT_SIGNAL( aboutToHide() ), contactMenu, TQT_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
if ( text.length() > 41 )
- text = text.left( 38 ) + QString::fromLatin1( "..." );
+ text = text.left( 38 ) + TQString::fromLatin1( "..." );
popup->insertItem( c->onlineStatus().iconFor( c, 16 ), text , contactMenu );
}
@@ -731,9 +731,9 @@ void KopeteContactListView::slotContextMenu( KListView * /*listview*/,
window->factory()->container( "group_popup", window ) );
if ( popup )
{
- QString title = groupvi->group()->displayName();
+ TQString title = groupvi->group()->displayName();
if ( title.length() > 32 )
- title = title.left( 30 ) + QString::fromLatin1( "..." );
+ title = title.left( 30 ) + TQString::fromLatin1( "..." );
if( popup->title( 0 ).isNull() )
popup->insertTitle( title, 0, 0 );
@@ -798,24 +798,24 @@ void KopeteContactListView::slotUpdateAllGroupIcons()
{
// FIXME: groups can (should?) do this for themselves
// HACK: assume all groups are top-level. works for now, until the fixme above is dealt with
- for ( QListViewItem *it = firstChild(); it; it = it->nextSibling() )
+ for ( TQListViewItem *it = firstChild(); it; it = it->nextSibling() )
if ( KopeteGroupViewItem *gpi = dynamic_cast<KopeteGroupViewItem*>( it ) )
gpi->updateIcon();
}
-void KopeteContactListView::slotExecuted( QListViewItem *item, const QPoint &p, int /* col */ )
+void KopeteContactListView::slotExecuted( TQListViewItem *item, const TQPoint &p, int /* col */ )
{
item->setSelected( false );
KopeteMetaContactLVI *metaContactLVI = dynamic_cast<KopeteMetaContactLVI *>( item );
- QPoint pos = viewport()->mapFromGlobal( p );
+ TQPoint pos = viewport()->mapFromGlobal( p );
Kopete::Contact *c = 0L;
if ( metaContactLVI )
{
// Try if we are clicking a protocol icon. If so, open a direct
// connection for that protocol
- QRect r = itemRect( item );
- QPoint relativePos( pos.x() - r.left() - ( treeStepSize() *
+ TQRect r = itemRect( item );
+ TQPoint relativePos( pos.x() - r.left() - ( treeStepSize() *
( item->depth() + ( rootIsDecorated() ? 1 : 0 ) ) +
itemMargin() ), pos.y() - r.top() );
c = metaContactLVI->contactForPoint( relativePos );
@@ -831,7 +831,7 @@ void KopeteContactListView::slotContactStatusChanged( Kopete::MetaContact *mc )
d->viewStrategy->metaContactStatusChanged( mc );
}
-void KopeteContactListView::slotDropped(QDropEvent *e, QListViewItem *, QListViewItem *after)
+void KopeteContactListView::slotDropped(TQDropEvent *e, TQListViewItem *, TQListViewItem *after)
{
if(!acceptDrag(e))
return;
@@ -839,9 +839,9 @@ void KopeteContactListView::slotDropped(QDropEvent *e, QListViewItem *, QListVie
KopeteMetaContactLVI *dest_metaLVI=dynamic_cast<KopeteMetaContactLVI*>(after);
KopeteGroupViewItem *dest_groupLVI=dynamic_cast<KopeteGroupViewItem*>(after);
- if( const_cast<const QWidget *>( e->source() ) == this )
+ if( const_cast<const TQWidget *>( e->source() ) == this )
{
- QPtrListIterator<KopeteMetaContactLVI> it( m_selectedContacts );
+ TQPtrListIterator<KopeteMetaContactLVI> it( m_selectedContacts );
while ( it.current() )
{
@@ -905,17 +905,17 @@ void KopeteContactListView::slotDropped(QDropEvent *e, QListViewItem *, QListVie
}
else if( e->provides("kopete/x-contact") )
{
- QString contactInfo = QString::fromUtf8( e->encodedData("kopete/x-contact") );
- QString protocolId = contactInfo.section( QChar( 0xE000 ), 0, 0 );
- QString accountId = contactInfo.section( QChar( 0xE000 ), 1, 1 );
- QString contactId = contactInfo.section( QChar( 0xE000 ), 2 );
+ TQString contactInfo = TQString::fromUtf8( e->encodedData("kopete/x-contact") );
+ TQString protocolId = contactInfo.section( TQChar( 0xE000 ), 0, 0 );
+ TQString accountId = contactInfo.section( TQChar( 0xE000 ), 1, 1 );
+ TQString contactId = contactInfo.section( TQChar( 0xE000 ), 2 );
addDraggedContactByInfo( protocolId, accountId, contactId, after );
}
else if( e->provides("text/uri-list") )
{
- if ( !QUriDrag::canDecode( e ) )
+ if ( !TQUriDrag::canDecode( e ) )
{
e->ignore();
return;
@@ -927,7 +927,7 @@ void KopeteContactListView::slotDropped(QDropEvent *e, QListViewItem *, QListVie
for ( KURL::List::Iterator it = urlList.begin(); it != urlList.end(); ++it )
{
KURL url = (*it);
- if( url.protocol() == QString::fromLatin1("kopetemessage") )
+ if( url.protocol() == TQString::fromLatin1("kopetemessage") )
{
//Add a contact
addDraggedContactByInfo( url.queryItem("protocolId"),
@@ -935,12 +935,12 @@ void KopeteContactListView::slotDropped(QDropEvent *e, QListViewItem *, QListVie
}
else if( dest_metaLVI )
{
- QPoint p = contentsToViewport(e->pos());
+ TQPoint p = contentsToViewport(e->pos());
int px = p.x() - ( header()->sectionPos( header()->mapToIndex( 0 ) ) +
treeStepSize() * ( dest_metaLVI->depth() + ( rootIsDecorated() ? 1 : 0 ) ) + itemMargin() );
int py = p.y() - itemRect( dest_metaLVI ).y();
- Kopete::Contact *c = dest_metaLVI->contactForPoint( QPoint( px, py ) );
+ Kopete::Contact *c = dest_metaLVI->contactForPoint( TQPoint( px, py ) );
if( url.isLocalFile() )
{
@@ -1018,8 +1018,8 @@ void KopeteContactListView::addDraggedContactToMetaContact( Kopete::Contact *con
}
}
-void KopeteContactListView::addDraggedContactByInfo( const QString &protocolId, const QString &accountId,
- const QString &contactId, QListViewItem *after )
+void KopeteContactListView::addDraggedContactByInfo( const TQString &protocolId, const TQString &accountId,
+ const TQString &contactId, TQListViewItem *after )
{
kdDebug(14000) << k_funcinfo << "protocolId=" << protocolId <<
", accountId=" << accountId << ", contactId=" << contactId << endl;
@@ -1027,7 +1027,7 @@ void KopeteContactListView::addDraggedContactByInfo( const QString &protocolId,
Kopete::Account *account = Kopete::AccountManager::self()->findAccount( protocolId,accountId );
if( account )
{
- QDict<Kopete::Contact> contacts = account->contacts();
+ TQDict<Kopete::Contact> contacts = account->contacts();
Kopete::Contact *source_contact = contacts[ contactId ];
if( source_contact )
@@ -1061,11 +1061,11 @@ void KopeteContactListView::addDraggedContactByInfo( const QString &protocolId,
}
}
-bool KopeteContactListView::acceptDrag(QDropEvent *e) const
+bool KopeteContactListView::acceptDrag(TQDropEvent *e) const
{
- QListViewItem *source=currentItem();
- QListViewItem *parent;
- QListViewItem *afterme;
+ TQListViewItem *source=currentItem();
+ TQListViewItem *parent;
+ TQListViewItem *afterme;
// Due to a little design problem in KListView::findDrop() we can't
// call it directly from a const method until KDE 4.0, but as the
// method is in fact const we can of course get away with a
@@ -1074,7 +1074,7 @@ bool KopeteContactListView::acceptDrag(QDropEvent *e) const
KopeteMetaContactLVI *dest_metaLVI=dynamic_cast<KopeteMetaContactLVI*>(afterme);
- if( const_cast<const QWidget *>( e->source() ) == this )
+ if( const_cast<const TQWidget *>( e->source() ) == this )
{
KopeteMetaContactLVI *source_metaLVI=dynamic_cast<KopeteMetaContactLVI*>(source);
KopeteGroupViewItem *dest_groupLVI=dynamic_cast<KopeteGroupViewItem*>(afterme);
@@ -1143,11 +1143,11 @@ bool KopeteContactListView::acceptDrag(QDropEvent *e) const
//we are sending a file (or dragging from the chat view)
if( dest_metaLVI )
{
- QPoint p=contentsToViewport(e->pos());
+ TQPoint p=contentsToViewport(e->pos());
int px = p.x() - ( header()->sectionPos( header()->mapToIndex( 0 ) ) +
treeStepSize() * ( dest_metaLVI->depth() + ( rootIsDecorated() ? 1 : 0 ) ) + itemMargin() );
int py = p.y() - itemRect( dest_metaLVI ).y();
- Kopete::Contact *c = dest_metaLVI->contactForPoint( QPoint( px, py ) ) ;
+ Kopete::Contact *c = dest_metaLVI->contactForPoint( TQPoint( px, py ) ) ;
if( c ? !c->isReachable() : !dest_metaLVI->metaContact()->isReachable() )
return false; //If the pointed contact is not reachable, abort
@@ -1160,7 +1160,7 @@ bool KopeteContactListView::acceptDrag(QDropEvent *e) const
}
}
- if ( !QUriDrag::canDecode(e) )
+ if ( !TQUriDrag::canDecode(e) )
return false;
KURL::List urlList;
@@ -1168,7 +1168,7 @@ bool KopeteContactListView::acceptDrag(QDropEvent *e) const
for ( KURL::List::Iterator it = urlList.begin(); it != urlList.end(); ++it )
{
- if( (*it).protocol() != QString::fromLatin1("kopetemessage") && (*it).isLocalFile() )
+ if( (*it).protocol() != TQString::fromLatin1("kopetemessage") && (*it).isLocalFile() )
return false; //we can't send links if a locale file is in link
}
@@ -1181,8 +1181,8 @@ bool KopeteContactListView::acceptDrag(QDropEvent *e) const
}
else
{
- QString text;
- QTextDrag::decode(e, text);
+ TQString text;
+ TQTextDrag::decode(e, text);
kdDebug(14000) << k_funcinfo << "drop with mimetype:" << e->format() << " data as text:" << text << endl;
}
@@ -1191,24 +1191,24 @@ bool KopeteContactListView::acceptDrag(QDropEvent *e) const
return false;
}
-void KopeteContactListView::findDrop(const QPoint &pos, QListViewItem *&parent,
- QListViewItem *&after)
+void KopeteContactListView::findDrop(const TQPoint &pos, TQListViewItem *&parent,
+ TQListViewItem *&after)
{
//Since KDE 3.1.1 , the original find Drop return 0L for afterme if the group is open.
//This woraround allow us to keep the highlight of the item, and give always a correct position
parent=0L;
- QPoint p (contentsToViewport(pos));
+ TQPoint p (contentsToViewport(pos));
after=itemAt(p);
}
-void KopeteContactListView::contentsMousePressEvent( QMouseEvent *e )
+void KopeteContactListView::contentsMousePressEvent( TQMouseEvent *e )
{
KListView::contentsMousePressEvent( e );
if (e->button() == LeftButton )
{
- QPoint p=contentsToViewport(e->pos());
- QListViewItem *i=itemAt( p );
+ TQPoint p=contentsToViewport(e->pos());
+ TQListViewItem *i=itemAt( p );
if( i )
{
//Maybe we are starting a drag?
@@ -1218,7 +1218,7 @@ void KopeteContactListView::contentsMousePressEvent( QMouseEvent *e )
treeStepSize() * ( i->depth() + ( rootIsDecorated() ? 1 : 0 ) ) + itemMargin() );
int py = p.y() - itemRect( i ).y();
- m_startDragPos = QPoint( px , py );
+ m_startDragPos = TQPoint( px , py );
}
}
}
@@ -1233,14 +1233,14 @@ void KopeteContactListView::slotNewMessageEvent(Kopete::MessageEvent *event)
if(!m)
return;
- for ( QListViewItem *item = firstChild(); item; item = nextItem(item) )
+ for ( TQListViewItem *item = firstChild(); item; item = nextItem(item) )
if ( KopeteMetaContactLVI *li = dynamic_cast<KopeteMetaContactLVI*>(item) )
if ( li->metaContact() == m )
li->catchEvent(event);
}
}
-QDragObject *KopeteContactListView::dragObject()
+TQDragObject *KopeteContactListView::dragObject()
{
// Discover what the drag started on.
// If it's a MetaContactLVI, it was either on the MCLVI itself
@@ -1249,7 +1249,7 @@ QDragObject *KopeteContactListView::dragObject()
// we set the pixmap for the drag to the MC's pixmap
// or the child contact's small icon
- QListViewItem *currentLVI = currentItem();
+ TQListViewItem *currentLVI = currentItem();
if( !currentLVI )
return 0L;
@@ -1257,19 +1257,19 @@ QDragObject *KopeteContactListView::dragObject()
if( !metaLVI )
return 0L;
- QPixmap pm;
+ TQPixmap pm;
Kopete::Contact *c = metaLVI->contactForPoint( m_startDragPos );
KMultipleDrag *drag = new KMultipleDrag( this );
- drag->addDragObject( new QStoredDrag("application/x-qlistviewitem", 0L ) );
+ drag->addDragObject( new TQStoredDrag("application/x-qlistviewitem", 0L ) );
- QStoredDrag *d = new QStoredDrag("kopete/x-metacontact", 0L );
+ TQStoredDrag *d = new TQStoredDrag("kopete/x-metacontact", 0L );
d->setEncodedData( metaLVI->metaContact()->metaContactId().utf8() );
drag->addDragObject( d );
if ( c ) // dragging a contact
{
- QStoredDrag *d = new QStoredDrag("kopete/x-contact", 0L );
- d->setEncodedData( QString( c->protocol()->pluginId() +QChar( 0xE000 )+ c->account()->accountId() +QChar( 0xE000 )+ c->contactId() ).utf8() );
+ TQStoredDrag *d = new TQStoredDrag("kopete/x-contact", 0L );
+ d->setEncodedData( TQString( c->protocol()->pluginId() +TQChar( 0xE000 )+ c->account()->accountId() +TQChar( 0xE000 )+ c->contactId() ).utf8() );
drag->addDragObject( d );
pm = c->onlineStatus().iconFor( c, 12 ); // FIXME: fixed icon scaling
@@ -1278,7 +1278,7 @@ QDragObject *KopeteContactListView::dragObject()
{
// FIXME: first start at rendering the whole MC incl small icons
// into a pixmap to drag - anyone know how to complete this?
- //QPainter p( pm );
+ //TQPainter p( pm );
//source_metaLVI->paintCell( p, cg?, width(), 0, 0 );
pm = SmallIcon( metaLVI->metaContact()->statusIcon() );
}
@@ -1289,35 +1289,35 @@ QDragObject *KopeteContactListView::dragObject()
if( !address.isEmpty() )
{
- drag->addDragObject( new QTextDrag( address.fullEmail(), 0L ) );
+ drag->addDragObject( new TQTextDrag( address.fullEmail(), 0L ) );
KABC::VCardConverter converter;
- QString vcard = converter.createVCard( address );
+ TQString vcard = converter.createVCard( address );
if( !vcard.isNull() )
{
- QStoredDrag *vcardDrag = new QStoredDrag("text/x-vcard", 0L );
+ TQStoredDrag *vcardDrag = new TQStoredDrag("text/x-vcard", 0L );
vcardDrag->setEncodedData( vcard.utf8() );
drag->addDragObject( vcardDrag );
}
}
- //QSize s = pm.size();
- drag->setPixmap( pm /*, QPoint( s.width() , s.height() )*/ );
+ //TQSize s = pm.size();
+ drag->setPixmap( pm /*, TQPoint( s.width() , s.height() )*/ );
return drag;
}
void KopeteContactListView::slotViewSelectionChanged()
{
- QPtrList<Kopete::MetaContact> contacts;
- QPtrList<Kopete::Group> groups;
+ TQPtrList<Kopete::MetaContact> contacts;
+ TQPtrList<Kopete::Group> groups;
m_selectedContacts.clear();
m_selectedGroups.clear();
- QListViewItemIterator it( this );
+ TQListViewItemIterator it( this );
while ( it.current() )
{
- QListViewItem *item = it.current();
+ TQListViewItem *item = it.current();
++it;
if ( item->isSelected() )
@@ -1346,8 +1346,8 @@ void KopeteContactListView::slotViewSelectionChanged()
void KopeteContactListView::slotListSelectionChanged()
{
- QPtrList<Kopete::MetaContact> contacts = Kopete::ContactList::self()->selectedMetaContacts();
- QPtrList<Kopete::Group> groups = Kopete::ContactList::self()->selectedGroups();
+ TQPtrList<Kopete::MetaContact> contacts = Kopete::ContactList::self()->selectedMetaContacts();
+ TQPtrList<Kopete::Group> groups = Kopete::ContactList::self()->selectedGroups();
//TODO: update the list to select the items that should be selected.
// make sure slotViewSelectionChanged is *not* called.
@@ -1355,13 +1355,13 @@ void KopeteContactListView::slotListSelectionChanged()
}
void KopeteContactListView::updateActionsForSelection(
- QPtrList<Kopete::MetaContact> contacts, QPtrList<Kopete::Group> groups )
+ TQPtrList<Kopete::MetaContact> contacts, TQPtrList<Kopete::Group> groups )
{
bool singleContactSelected = groups.isEmpty() && contacts.count() == 1;
bool inkabc=false;
if(singleContactSelected)
{
- QString kabcid=contacts.first()->metaContactId();
+ TQString kabcid=contacts.first()->metaContactId();
inkabc= !kabcid.isEmpty() && !kabcid.contains(":");
}
@@ -1439,11 +1439,11 @@ void KopeteContactListView::slotSendFile()
KABC::Addressee addressee = KABC::StdAddressBook::self()->findByUid( m->metaContactId() );
if ( !addressee.isEmpty() )
{
- QString emailAddr = addressee.fullEmail();
+ TQString emailAddr = addressee.fullEmail();
kdDebug( 14000 ) << "Email: " << emailAddr << "!" << endl;
if ( !emailAddr.isEmpty() )
- kapp->invokeMailer( emailAddr, QString::null );
+ kapp->invokeMailer( emailAddr, TQString::null );
else
KMessageBox::queuedMessageBox( this, KMessageBox::Sorry, i18n( "There is no email address set for this contact in the KDE address book." ), i18n( "No Email Address in Address Book" ) );
}
@@ -1529,13 +1529,13 @@ void KopeteContactListView::slotCopyToGroup()
void KopeteContactListView::slotRemove()
{
- QPtrList<Kopete::MetaContact> contacts = Kopete::ContactList::self()->selectedMetaContacts();
- QPtrList<Kopete::Group> groups = Kopete::ContactList::self()->selectedGroups();
+ TQPtrList<Kopete::MetaContact> contacts = Kopete::ContactList::self()->selectedMetaContacts();
+ TQPtrList<Kopete::Group> groups = Kopete::ContactList::self()->selectedGroups();
if(groups.count() + contacts.count() == 0)
return;
- QStringList items;
+ TQStringList items;
for( Kopete::Group *it = groups.first(); it; it = groups.next() )
{
if(!it->displayName().isEmpty())
@@ -1550,7 +1550,7 @@ void KopeteContactListView::slotRemove()
if( items.count() <= 1 )
{
// we are deleting an empty contact
- QString msg;
+ TQString msg;
if( !contacts.isEmpty() )
{
msg = i18n( "<qt>Are you sure you want to remove the contact <b>%1</b>" \
@@ -1575,7 +1575,7 @@ void KopeteContactListView::slotRemove()
}
else
{
- QString msg = groups.isEmpty() ?
+ TQString msg = groups.isEmpty() ?
i18n( "Are you sure you want to remove these contacts " \
"from your contact list?" ) :
i18n( "Are you sure you want to remove these groups and " \
@@ -1598,10 +1598,10 @@ void KopeteContactListView::slotRemove()
else
{
//try to guess from what group we are removing that contact.
- QListViewItemIterator lvi_it( this );
+ TQListViewItemIterator lvi_it( this );
while ( lvi_it.current() )
{
- QListViewItem *item = lvi_it.current();
+ TQListViewItem *item = lvi_it.current();
++lvi_it;
if ( item->isSelected() )
@@ -1630,7 +1630,7 @@ void KopeteContactListView::slotRemove()
for( Kopete::Group *it = groups.first(); it; it = groups.next() )
{
- QPtrList<Kopete::MetaContact> list = it->members();
+ TQPtrList<Kopete::MetaContact> list = it->members();
for( list.first(); list.current(); list.next() )
{
Kopete::MetaContact *mc = list.current();
@@ -1700,7 +1700,7 @@ void KopeteContactListView::slotAddContact()
else
{
addDialog->setMainWidget( addContactPage );
- if( addDialog->exec() == QDialog::Accepted )
+ if( addDialog->exec() == TQDialog::Accepted )
{
if( addContactPage->validateData() )
{
@@ -1786,7 +1786,7 @@ void KopeteContactListView::slotProperties()
}
}
-void KopeteContactListView::slotItemRenamed( QListViewItem */*item*/ )
+void KopeteContactListView::slotItemRenamed( TQListViewItem */*item*/ )
{
//everithing is now done in KopeteMetaContactLVI::rename
@@ -1867,7 +1867,7 @@ void KopeteContactListView::slotUndo()
if( m )
{
// make a copy
- QStringList undoArgs = m_undo->args;
+ TQStringList undoArgs = m_undo->args;
Kopete::MetaContact::PropertySource undoSource = m_undo->nameSource;
// set undo undo
// set the source first
@@ -1915,7 +1915,7 @@ void KopeteContactListView::slotUndo()
{
if( m_undo->group )
{
- const QString old=m_undo->group->displayName();
+ const TQString old=m_undo->group->displayName();
m_undo->group->setDisplayName( m_undo->args[0] );
m_undo->args[0]=old;
success=true;
@@ -2027,10 +2027,10 @@ void KopeteContactListView::slotRedo()
Kopete::MetaContact *m=m_redo->metacontact;
if( m )
{
- const QString old=m->displayName();
+ const TQString old=m->displayName();
if( m_redo->args[1].isEmpty() )
{
- const QString name = m_redo->args[0];
+ const TQString name = m_redo->args[0];
m_redo->args[0] = m->displayNameSource()->contactId();
m_redo->args[1] = m->displayNameSource()->protocol()->pluginId();
m_redo->args[2] = m->displayNameSource()->account()->accountId();
@@ -2038,9 +2038,9 @@ void KopeteContactListView::slotRedo()
}
else
{
- const QString oldName = m->displayName();
- QPtrList< Kopete::Contact > cList = m->contacts();
- QPtrListIterator< Kopete::Contact > it (cList);
+ const TQString oldName = m->displayName();
+ TQPtrList< Kopete::Contact > cList = m->contacts();
+ TQPtrListIterator< Kopete::Contact > it (cList);
Kopete::Contact *c = Kopete::ContactList::self()->findContact( args[0], args[2], args[1]);
if ( !c)
return;
@@ -2060,7 +2060,7 @@ void KopeteContactListView::slotRedo()
{
if( m_redo->group )
{
- const QString old=m_redo->group->displayName();
+ const TQString old=m_redo->group->displayName();
m_redo->group->setDisplayName( m_redo->args[0] );
m_redo->args[0]=old;
success=true;