summaryrefslogtreecommitdiffstats
path: root/kopete/kopete/contactlist/kopetemetacontactlvi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/kopete/contactlist/kopetemetacontactlvi.cpp')
-rw-r--r--kopete/kopete/contactlist/kopetemetacontactlvi.cpp226
1 files changed, 113 insertions, 113 deletions
diff --git a/kopete/kopete/contactlist/kopetemetacontactlvi.cpp b/kopete/kopete/contactlist/kopetemetacontactlvi.cpp
index 86dc4b40..b336a6cd 100644
--- a/kopete/kopete/contactlist/kopetemetacontactlvi.cpp
+++ b/kopete/kopete/contactlist/kopetemetacontactlvi.cpp
@@ -18,11 +18,11 @@
*************************************************************************
*/
-#include <qpainter.h>
-#include <qtimer.h>
-#include <qvariant.h>
-#include <qmime.h>
-#include <qstylesheet.h>
+#include <tqpainter.h>
+#include <tqtimer.h>
+#include <tqvariant.h>
+#include <tqmime.h>
+#include <tqstylesheet.h>
#include "knotification.h"
#include <kdebug.h>
@@ -78,27 +78,27 @@ public:
: metaContact( mc )
{
}
- QString operator()( ComponentBase *, const QPoint &, QRect & )
+ TQString operator()( ComponentBase *, const TQPoint &, TQRect & )
{
// We begin with the meta contact display name at the top of the tooltip
- QString toolTip = QString::fromLatin1("<qt><table cellpadding=\"0\" cellspacing=\"1\">");
+ TQString toolTip = TQString::fromLatin1("<qt><table cellpadding=\"0\" cellspacing=\"1\">");
- toolTip += QString::fromLatin1("<tr><td>");
+ toolTip += TQString::fromLatin1("<tr><td>");
if ( ! metaContact->photo().isNull() )
{
- QString photoName = QString::fromLatin1("kopete-metacontact-photo:%1").arg( KURL::encode_string( metaContact->metaContactId() ));
- //QMimeSourceFactory::defaultFactory()->setImage( "contactimg", metaContact->photo() );
- toolTip += QString::fromLatin1("<img src=\"%1\">").arg( photoName );
+ TQString photoName = TQString::fromLatin1("kopete-metacontact-photo:%1").arg( KURL::encode_string( metaContact->metaContactId() ));
+ //TQMimeSourceFactory::defaultFactory()->setImage( "contactimg", metaContact->photo() );
+ toolTip += TQString::fromLatin1("<img src=\"%1\">").arg( photoName );
}
- toolTip += QString::fromLatin1("</td><td>");
+ toolTip += TQString::fromLatin1("</td><td>");
- QString displayName;
+ TQString displayName;
Kopete::Emoticons *e = Kopete::Emoticons::self();
- QValueList<Emoticons::Token> t = e->tokenize( metaContact->displayName());
- QValueList<Emoticons::Token>::iterator it;
+ TQValueList<Emoticons::Token> t = e->tokenize( metaContact->displayName());
+ TQValueList<Emoticons::Token>::iterator it;
for( it = t.begin(); it != t.end(); ++it )
{
if( (*it).type == Kopete::Emoticons::Image )
@@ -106,25 +106,25 @@ public:
displayName += (*it).picHTMLCode;
} else if( (*it).type == Kopete::Emoticons::Text )
{
- displayName += QStyleSheet::escape( (*it).text );
+ displayName += TQStyleSheet::escape( (*it).text );
}
}
- toolTip += QString::fromLatin1("<b><font size=\"+1\">%1</font></b><br><br>").arg( displayName );
+ toolTip += TQString::fromLatin1("<b><font size=\"+1\">%1</font></b><br><br>").arg( displayName );
- QPtrList<Contact> contacts = metaContact->contacts();
+ TQPtrList<Contact> contacts = metaContact->contacts();
if ( contacts.count() == 1 )
{
- return toolTip + contacts.first()->toolTip() + QString::fromLatin1("</td></tr></table></qt>");
+ return toolTip + contacts.first()->toolTip() + TQString::fromLatin1("</td></tr></table></qt>");
}
- toolTip += QString::fromLatin1("<table>");
+ toolTip += TQString::fromLatin1("<table>");
// We are over a metacontact with > 1 child contacts, and not over a specific contact
// Iterate through children and display a summary tooltip
for(Contact *c = contacts.first(); c; c = contacts.next())
{
- QString iconName = QString::fromLatin1("kopete-contact-icon:%1:%2:%3")
+ TQString iconName = TQString::fromLatin1("kopete-contact-icon:%1:%2:%3")
.arg( KURL::encode_string( c->protocol()->pluginId() ),
KURL::encode_string( c->account()->accountId() ),
KURL::encode_string( c->contactId() )
@@ -135,7 +135,7 @@ public:
.arg( iconName, Kopete::Emoticons::parseEmoticons(c->property(Kopete::Global::Properties::self()->nickName()).value().toString()) , c->contactId(), c->onlineStatus().description() );
}
- return toolTip + QString::fromLatin1("</table></td></tr></table></qt>");
+ return toolTip + TQString::fromLatin1("</table></td></tr></table></qt>");
}
private:
MetaContact *metaContact;
@@ -163,12 +163,12 @@ public:
int currentMode;
int currentIconMode;
- QPtrList<Kopete::MessageEvent> events;
+ TQPtrList<Kopete::MessageEvent> events;
};
KopeteMetaContactLVI::KopeteMetaContactLVI( Kopete::MetaContact *contact, KopeteGroupViewItem *parent )
: ListView::Item( parent, contact, "MetaContactLVI" )
-//: QObject( contact, "MetaContactLVI" ), KListViewItem( parent )
+//: TQObject( contact, "MetaContactLVI" ), KListViewItem( parent )
{
m_metaContact = contact;
m_isTopLevel = false;
@@ -179,9 +179,9 @@ KopeteMetaContactLVI::KopeteMetaContactLVI( Kopete::MetaContact *contact, Kopete
parent->refreshDisplayName();
}
-KopeteMetaContactLVI::KopeteMetaContactLVI( Kopete::MetaContact *contact, QListViewItem *parent )
+KopeteMetaContactLVI::KopeteMetaContactLVI( Kopete::MetaContact *contact, TQListViewItem *parent )
: ListView::Item( parent, contact, "MetaContactLVI" )
-//: QObject( contact, "MetaContactLVI" ), KListViewItem( parent )
+//: TQObject( contact, "MetaContactLVI" ), KListViewItem( parent )
{
m_metaContact = contact;
@@ -192,9 +192,9 @@ KopeteMetaContactLVI::KopeteMetaContactLVI( Kopete::MetaContact *contact, QListV
initLVI();
}
-KopeteMetaContactLVI::KopeteMetaContactLVI( Kopete::MetaContact *contact, QListView *parent )
+KopeteMetaContactLVI::KopeteMetaContactLVI( Kopete::MetaContact *contact, TQListView *parent )
: ListView::Item( parent, contact, "MetaContactLVI" )
-//: QObject( contact, "MetaContactLVI" ), KListViewItem( parent )
+//: TQObject( contact, "MetaContactLVI" ), KListViewItem( parent )
{
m_metaContact = contact;
@@ -213,47 +213,47 @@ void KopeteMetaContactLVI::initLVI()
m_oldStatus = m_metaContact->status();
- connect( m_metaContact, SIGNAL( displayNameChanged( const QString &, const QString & ) ),
- SLOT( slotDisplayNameChanged() ) );
+ connect( m_metaContact, TQT_SIGNAL( displayNameChanged( const TQString &, const TQString & ) ),
+ TQT_SLOT( slotDisplayNameChanged() ) );
- connect( m_metaContact, SIGNAL( photoChanged() ),
- SLOT( slotPhotoChanged() ) );
+ connect( m_metaContact, TQT_SIGNAL( photoChanged() ),
+ TQT_SLOT( slotPhotoChanged() ) );
- connect( m_metaContact, SIGNAL( onlineStatusChanged( Kopete::MetaContact *, Kopete::OnlineStatus::StatusType ) ),
- SLOT( slotPhotoChanged() ) );
+ connect( m_metaContact, TQT_SIGNAL( onlineStatusChanged( Kopete::MetaContact *, Kopete::OnlineStatus::StatusType ) ),
+ TQT_SLOT( slotPhotoChanged() ) );
- connect( m_metaContact, SIGNAL( onlineStatusChanged( Kopete::MetaContact *, Kopete::OnlineStatus::StatusType ) ),
- this, SLOT(slotIdleStateChanged( ) ) );
+ connect( m_metaContact, TQT_SIGNAL( onlineStatusChanged( Kopete::MetaContact *, Kopete::OnlineStatus::StatusType ) ),
+ this, TQT_SLOT(slotIdleStateChanged( ) ) );
- connect( m_metaContact, SIGNAL( contactStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus & ) ),
- SLOT( slotContactStatusChanged( Kopete::Contact * ) ) );
+ connect( m_metaContact, TQT_SIGNAL( contactStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus & ) ),
+ TQT_SLOT( slotContactStatusChanged( Kopete::Contact * ) ) );
- connect( m_metaContact, SIGNAL( contactAdded( Kopete::Contact * ) ),
- SLOT( slotContactAdded( Kopete::Contact * ) ) );
+ connect( m_metaContact, TQT_SIGNAL( contactAdded( Kopete::Contact * ) ),
+ TQT_SLOT( slotContactAdded( Kopete::Contact * ) ) );
- connect( m_metaContact, SIGNAL( contactRemoved( Kopete::Contact * ) ),
- SLOT( slotContactRemoved( Kopete::Contact * ) ) );
+ connect( m_metaContact, TQT_SIGNAL( contactRemoved( Kopete::Contact * ) ),
+ TQT_SLOT( slotContactRemoved( Kopete::Contact * ) ) );
- connect( m_metaContact, SIGNAL( iconAppearanceChanged() ),
- SLOT( slotUpdateMetaContact() ) );
+ connect( m_metaContact, TQT_SIGNAL( iconAppearanceChanged() ),
+ TQT_SLOT( slotUpdateMetaContact() ) );
- connect( m_metaContact, SIGNAL( useCustomIconChanged( bool ) ),
- SLOT( slotUpdateMetaContact() ) );
+ connect( m_metaContact, TQT_SIGNAL( useCustomIconChanged( bool ) ),
+ TQT_SLOT( slotUpdateMetaContact() ) );
- connect( m_metaContact, SIGNAL( contactIdleStateChanged( Kopete::Contact * ) ),
- SLOT( slotIdleStateChanged( Kopete::Contact * ) ) );
+ connect( m_metaContact, TQT_SIGNAL( contactIdleStateChanged( Kopete::Contact * ) ),
+ TQT_SLOT( slotIdleStateChanged( Kopete::Contact * ) ) );
- connect( KopetePrefs::prefs(), SIGNAL( contactListAppearanceChanged() ),
- SLOT( slotConfigChanged() ) );
+ connect( KopetePrefs::prefs(), TQT_SIGNAL( contactListAppearanceChanged() ),
+ TQT_SLOT( slotConfigChanged() ) );
- connect( kapp, SIGNAL( appearanceChanged() ), SLOT( slotConfigChanged() ) );
+ connect( kapp, TQT_SIGNAL( appearanceChanged() ), TQT_SLOT( slotConfigChanged() ) );
- mBlinkTimer = new QTimer( this, "mBlinkTimer" );
- connect( mBlinkTimer, SIGNAL( timeout() ), SLOT( slotBlink() ) );
+ mBlinkTimer = new TQTimer( this, "mBlinkTimer" );
+ connect( mBlinkTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( slotBlink() ) );
mIsBlinkIcon = false;
//if ( !mBlinkIcon )
- // mBlinkIcon = new QPixmap( KGlobal::iconLoader()->loadIcon( QString::fromLatin1( "newmsg" ), KIcon::Small ) );
+ // mBlinkIcon = new TQPixmap( KGlobal::iconLoader()->loadIcon( TQString::fromLatin1( "newmsg" ), KIcon::Small ) );
slotConfigChanged(); // this calls slotIdleStateChanged(), which sets up the constituent components, spacing, fonts and indirectly, the contact icon
slotDisplayNameChanged();
@@ -301,9 +301,9 @@ void KopeteMetaContactLVI::movedToDifferentGroup()
}
}
-void KopeteMetaContactLVI::rename( const QString& newName )
+void KopeteMetaContactLVI::rename( const TQString& newName )
{
- QString oldName = m_metaContact->displayName();
+ TQString oldName = m_metaContact->displayName();
KopeteContactListView *lv = dynamic_cast<KopeteContactListView *>( listView() );
if ( lv )
{
@@ -380,9 +380,9 @@ void KopeteMetaContactLVI::slotContactStatusChanged( Kopete::Contact *c )
{
//int winId = KopeteSystemTray::systemTray() ? KopeteSystemTray::systemTray()->winId() : 0;
- QString text = i18n( "<qt><i>%1</i> is now %2.</qt>" )
- .arg( Kopete::Emoticons::parseEmoticons( QStyleSheet::escape(m_metaContact->displayName()) ) ,
- QStyleSheet::escape(c->onlineStatus().description()));
+ TQString text = i18n( "<qt><i>%1</i> is now %2.</qt>" )
+ .arg( Kopete::Emoticons::parseEmoticons( TQStyleSheet::escape(m_metaContact->displayName()) ) ,
+ TQStyleSheet::escape(c->onlineStatus().description()));
// figure out what's happened
enum ChangeType { noChange, noEvent, signedIn, changedStatus, signedOut };
@@ -438,11 +438,11 @@ void KopeteMetaContactLVI::slotContactStatusChanged( Kopete::Contact *c )
break;
case signedIn:
connect(KNotification::event(m_metaContact, "kopete_contact_online", text, m_metaContact->photo(), KopeteSystemTray::systemTray(), i18n( "Chat" )) ,
- SIGNAL(activated(unsigned int )) , this, SLOT( execute() ) );
+ TQT_SIGNAL(activated(unsigned int )) , this, TQT_SLOT( execute() ) );
break;
case changedStatus:
connect(KNotification::event(m_metaContact, "kopete_contact_status_change", text, m_metaContact->photo(), KopeteSystemTray::systemTray(), i18n( "Chat" )) ,
- SIGNAL(activated(unsigned int )) , this, SLOT( execute() ));
+ TQT_SIGNAL(activated(unsigned int )) , this, TQT_SLOT( execute() ));
break;
case signedOut:
KNotification::event(m_metaContact, "kopete_contact_offline", text, m_metaContact->photo(), KopeteSystemTray::systemTray());
@@ -463,7 +463,7 @@ void KopeteMetaContactLVI::slotContactStatusChanged( Kopete::Contact *c )
//So the olfStatusIcon will not be set to the real after the blink.
//we set it now.
if( !mBlinkTimer->isActive() )
- m_oldStatusIcon=d->metaContactIcon ? d->metaContactIcon->pixmap() : QPixmap();
+ m_oldStatusIcon=d->metaContactIcon ? d->metaContactIcon->pixmap() : TQPixmap();
}
// make a note of the current status for the next time we get a status change
@@ -491,7 +491,7 @@ void KopeteMetaContactLVI::execute() const
m_metaContact->execute();
//The selection is removed, but the contact still hihjlihted, remove the selection in the contactlist (see bug 106090)
- Kopete::ContactList::self()->setSelectedItems( QPtrList<Kopete::MetaContact>() , QPtrList<Kopete::Group>() );
+ Kopete::ContactList::self()->setSelectedItems( TQPtrList<Kopete::MetaContact>() , TQPtrList<Kopete::Group>() );
}
void KopeteMetaContactLVI::slotDisplayNameChanged()
@@ -513,14 +513,14 @@ void KopeteMetaContactLVI::slotPhotoChanged()
if ( d->metaContactIcon && d->currentIconMode == KopetePrefs::PhotoPic )
{
m_oldStatusIcon= d->metaContactIcon->pixmap();
- QPixmap photoPixmap;
- //QPixmap defaultIcon( KGlobal::iconLoader()->loadIcon( "vcard", KIcon::Desktop ) );
- QImage photoImg = m_metaContact->photo();
+ TQPixmap photoPixmap;
+ //TQPixmap defaultIcon( KGlobal::iconLoader()->loadIcon( "vcard", KIcon::Desktop ) );
+ TQImage photoImg = m_metaContact->photo();
if ( !photoImg.isNull() && (photoImg.width() > 0) && (photoImg.height() > 0) )
{
int photoSize = d->iconSize;
- photoImg = photoImg.smoothScale( photoSize, photoSize, QImage::ScaleMin );
+ photoImg = photoImg.smoothScale( photoSize, photoSize, TQImage::ScaleMin );
KImageEffect *effect = 0L;
switch ( m_metaContact->status() )
@@ -640,7 +640,7 @@ void KopeteMetaContactLVI::slotAddToNewGroup()
if ( m_metaContact->isTemporary() )
return;
- QString groupName = KInputDialog::getText(
+ TQString groupName = KInputDialog::getText(
i18n( "New Group" ), i18n( "Please enter the name for the new group:" ) );
if ( !groupName.isEmpty() )
@@ -668,7 +668,7 @@ void KopeteMetaContactLVI::slotConfigChanged()
}
else
{
- QFont font=listView()->font();
+ TQFont font=listView()->font();
d->nameText->setFont( font );
if(d->extraText)
{
@@ -730,8 +730,8 @@ void KopeteMetaContactLVI::setDisplayMode( int mode, int iconmode )
new VSpacerComponent( imageBox );
if(!metaContact()->photoSource() && !Kopete::KABCPersistence::self()->addressBook()->findByUid( metaContact()->metaContactId() ).isEmpty() )
{ //if the photo is the one of the kaddressbook, track every change in the adressbook, it might be the photo of our contact.
- connect( Kopete::KABCPersistence::self()->addressBook() , SIGNAL(addressBookChanged (AddressBook *) ) ,
- this , SLOT(slotPhotoChanged()));
+ connect( Kopete::KABCPersistence::self()->addressBook() , TQT_SIGNAL(addressBookChanged (AddressBook *) ) ,
+ this , TQT_SLOT(slotPhotoChanged()));
}
} else {
d->metaContactIcon = new ImageComponent( hbox );
@@ -770,13 +770,13 @@ void KopeteMetaContactLVI::setDisplayMode( int mode, int iconmode )
slotIdleStateChanged( 0 );
// finally, re-add all contacts so their icons appear. remove them first for consistency.
- QPtrList<Kopete::Contact> contacts = m_metaContact->contacts();
- for ( QPtrListIterator<Kopete::Contact> it( contacts ); it.current(); ++it )
+ TQPtrList<Kopete::Contact> contacts = m_metaContact->contacts();
+ for ( TQPtrListIterator<Kopete::Contact> it( contacts ); it.current(); ++it )
{
slotContactRemoved( *it );
slotContactAdded( *it );
}
- m_oldStatusIcon=d->metaContactIcon ? d->metaContactIcon->pixmap() : QPixmap();
+ m_oldStatusIcon=d->metaContactIcon ? d->metaContactIcon->pixmap() : TQPixmap();
if( mBlinkTimer->isActive() )
m_originalBlinkIcon=m_oldStatusIcon;
}
@@ -792,11 +792,11 @@ void KopeteMetaContactLVI::updateVisibility()
}
void KopeteMetaContactLVI::slotContactPropertyChanged( Kopete::Contact *contact,
- const QString &key, const QVariant &old, const QVariant &newVal )
+ const TQString &key, const TQVariant &old, const TQVariant &newVal )
{
-// if ( key == QString::fromLatin1("awayMessage") )
+// if ( key == TQString::fromLatin1("awayMessage") )
// kdDebug( 14000 ) << k_funcinfo << "contact=" << contact->contactId() << ", isonline=" << contact->isOnline() << ", alloffline=" << !m_metaContact->isOnline() << ", oldvalue=" << old.toString() << ", newvalue=" << newVal.toString() << endl;
- if ( key == QString::fromLatin1("awayMessage") && d->extraText && old != newVal )
+ if ( key == TQString::fromLatin1("awayMessage") && d->extraText && old != newVal )
{
bool allOffline = !m_metaContact->isOnline();
if ( newVal.toString().isEmpty() || ( !contact->isOnline() && !allOffline ) )
@@ -805,11 +805,11 @@ void KopeteMetaContactLVI::slotContactPropertyChanged( Kopete::Contact *contact,
// -new away message is empty or
// -contact who set it is offline and there are contacts online in the metacontact
bool allAwayMessagesEmpty = true;
- QPtrList<Kopete::Contact> contacts = m_metaContact->contacts();
+ TQPtrList<Kopete::Contact> contacts = m_metaContact->contacts();
for ( Kopete::Contact *c = contacts.first(); c; c = contacts.next() )
{
// kdDebug( 14000 ) << k_funcinfo << "ccontact=" << c->contactId() << ", isonline=" << c->isOnline() << ", awaymsg=" << c->property( key ).value().toString() << endl;
- QString awayMessage( c->property( key ).value().toString() );
+ TQString awayMessage( c->property( key ).value().toString() );
if ( ( allOffline || c->isOnline() ) && !awayMessage.isEmpty() )
{
// display this contact's away message when:
@@ -821,7 +821,7 @@ void KopeteMetaContactLVI::slotContactPropertyChanged( Kopete::Contact *contact,
}
}
if ( allAwayMessagesEmpty )
- d->extraText->setText( QString::null );
+ d->extraText->setText( TQString::null );
}
else
{
@@ -831,7 +831,7 @@ void KopeteMetaContactLVI::slotContactPropertyChanged( Kopete::Contact *contact,
d->extraText->setText( newVal.toString() );
}
} // wtf? KopeteMetaContact also connects this signals and emits photoChanged! why no connect photoChanged to slotPhotoChanged?
- /*else if ( key == QString::fromLatin1("photo") && (m_metaContact->photoSourceContact() == contact) && (m_metaContact->photoSource() == Kopete::MetaContact::SourceContact))
+ /*else if ( key == TQString::fromLatin1("photo") && (m_metaContact->photoSourceContact() == contact) && (m_metaContact->photoSource() == Kopete::MetaContact::SourceContact))
{
slotPhotoChanged();
}*/
@@ -839,46 +839,46 @@ void KopeteMetaContactLVI::slotContactPropertyChanged( Kopete::Contact *contact,
void KopeteMetaContactLVI::slotContactAdded( Kopete::Contact *c )
{
- connect( c, SIGNAL( propertyChanged( Kopete::Contact *, const QString &,
- const QVariant &, const QVariant & ) ),
- this, SLOT( slotContactPropertyChanged( Kopete::Contact *, const QString &,
- const QVariant &, const QVariant & ) ) );
- connect( c->account() , SIGNAL( colorChanged(const QColor& ) ) , this, SLOT( updateContactIcons() ) );
+ connect( c, TQT_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &,
+ const TQVariant &, const TQVariant & ) ),
+ this, TQT_SLOT( slotContactPropertyChanged( Kopete::Contact *, const TQString &,
+ const TQVariant &, const TQVariant & ) ) );
+ connect( c->account() , TQT_SIGNAL( colorChanged(const TQColor& ) ) , this, TQT_SLOT( updateContactIcons() ) );
updateContactIcon( c );
- slotContactPropertyChanged( c, QString::fromLatin1("awayMessage"),
- QVariant(), c->property( QString::fromLatin1("awayMessage") ).value() );
+ slotContactPropertyChanged( c, TQString::fromLatin1("awayMessage"),
+ TQVariant(), c->property( TQString::fromLatin1("awayMessage") ).value() );
}
void KopeteMetaContactLVI::slotContactRemoved( Kopete::Contact *c )
{
- disconnect( c, SIGNAL( propertyChanged( Kopete::Contact *, const QString &,
- const QVariant &, const QVariant & ) ),
- this, SLOT( slotContactPropertyChanged( Kopete::Contact *,
- const QString &, const QVariant &, const QVariant & ) ) );
- disconnect( c->account() , SIGNAL( colorChanged(const QColor& ) ) , this, SLOT( updateContactIcons() ) );
+ disconnect( c, TQT_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &,
+ const TQVariant &, const TQVariant & ) ),
+ this, TQT_SLOT( slotContactPropertyChanged( Kopete::Contact *,
+ const TQString &, const TQVariant &, const TQVariant & ) ) );
+ disconnect( c->account() , TQT_SIGNAL( colorChanged(const TQColor& ) ) , this, TQT_SLOT( updateContactIcons() ) );
if ( ListView::Component *comp = contactComponent( c ) )
delete comp;
- slotContactPropertyChanged( c, QString::fromLatin1("awayMessage"),
- c->property( QString::fromLatin1("awayMessage") ).value(), QVariant() );
+ slotContactPropertyChanged( c, TQString::fromLatin1("awayMessage"),
+ c->property( TQString::fromLatin1("awayMessage") ).value(), TQVariant() );
}
void KopeteMetaContactLVI::updateContactIcons()
{
// show offline contacts setting may have changed
- QPtrList<Kopete::Contact> contacts = m_metaContact->contacts();
- for ( QPtrListIterator<Kopete::Contact> it( contacts ); it.current(); ++it )
+ TQPtrList<Kopete::Contact> contacts = m_metaContact->contacts();
+ for ( TQPtrListIterator<Kopete::Contact> it( contacts ); it.current(); ++it )
updateContactIcon( *it );
}
void KopeteMetaContactLVI::updateContactIcon( Kopete::Contact *c )
{
- KGlobal::config()->setGroup( QString::fromLatin1("ContactList") );
+ KGlobal::config()->setGroup( TQString::fromLatin1("ContactList") );
bool bHideOffline = KGlobal::config()->readBoolEntry(
- QString::fromLatin1("HideOfflineContacts"), false );
+ TQString::fromLatin1("HideOfflineContacts"), false );
if ( KopetePrefs::prefs()->showOffline() )
bHideOffline = false;
@@ -892,7 +892,7 @@ void KopeteMetaContactLVI::updateContactIcon( Kopete::Contact *c )
comp->updatePixmap();
}
-Kopete::Contact *KopeteMetaContactLVI::contactForPoint( const QPoint &p ) const
+Kopete::Contact *KopeteMetaContactLVI::contactForPoint( const TQPoint &p ) const
{
if ( ListView::ContactComponent *comp = dynamic_cast<ListView::ContactComponent*>( d->contactIconBox->componentAt( p ) ) )
return comp->contact();
@@ -912,11 +912,11 @@ ListView::ContactComponent *KopeteMetaContactLVI::contactComponent( const Kopete
return 0;
}
-QRect KopeteMetaContactLVI::contactRect( const Kopete::Contact *c ) const
+TQRect KopeteMetaContactLVI::contactRect( const Kopete::Contact *c ) const
{
if ( ListView::Component *comp = contactComponent( c ) )
return comp->rect();
- return QRect();
+ return TQRect();
}
Kopete::Group *KopeteMetaContactLVI::group()
@@ -927,7 +927,7 @@ Kopete::Group *KopeteMetaContactLVI::group()
return Kopete::Group::topLevel();
}
-QString KopeteMetaContactLVI::key( int, bool ) const
+TQString KopeteMetaContactLVI::key( int, bool ) const
{
char importanceChar;
switch ( m_metaContact->status() )
@@ -988,10 +988,10 @@ void KopeteMetaContactLVI::slotIdleStateChanged( Kopete::Contact *c )
{
m_oldStatusIcon=d->metaContactIcon->pixmap();
- QPixmap icon = SmallIcon( m_metaContact->statusIcon(), d->iconSize );
+ TQPixmap icon = SmallIcon( m_metaContact->statusIcon(), d->iconSize );
if ( doWeHaveToGrayThatContact )
{
- // TODO: QPixmapCache this result
+ // TODO: TQPixmapCache this result
KIconEffect::semiTransparent( icon );
}
@@ -1011,13 +1011,13 @@ void KopeteMetaContactLVI::catchEvent( Kopete::MessageEvent *event )
{
d->events.append( event );
- connect( event, SIGNAL( done( Kopete::MessageEvent* ) ),
- this, SLOT( slotEventDone( Kopete::MessageEvent * ) ) );
+ connect( event, TQT_SIGNAL( done( Kopete::MessageEvent* ) ),
+ this, TQT_SLOT( slotEventDone( Kopete::MessageEvent * ) ) );
if ( mBlinkTimer->isActive() )
mBlinkTimer->stop();
- m_oldStatusIcon= d->metaContactIcon ? d->metaContactIcon->pixmap() : QPixmap();
+ m_oldStatusIcon= d->metaContactIcon ? d->metaContactIcon->pixmap() : TQPixmap();
mBlinkTimer->start( 400, false );
@@ -1035,9 +1035,9 @@ void KopeteMetaContactLVI::slotBlink()
if ( !haveEvent && m_blinkLeft <= 0 )
{
mBlinkTimer->stop();
- m_oldStatusIcon=d->metaContactIcon ? d->metaContactIcon->pixmap() : QPixmap();
+ m_oldStatusIcon=d->metaContactIcon ? d->metaContactIcon->pixmap() : TQPixmap();
updateVisibility();
- m_originalBlinkIcon=QPixmap(); //i hope this help to reduce memory consuption
+ m_originalBlinkIcon=TQPixmap(); //i hope this help to reduce memory consuption
}
}
else
@@ -1076,12 +1076,12 @@ void KopeteMetaContactLVI::slotEventDone( Kopete::MessageEvent *event )
if(d->metaContactIcon)
d->metaContactIcon->setPixmap( m_originalBlinkIcon );
- m_originalBlinkIcon=QPixmap(); //i hope this help to reduce memory consuption
+ m_originalBlinkIcon=TQPixmap(); //i hope this help to reduce memory consuption
mIsBlinkIcon = false;
}
}
-QString KopeteMetaContactLVI::text( int column ) const
+TQString KopeteMetaContactLVI::text( int column ) const
{
if ( column == 0 )
return d->nameText->text();
@@ -1089,7 +1089,7 @@ QString KopeteMetaContactLVI::text( int column ) const
return KListViewItem::text( column );
}
-void KopeteMetaContactLVI::setText( int column, const QString &text )
+void KopeteMetaContactLVI::setText( int column, const TQString &text )
{
if ( column == 0 )
rename( text );