summaryrefslogtreecommitdiffstats
path: root/kopete/kopete/contactlist
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/kopete/contactlist')
-rw-r--r--kopete/kopete/contactlist/customnotificationprops.cpp28
-rw-r--r--kopete/kopete/contactlist/customnotificationprops.h6
-rw-r--r--kopete/kopete/contactlist/kabcexport.cpp60
-rw-r--r--kopete/kopete/contactlist/kabcexport.h8
-rw-r--r--kopete/kopete/contactlist/kopeteaddrbookexport.cpp46
-rw-r--r--kopete/kopete/contactlist/kopeteaddrbookexport.h18
-rw-r--r--kopete/kopete/contactlist/kopetecontactlistview.cpp352
-rw-r--r--kopete/kopete/contactlist/kopetecontactlistview.h62
-rw-r--r--kopete/kopete/contactlist/kopetegrouplistaction.cpp18
-rw-r--r--kopete/kopete/contactlist/kopetegrouplistaction.h6
-rw-r--r--kopete/kopete/contactlist/kopetegroupviewitem.cpp36
-rw-r--r--kopete/kopete/contactlist/kopetegroupviewitem.h16
-rw-r--r--kopete/kopete/contactlist/kopetelviprops.cpp148
-rw-r--r--kopete/kopete/contactlist/kopetelviprops.h10
-rw-r--r--kopete/kopete/contactlist/kopetemetacontactlvi.cpp226
-rw-r--r--kopete/kopete/contactlist/kopetemetacontactlvi.h40
-rw-r--r--kopete/kopete/contactlist/kopetestatusgroupviewitem.cpp6
-rw-r--r--kopete/kopete/contactlist/kopetestatusgroupviewitem.h4
18 files changed, 545 insertions, 545 deletions
diff --git a/kopete/kopete/contactlist/customnotificationprops.cpp b/kopete/kopete/contactlist/customnotificationprops.cpp
index 87833fa7..2f341426 100644
--- a/kopete/kopete/contactlist/customnotificationprops.cpp
+++ b/kopete/kopete/contactlist/customnotificationprops.cpp
@@ -18,9 +18,9 @@
*************************************************************************
*/
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qlineedit.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqlineedit.h>
#include <kdebug.h>
#include <kconfig.h>
@@ -33,32 +33,32 @@
#include "customnotificationprops.h"
-CustomNotificationProps::CustomNotificationProps( QWidget *parent, Kopete::NotifyDataObject* item, const char * name )
-: QObject( parent, name )
+CustomNotificationProps::CustomNotificationProps( TQWidget *parent, Kopete::NotifyDataObject* item, const char * name )
+: TQObject( parent, name )
{
m_notifyWidget = new CustomNotificationWidget( parent, "notificationWidget" );
m_item = item;
- QString path = "kopete/eventsrc";
+ TQString path = "kopete/eventsrc";
KConfig eventsfile( path, true, false, "data" );
m_eventList = eventsfile.groupList();
- QStringList contactSpecificEvents; // we are only interested in events that relate to contacts
- QStringList::Iterator it = m_eventList.begin();
- QStringList::Iterator end = m_eventList.end();
+ TQStringList contactSpecificEvents; // we are only interested in events that relate to contacts
+ TQStringList::Iterator it = m_eventList.begin();
+ TQStringList::Iterator end = m_eventList.end();
for ( ; it != end; ++it )
{
- if ( !(*it).startsWith( QString::fromLatin1( "kopete_contact_" ) ) )
+ if ( !(*it).startsWith( TQString::fromLatin1( "kopete_contact_" ) ) )
continue;
contactSpecificEvents.append( *it );
- QMap<QString, QString> entries = eventsfile.entryMap( *it );
+ TQMap<TQString, TQString> entries = eventsfile.entryMap( *it );
eventsfile.setGroup( *it );
- QString comment = eventsfile.readEntry( "Comment", QString::fromLatin1( "Found nothing!" ) );
+ TQString comment = eventsfile.readEntry( "Comment", TQString::fromLatin1( "Found nothing!" ) );
m_notifyWidget->cmbEvents->insertItem( comment );
}
m_eventList = contactSpecificEvents;
slotEventsComboChanged( m_notifyWidget->cmbEvents->currentItem() );
// we have to do this after adding items
- connect( m_notifyWidget->cmbEvents, SIGNAL( activated( int ) ), this, SLOT( slotEventsComboChanged( int ) ) );
+ connect( m_notifyWidget->cmbEvents, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotEventsComboChanged( int ) ) );
}
void CustomNotificationProps::slotEventsComboChanged( int itemNo )
@@ -152,7 +152,7 @@ void CustomNotificationProps::storeCurrentCustoms()
evt->setPresentation( Kopete::EventPresentation::Message, eventNotify );
// set chat attributes
eventNotify = new Kopete::EventPresentation( Kopete::EventPresentation::Chat,
- QString::null,
+ TQString::null,
m_notifyWidget->chkChatSS->isChecked(),
m_notifyWidget->chkCustomChat->isChecked() );
evt->setPresentation( Kopete::EventPresentation::Chat, eventNotify );
diff --git a/kopete/kopete/contactlist/customnotificationprops.h b/kopete/kopete/contactlist/customnotificationprops.h
index 5d6c1dea..f28ada4c 100644
--- a/kopete/kopete/contactlist/customnotificationprops.h
+++ b/kopete/kopete/contactlist/customnotificationprops.h
@@ -31,7 +31,7 @@ class CustomNotificationProps : public QObject
{
Q_OBJECT
public:
- CustomNotificationProps( QWidget *parent, Kopete::NotifyDataObject* item, const char * name = 0 );
+ CustomNotificationProps( TQWidget *parent, Kopete::NotifyDataObject* item, const char * name = 0 );
~CustomNotificationProps() {}
void dumpData();
void resetEventWidgets();
@@ -44,8 +44,8 @@ protected slots:
private:
CustomNotificationWidget* m_notifyWidget;
Kopete::NotifyDataObject * m_item;
- QStringList m_eventList;
- QString m_event;
+ TQStringList m_eventList;
+ TQString m_event;
};
#endif
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 ) );
}
diff --git a/kopete/kopete/contactlist/kabcexport.h b/kopete/kopete/contactlist/kabcexport.h
index bad1d8e6..0ebfb75b 100644
--- a/kopete/kopete/contactlist/kabcexport.h
+++ b/kopete/kopete/contactlist/kabcexport.h
@@ -37,20 +37,20 @@ class KabcExportWizard : public KabcExportWizard_Base
{
Q_OBJECT
public:
- KabcExportWizard( QWidget *parent = 0, const char *name = 0 );
+ KabcExportWizard( TQWidget *parent = 0, const char *name = 0 );
~KabcExportWizard();
public slots:
void accept();
protected slots:
void slotDeselectAll();
void slotSelectAll();
- void slotResourceSelectionChanged( QListBoxItem * lbi );
+ void slotResourceSelectionChanged( TQListBoxItem * lbi );
protected:
void exportDetails( Kopete::MetaContact * mc, KABC::Addressee & addr );
private:
KABC::AddressBook* m_addressBook;
- QMap<int, KABC::Resource*> m_resourceMap;
- QMap<int, Kopete::MetaContact*> m_contactMap;
+ TQMap<int, KABC::Resource*> m_resourceMap;
+ TQMap<int, Kopete::MetaContact*> m_contactMap;
};
#endif
diff --git a/kopete/kopete/contactlist/kopeteaddrbookexport.cpp b/kopete/kopete/contactlist/kopeteaddrbookexport.cpp
index d752f71e..bcb9c434 100644
--- a/kopete/kopete/contactlist/kopeteaddrbookexport.cpp
+++ b/kopete/kopete/contactlist/kopeteaddrbookexport.cpp
@@ -19,8 +19,8 @@
*/
#include <kabc/phonenumber.h>
-#include <qcombobox.h>
-#include <qlabel.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
#include <kdialogbase.h>
#include <kiconloader.h>
@@ -35,7 +35,7 @@
#include "kopeteaddrbookexport.h"
#include "kopeteaddrbookexportui.h"
-KopeteAddressBookExport::KopeteAddressBookExport( QWidget *parent, Kopete::MetaContact *mc ) : QObject( parent )
+KopeteAddressBookExport::KopeteAddressBookExport( TQWidget *parent, Kopete::MetaContact *mc ) : TQObject( parent )
{
// instantiate dialog and populate widgets
mParent = parent;
@@ -69,30 +69,30 @@ void KopeteAddressBookExport::fetchKABCData()
mAddrBookIcon = SmallIcon( "kaddressbook" );
// given name
- QString given = mAddressee.givenName();
+ TQString given = mAddressee.givenName();
if ( !given.isEmpty() )
mUI->mFirstName->insertItem( mAddrBookIcon, given );
else
mUI->mFirstName->insertItem( mAddrBookIcon, i18n("<Not Set>") );
// family name
- QString family = mAddressee.familyName();
+ TQString family = mAddressee.familyName();
if ( !family.isEmpty() )
mUI->mLastName->insertItem( mAddrBookIcon, family );
else
mUI->mLastName->insertItem( mAddrBookIcon, i18n("<Not Set>") );
// url
- QString url = mAddressee.url().url();
+ TQString url = mAddressee.url().url();
if ( !url.isEmpty() )
mUI->mUrl->insertItem( mAddrBookIcon, url );
else
mUI->mUrl->insertItem( mAddrBookIcon, i18n("<Not Set>") );
// emails
- QStringList emails = mAddressee.emails();
+ TQStringList emails = mAddressee.emails();
numEmails = emails.count();
- for ( QStringList::Iterator it = emails.begin(); it != emails.end(); ++it )
+ for ( TQStringList::Iterator it = emails.begin(); it != emails.end(); ++it )
mUI->mEmails->insertItem( mAddrBookIcon, *it );
if ( numEmails == 0 )
{
@@ -123,13 +123,13 @@ void KopeteAddressBookExport::fetchPhoneNumbers( KListBox * listBox, int type, u
void KopeteAddressBookExport::fetchIMData()
{
- QPtrList<Kopete::Contact> contacts = mMetaContact->contacts();
- QPtrListIterator<Kopete::Contact> cit( contacts );
+ TQPtrList<Kopete::Contact> contacts = mMetaContact->contacts();
+ TQPtrListIterator<Kopete::Contact> cit( contacts );
for( ; cit.current(); ++cit )
{
// for each contact, get the property content
Kopete::Contact* c = cit.current();
- QPixmap contactIcon = c->account()->accountIcon( 16 );
+ TQPixmap contactIcon = c->account()->accountIcon( 16 );
// given name
populateIM( c, contactIcon, mUI->mFirstName, Kopete::Global::Properties::self()->firstName() );
// family name
@@ -147,7 +147,7 @@ void KopeteAddressBookExport::fetchIMData()
}
}
-void KopeteAddressBookExport::populateIM( const Kopete::Contact *contact, const QPixmap &icon, QComboBox *combo, const Kopete::ContactPropertyTmpl &property )
+void KopeteAddressBookExport::populateIM( const Kopete::Contact *contact, const TQPixmap &icon, TQComboBox *combo, const Kopete::ContactPropertyTmpl &property )
{
Kopete::ContactProperty prop = contact->property( property );
if ( !prop.isNull() )
@@ -156,7 +156,7 @@ void KopeteAddressBookExport::populateIM( const Kopete::Contact *contact, const
}
}
-void KopeteAddressBookExport::populateIM( const Kopete::Contact *contact, const QPixmap &icon, KListBox *listBox, const Kopete::ContactPropertyTmpl &property )
+void KopeteAddressBookExport::populateIM( const Kopete::Contact *contact, const TQPixmap &icon, KListBox *listBox, const Kopete::ContactPropertyTmpl &property )
{
Kopete::ContactProperty prop = contact->property( property );
if ( !prop.isNull() )
@@ -178,7 +178,7 @@ int KopeteAddressBookExport::showDialog()
mUI = new AddressBookExportUI( mDialog );
mDialog->setMainWidget( mUI );
mDialog->setButtonOK( KGuiItem( i18n( "Export" ),
- QString::null, i18n( "Set address book fields using the selected data from Kopete" ) ) );
+ TQString::null, i18n( "Set address book fields using the selected data from Kopete" ) ) );
initLabels();
// fetch existing data from kabc
@@ -189,7 +189,7 @@ int KopeteAddressBookExport::showDialog()
return mDialog->exec();
}
else
- return QDialog::Rejected;
+ return TQDialog::Rejected;
}
void KopeteAddressBookExport::exportData()
@@ -216,31 +216,31 @@ void KopeteAddressBookExport::exportData()
mAddressee.setUrl( KURL( mUI->mUrl->currentText() ) );
}
- QStringList newVals;
+ TQStringList newVals;
// email
newVals = newValues( mUI->mEmails, numEmails );
- for ( QStringList::Iterator it = newVals.begin(); it != newVals.end(); ++it )
+ for ( TQStringList::Iterator it = newVals.begin(); it != newVals.end(); ++it )
{
dirty = true;
mAddressee.insertEmail( *it );
}
// home phone
newVals = newValues( mUI->mHomePhones, numHomePhones );
- for ( QStringList::Iterator it = newVals.begin(); it != newVals.end(); ++it )
+ for ( TQStringList::Iterator it = newVals.begin(); it != newVals.end(); ++it )
{
dirty = true;
mAddressee.insertPhoneNumber( KABC::PhoneNumber( *it, KABC::PhoneNumber::Home ) );
}
// work phone
newVals = newValues( mUI->mWorkPhones, numWorkPhones );
- for ( QStringList::Iterator it = newVals.begin(); it != newVals.end(); ++it )
+ for ( TQStringList::Iterator it = newVals.begin(); it != newVals.end(); ++it )
{
dirty = true;
mAddressee.insertPhoneNumber( KABC::PhoneNumber( *it, KABC::PhoneNumber::Work ) );
}
// mobile
newVals = newValues( mUI->mMobilePhones, numMobilePhones );
- for ( QStringList::Iterator it = newVals.begin(); it != newVals.end(); ++it )
+ for ( TQStringList::Iterator it = newVals.begin(); it != newVals.end(); ++it )
{
dirty = true;
mAddressee.insertPhoneNumber( KABC::PhoneNumber( *it, KABC::PhoneNumber::Cell ) );
@@ -266,7 +266,7 @@ void KopeteAddressBookExport::exportData()
}
}
-bool KopeteAddressBookExport::newValue( QComboBox *combo )
+bool KopeteAddressBookExport::newValue( TQComboBox *combo )
{
// all data in position 0 is from KABC, so if position 0 is selected,
// or if the selection is the same as the data at 0, return false
@@ -274,9 +274,9 @@ bool KopeteAddressBookExport::newValue( QComboBox *combo )
( combo->text( combo->currentItem() ) == combo->text( 0 ) ) );
}
-QStringList KopeteAddressBookExport::newValues( KListBox *listBox, uint counter )
+TQStringList KopeteAddressBookExport::newValues( KListBox *listBox, uint counter )
{
- QStringList newValues;
+ TQStringList newValues;
// need to iterate all items except those from KABC and check if selected and not same as the first
// counter is the number of KABC items, and hence the index of the first non KABC item
for ( uint i = counter; i < listBox->count(); ++i )
diff --git a/kopete/kopete/contactlist/kopeteaddrbookexport.h b/kopete/kopete/contactlist/kopeteaddrbookexport.h
index b4437c4e..131dad96 100644
--- a/kopete/kopete/contactlist/kopeteaddrbookexport.h
+++ b/kopete/kopete/contactlist/kopeteaddrbookexport.h
@@ -40,12 +40,12 @@ class MetaContact;
class KopeteAddressBookExport : public QObject
{
public:
- KopeteAddressBookExport( QWidget *parent, Kopete::MetaContact *mc );
+ KopeteAddressBookExport( TQWidget *parent, Kopete::MetaContact *mc );
~KopeteAddressBookExport();
/**
* Display the dialog
- * @return a QDialog return code
+ * @return a TQDialog return code
*/
int showDialog();
/**
@@ -73,22 +73,22 @@ protected:
/**
* Populate a combobox with a contact's IM data
*/
- void populateIM( const Kopete::Contact *contact, const QPixmap &icon,
- QComboBox *combo, const Kopete::ContactPropertyTmpl &property );
+ void populateIM( const Kopete::Contact *contact, const TQPixmap &icon,
+ TQComboBox *combo, const Kopete::ContactPropertyTmpl &property );
/**
* Populate a listbox with a contact's IM data
*/
- void populateIM( const Kopete::Contact *contact, const QPixmap &icon,
+ void populateIM( const Kopete::Contact *contact, const TQPixmap &icon,
KListBox *combo, const Kopete::ContactPropertyTmpl &property );
/** Check the selected item is not the first (existing KABC) item, or the same as it */
- bool newValue( QComboBox *combo );
- QStringList newValues( KListBox *listBox, uint counter );
+ bool newValue( TQComboBox *combo );
+ TQStringList newValues( KListBox *listBox, uint counter );
// the GUI
- QWidget *mParent;
+ TQWidget *mParent;
KDialogBase * mDialog;
- QPixmap mAddrBookIcon;
+ TQPixmap mAddrBookIcon;
AddressBookExportUI *mUI;
Kopete::MetaContact *mMetaContact;
KABC::AddressBook *mAddressBook;
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;
diff --git a/kopete/kopete/contactlist/kopetecontactlistview.h b/kopete/kopete/contactlist/kopetecontactlistview.h
index 43c60ebe..4c5a8d37 100644
--- a/kopete/kopete/contactlist/kopetecontactlistview.h
+++ b/kopete/kopete/contactlist/kopetecontactlistview.h
@@ -27,12 +27,12 @@
#include "kopetelistview.h"
#include "kopetemetacontact.h"
-#include <qpixmap.h>
-#include <qptrlist.h>
-#include <qstringlist.h>
-#include <qrect.h>
-#include <qtimer.h>
-#include <qguardedptr.h>
+#include <tqpixmap.h>
+#include <tqptrlist.h>
+#include <tqstringlist.h>
+#include <tqrect.h>
+#include <tqtimer.h>
+#include <tqguardedptr.h>
class KopeteMetaContactLVI;
class KopeteGroupViewItem;
@@ -61,7 +61,7 @@ class KopeteContactListView : public Kopete::UI::ListView::ListView
Q_OBJECT
public:
- KopeteContactListView( QWidget *parent = 0, const char *name = 0 );
+ KopeteContactListView( TQWidget *parent = 0, const char *name = 0 );
~KopeteContactListView();
/**
@@ -72,7 +72,7 @@ public:
/**
* Add a given group name and return it
*/
- void addGroup( const QString &groupName );
+ void addGroup( const TQString &groupName );
/**
* Are we displaying as a tree view (true), or in a flat list (false)?
@@ -92,26 +92,26 @@ public slots:
void addGroup();
protected:
- virtual void contentsMousePressEvent( QMouseEvent *e );
+ virtual void contentsMousePressEvent( TQMouseEvent *e );
- virtual bool acceptDrag(QDropEvent *e) const;
+ virtual bool acceptDrag(TQDropEvent *e) const;
/**
* Start a drag operation
- * @return a KMultipleDrag containing: 1) A QStoredDrag of type "application/x-qlistviewitem", 2) If the MC is associated with a KABC entry, i) a QTextDrag containing their email address, and ii) their vCard representation.
+ * @return a KMultipleDrag containing: 1) A TQStoredDrag of type "application/x-qlistviewitem", 2) If the MC is associated with a KABC entry, i) a TQTextDrag containing their email address, and ii) their vCard representation.
*/
- virtual QDragObject *dragObject();
+ virtual TQDragObject *dragObject();
/**
* 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
*/
- virtual void findDrop(const QPoint &pos, QListViewItem *&parent, QListViewItem *&after);
+ virtual void findDrop(const TQPoint &pos, TQListViewItem *&parent, TQListViewItem *&after);
/**
* The selected items have changed; update our actions to show what's possible.
*/
- void updateActionsForSelection( QPtrList<Kopete::MetaContact> contacts, QPtrList<Kopete::Group> groups );
+ void updateActionsForSelection( TQPtrList<Kopete::MetaContact> contacts, TQPtrList<Kopete::Group> groups );
private slots:
/**
@@ -126,13 +126,13 @@ private slots:
void slotViewSelectionChanged();
void slotListSelectionChanged();
- void slotContextMenu(KListView*,QListViewItem *item, const QPoint &point );
- void slotExpanded( QListViewItem *item );
- void slotCollapsed( QListViewItem *item );
+ void slotContextMenu(KListView*,TQListViewItem *item, const TQPoint &point );
+ void slotExpanded( TQListViewItem *item );
+ void slotCollapsed( TQListViewItem *item );
void slotSettingsChanged( void );
void slotUpdateAllGroupIcons();
- void slotExecuted( QListViewItem *item, const QPoint &pos, int c );
+ void slotExecuted( TQListViewItem *item, const TQPoint &pos, int c );
void slotAddedToGroup( Kopete::MetaContact *mc, Kopete::Group *to );
void slotRemovedFromGroup( Kopete::MetaContact *mc, Kopete::Group *from );
@@ -149,7 +149,7 @@ private slots:
void slotContactStatusChanged( Kopete::MetaContact *mc );
- void slotDropped(QDropEvent *e, QListViewItem *parent, QListViewItem*);
+ void slotDropped(TQDropEvent *e, TQListViewItem *parent, TQListViewItem*);
void slotShowAddContactDialog();
void slotNewMessageEvent(Kopete::MessageEvent *);
@@ -157,7 +157,7 @@ private slots:
/**
* Handle renamed items by renaming the meta contact
*/
- void slotItemRenamed( QListViewItem *item );
+ void slotItemRenamed( TQListViewItem *item );
/** Actions related slots **/
void slotSendMessage();
@@ -180,15 +180,15 @@ private:
bool mShowAsTree;
// TODO: do we really need to store these?
- QPtrList<KopeteMetaContactLVI> m_selectedContacts;
- QPtrList<KopeteGroupViewItem> m_selectedGroups;
+ TQPtrList<KopeteMetaContactLVI> m_selectedContacts;
+ TQPtrList<KopeteGroupViewItem> m_selectedGroups;
bool mSortByGroup;
KRootPixmap *root;
- QRect m_onItem;
+ TQRect m_onItem;
- QPoint m_startDragPos;
+ TQPoint m_startDragPos;
/* ACTIONS */
KAction *actionSendMessage;
@@ -209,29 +209,29 @@ private:
void moveDraggedContactToGroup( Kopete::MetaContact *contact, Kopete::Group *from, Kopete::Group *to );
void addDraggedContactToGroup( Kopete::MetaContact *contact, Kopete::Group *group );
void addDraggedContactToMetaContact( Kopete::Contact *contact, Kopete::MetaContact *parent );
- void addDraggedContactByInfo( const QString &protocolId, const QString &accountId,
- const QString &contactId, QListViewItem *after );
+ void addDraggedContactByInfo( const TQString &protocolId, const TQString &accountId,
+ const TQString &contactId, TQListViewItem *after );
public:
struct UndoItem;
UndoItem *m_undo;
UndoItem *m_redo;
void insertUndoItem(UndoItem *u);
- QTimer undoTimer;
+ TQTimer undoTimer;
public:
// This is public so the chatwinodw can handle sub actions
// FIXME: do we not believe in accessor functions any more?
KActionMenu *actionAddContact;
- QMap<const Kopete::Account *, KAction *> m_accountAddContactMap;
+ TQMap<const Kopete::Account *, KAction *> m_accountAddContactMap;
};
struct KopeteContactListView::UndoItem
{
enum Type { MetaContactAdd, MetaContactRemove , MetaContactCopy , MetaContactRename, MetaContactChange, ContactAdd, GroupRename } type;
- QStringList args;
- QGuardedPtr<Kopete::MetaContact> metacontact;
- QGuardedPtr<Kopete::Group> group;
+ TQStringList args;
+ TQGuardedPtr<Kopete::MetaContact> metacontact;
+ TQGuardedPtr<Kopete::Group> group;
UndoItem *next;
bool isStep;
Kopete::MetaContact::PropertySource nameSource;
diff --git a/kopete/kopete/contactlist/kopetegrouplistaction.cpp b/kopete/kopete/contactlist/kopetegrouplistaction.cpp
index 1556f9b6..802df117 100644
--- a/kopete/kopete/contactlist/kopetegrouplistaction.cpp
+++ b/kopete/kopete/contactlist/kopetegrouplistaction.cpp
@@ -29,15 +29,15 @@
#include "kopetecontactlist.h"
#include "kopetegroup.h"
-KopeteGroupListAction::KopeteGroupListAction( const QString &text, const QString &pix, const KShortcut &cut, const QObject *receiver,
- const char *slot, QObject *parent, const char *name )
+KopeteGroupListAction::KopeteGroupListAction( const TQString &text, const TQString &pix, const KShortcut &cut, const TQObject *receiver,
+ const char *slot, TQObject *parent, const char *name )
: KListAction( text, pix, cut, parent, name )
{
- connect( this, SIGNAL( activated() ), receiver, slot );
+ connect( this, TQT_SIGNAL( activated() ), receiver, slot );
- connect( Kopete::ContactList::self(), SIGNAL( groupAdded( Kopete::Group * ) ), this, SLOT( slotUpdateList() ) );
- connect( Kopete::ContactList::self(), SIGNAL( groupRemoved( Kopete::Group * ) ), this, SLOT( slotUpdateList() ) );
- connect( Kopete::ContactList::self(), SIGNAL( groupRenamed(Kopete::Group*, const QString& ) ), this, SLOT( slotUpdateList() ) );
+ connect( Kopete::ContactList::self(), TQT_SIGNAL( groupAdded( Kopete::Group * ) ), this, TQT_SLOT( slotUpdateList() ) );
+ connect( Kopete::ContactList::self(), TQT_SIGNAL( groupRemoved( Kopete::Group * ) ), this, TQT_SLOT( slotUpdateList() ) );
+ connect( Kopete::ContactList::self(), TQT_SIGNAL( groupRenamed(Kopete::Group*, const TQString& ) ), this, TQT_SLOT( slotUpdateList() ) );
slotUpdateList();
}
@@ -47,10 +47,10 @@ KopeteGroupListAction::~KopeteGroupListAction()
void KopeteGroupListAction::slotUpdateList()
{
- QStringList groupList;
+ TQStringList groupList;
// Add groups to our list
- QPtrList<Kopete::Group> groups = Kopete::ContactList::self()->groups();
+ TQPtrList<Kopete::Group> groups = Kopete::ContactList::self()->groups();
for ( Kopete::Group *it = groups.first(); it; it = groups.next() )
{
if(it->type() == Kopete::Group::Normal)
@@ -58,7 +58,7 @@ void KopeteGroupListAction::slotUpdateList()
}
groupList.sort();
- groupList.prepend(QString::null); //add a separator;
+ groupList.prepend(TQString::null); //add a separator;
groupList.prepend( i18n("Top Level") ); //the top-level group, with the id 0
setItems( groupList );
}
diff --git a/kopete/kopete/contactlist/kopetegrouplistaction.h b/kopete/kopete/contactlist/kopetegrouplistaction.h
index 3576f3ed..2b852632 100644
--- a/kopete/kopete/contactlist/kopetegrouplistaction.h
+++ b/kopete/kopete/contactlist/kopetegrouplistaction.h
@@ -31,14 +31,14 @@ class KopeteGroupListAction : public KListAction
Q_OBJECT
public:
- KopeteGroupListAction( const QString &, const QString &, const KShortcut &,
- const QObject *, const char *, QObject *, const char * );
+ KopeteGroupListAction( const TQString &, const TQString &, const KShortcut &,
+ const TQObject *, const char *, TQObject *, const char * );
~KopeteGroupListAction();
protected slots:
void slotUpdateList();
private:
- QStringList m_groupList;
+ TQStringList m_groupList;
};
#endif
diff --git a/kopete/kopete/contactlist/kopetegroupviewitem.cpp b/kopete/kopete/contactlist/kopetegroupviewitem.cpp
index 21b1cf79..6b65b0ef 100644
--- a/kopete/kopete/contactlist/kopetegroupviewitem.cpp
+++ b/kopete/kopete/contactlist/kopetegroupviewitem.cpp
@@ -16,7 +16,7 @@
*************************************************************************
*/
-#include <qpainter.h>
+#include <tqpainter.h>
#include <klocale.h>
#include <kiconloader.h>
@@ -55,7 +55,7 @@ public:
: group( gp )
{
}
- QString operator()( ComponentBase *, const QPoint &, QRect & )
+ TQString operator()( ComponentBase *, const TQPoint &, TQRect & )
{
return group->toolTip();
}
@@ -67,14 +67,14 @@ private:
} // END namespace UI
} // END namespace Kopete
-KopeteGroupViewItem::KopeteGroupViewItem( Kopete::Group *group_, QListView *parent, const char *name )
+KopeteGroupViewItem::KopeteGroupViewItem( Kopete::Group *group_, TQListView *parent, const char *name )
: Kopete::UI::ListView::Item( parent, group_, name )
{
m_group = group_;
initLVI();
}
-KopeteGroupViewItem::KopeteGroupViewItem( Kopete::Group *group_, QListViewItem *parent, const char *name )
+KopeteGroupViewItem::KopeteGroupViewItem( Kopete::Group *group_, TQListViewItem *parent, const char *name )
: Kopete::UI::ListView::Item( parent, group_, name )
{
m_group = group_;
@@ -102,14 +102,14 @@ void KopeteGroupViewItem::initLVI()
d->name->setToolTipSource( d->toolTipSource.get() );
d->count->setToolTipSource( d->toolTipSource.get() );
- connect( m_group, SIGNAL( displayNameChanged( Kopete::Group*, const QString& ) ),
- this, SLOT( refreshDisplayName() ) );
+ connect( m_group, TQT_SIGNAL( displayNameChanged( Kopete::Group*, const TQString& ) ),
+ this, TQT_SLOT( refreshDisplayName() ) );
- connect( KopetePrefs::prefs(), SIGNAL( contactListAppearanceChanged() ),
- SLOT( slotConfigChanged() ) );
- connect( kapp, SIGNAL( appearanceChanged() ), SLOT( slotConfigChanged() ) );
+ connect( KopetePrefs::prefs(), TQT_SIGNAL( contactListAppearanceChanged() ),
+ TQT_SLOT( slotConfigChanged() ) );
+ connect( kapp, TQT_SIGNAL( appearanceChanged() ), TQT_SLOT( slotConfigChanged() ) );
- connect( m_group, SIGNAL( iconAppearanceChanged() ), SLOT( updateIcon() ) );
+ connect( m_group, TQT_SIGNAL( iconAppearanceChanged() ), TQT_SLOT( updateIcon() ) );
refreshDisplayName();
slotConfigChanged();
@@ -120,7 +120,7 @@ Kopete::Group* KopeteGroupViewItem::group() const
return m_group;
}
-QString KopeteGroupViewItem::toolTip() const
+TQString KopeteGroupViewItem::toolTip() const
{
// TODO: add icon, and some more information than that which
// is already displayed in the list view item
@@ -136,7 +136,7 @@ void KopeteGroupViewItem::slotConfigChanged()
d->name->setColor( KopetePrefs::prefs()->contactListGroupNameColor() );
- QFont font = listView()->font();
+ TQFont font = listView()->font();
if ( KopetePrefs::prefs()->contactListUseCustomFonts() )
font = KopetePrefs::prefs()->contactListCustomNormalFont();
d->name->setFont( font );
@@ -149,7 +149,7 @@ void KopeteGroupViewItem::refreshDisplayName()
totalMemberCount = 0;
onlineMemberCount = 0;
- for ( QListViewItem *lvi = firstChild(); lvi; lvi = lvi->nextSibling() )
+ for ( TQListViewItem *lvi = firstChild(); lvi; lvi = lvi->nextSibling() )
{
if ( KopeteMetaContactLVI *kc = dynamic_cast<KopeteMetaContactLVI*>( lvi ) )
{
@@ -161,7 +161,7 @@ void KopeteGroupViewItem::refreshDisplayName()
d->name->setText( m_group->displayName() );
d->count->setText( i18n( "(NUMBER OF ONLINE CONTACTS/NUMBER OF CONTACTS IN GROUP)", "(%1/%2)" )
- .arg( QString::number( onlineMemberCount ), QString::number( totalMemberCount ) ) );
+ .arg( TQString::number( onlineMemberCount ), TQString::number( totalMemberCount ) ) );
updateVisibility();
@@ -175,7 +175,7 @@ void KopeteGroupViewItem::refreshDisplayName()
listView()->sort();
}
-QString KopeteGroupViewItem::key( int, bool ) const
+TQString KopeteGroupViewItem::key( int, bool ) const
{
//Groups are placed after topLevel contact.
//Exepted Temporary group which is the first group
@@ -223,7 +223,7 @@ void KopeteGroupViewItem::updateVisibility()
// When calling setVisible(true) EVERY child item will be shown,
// even if they should be hidden.
// We just re-update the visibility of all child items
- for ( QListViewItem *lvi = firstChild(); lvi; lvi = lvi->nextSibling() )
+ for ( TQListViewItem *lvi = firstChild(); lvi; lvi = lvi->nextSibling() )
{
if ( KopeteMetaContactLVI *kmc = dynamic_cast<KopeteMetaContactLVI *>( lvi ) )
kmc->updateVisibility();
@@ -255,7 +255,7 @@ void KopeteGroupViewItem::updateIcon()
}
}
-QString KopeteGroupViewItem::text( int column ) const
+TQString KopeteGroupViewItem::text( int column ) const
{
if ( column == 0 )
return d->name->text();
@@ -263,7 +263,7 @@ QString KopeteGroupViewItem::text( int column ) const
return KListViewItem::text( column );
}
-void KopeteGroupViewItem::setText( int column, const QString &text )
+void KopeteGroupViewItem::setText( int column, const TQString &text )
{
if ( column == 0 )
{
diff --git a/kopete/kopete/contactlist/kopetegroupviewitem.h b/kopete/kopete/contactlist/kopetegroupviewitem.h
index 777ea2e8..8891f992 100644
--- a/kopete/kopete/contactlist/kopetegroupviewitem.h
+++ b/kopete/kopete/contactlist/kopetegroupviewitem.h
@@ -19,7 +19,7 @@
#define KOPETEGROUPVIEWITEM_H
#include "kopetelistviewitem.h"
-#include <qpixmap.h>
+#include <tqpixmap.h>
#define KOPETE_GROUP_DEFAULT_OPEN_ICON "folder_open"
#define KOPETE_GROUP_DEFAULT_CLOSED_ICON "folder"
@@ -36,8 +36,8 @@ class KopeteGroupViewItem : public Kopete::UI::ListView::Item
{
Q_OBJECT
public:
- KopeteGroupViewItem( Kopete::Group *group , QListView *parent, const char *name = 0 );
- KopeteGroupViewItem( Kopete::Group *group , QListViewItem *parent, const char *name = 0 );
+ KopeteGroupViewItem( Kopete::Group *group , TQListView *parent, const char *name = 0 );
+ KopeteGroupViewItem( Kopete::Group *group , TQListViewItem *parent, const char *name = 0 );
~KopeteGroupViewItem();
Kopete::Group * group() const;
@@ -47,10 +47,10 @@ public:
/**
* reimplemented from KListViewItem to take into account our alternate text storage
*/
- virtual QString text( int column ) const;
- virtual void setText( int column, const QString &text );
+ virtual TQString text( int column ) const;
+ virtual void setText( int column, const TQString &text );
- QString toolTip() const;
+ TQString toolTip() const;
public slots:
void refreshDisplayName();
@@ -65,9 +65,9 @@ private:
void initLVI();
Kopete::Group *m_group;
- QPixmap open, closed;
+ TQPixmap open, closed;
- QString key( int column, bool ascending ) const;
+ TQString key( int column, bool ascending ) const;
unsigned int onlineMemberCount;
unsigned int totalMemberCount;
diff --git a/kopete/kopete/contactlist/kopetelviprops.cpp b/kopete/kopete/contactlist/kopetelviprops.cpp
index bf5431bf..1867dea5 100644
--- a/kopete/kopete/contactlist/kopetelviprops.cpp
+++ b/kopete/kopete/contactlist/kopetelviprops.cpp
@@ -23,14 +23,14 @@
#include <kdebug.h>
-#include <qapplication.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qradiobutton.h>
-#include <qtabwidget.h>
-#include <qcombobox.h>
+#include <tqapplication.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqradiobutton.h>
+#include <tqtabwidget.h>
+#include <tqcombobox.h>
#include <kdialogbase.h>
#include <kfiledialog.h>
@@ -65,7 +65,7 @@ const char MC_AW[] = "metacontact_away";
const char MC_UNK[] = "metacontact_unknown";
-KopeteGVIProps::KopeteGVIProps(KopeteGroupViewItem *gvi, QWidget *parent, const char *name)
+KopeteGVIProps::KopeteGVIProps(KopeteGroupViewItem *gvi, TQWidget *parent, const char *name)
: KDialogBase(parent, name, true, i18n("Properties of Group %1").arg(gvi->group()->displayName()), Ok|Cancel, Ok, false)
{
mainWidget = new KopeteGVIPropsWidget(this, "mainWidget");
@@ -83,22 +83,22 @@ KopeteGVIProps::KopeteGVIProps(KopeteGroupViewItem *gvi, QWidget *parent, const
mainWidget->chkUseCustomIcons->setChecked( item->group()->useCustomIcon() );
- QString openName = item->group()->icon( Kopete::ContactListElement::Open );
+ TQString openName = item->group()->icon( Kopete::ContactListElement::Open );
if(openName.isEmpty())
openName = KOPETE_GROUP_DEFAULT_OPEN_ICON;
- QString closeName = item->group()->icon( Kopete::ContactListElement::Closed );
+ TQString closeName = item->group()->icon( Kopete::ContactListElement::Closed );
if(closeName.isEmpty())
closeName = KOPETE_GROUP_DEFAULT_CLOSED_ICON;
mainWidget->icnbOpen->setIcon( openName );
mainWidget->icnbClosed->setIcon( closeName );
- connect( this, SIGNAL(okClicked()), this, SLOT( slotOkClicked() ) );
- connect( mainWidget->chkUseCustomIcons, SIGNAL( toggled( bool ) ),
- this, SLOT( slotUseCustomIconsToggled( bool ) ) );
- connect( mainWidget->icnbOpen, SIGNAL( iconChanged( QString ) ),
- SLOT( slotIconChanged() ) );
- connect( mainWidget->icnbClosed, SIGNAL( iconChanged( QString ) ),
- SLOT( slotIconChanged() ) );
+ connect( this, TQT_SIGNAL(okClicked()), this, TQT_SLOT( slotOkClicked() ) );
+ connect( mainWidget->chkUseCustomIcons, TQT_SIGNAL( toggled( bool ) ),
+ this, TQT_SLOT( slotUseCustomIconsToggled( bool ) ) );
+ connect( mainWidget->icnbOpen, TQT_SIGNAL( iconChanged( TQString ) ),
+ TQT_SLOT( slotIconChanged() ) );
+ connect( mainWidget->icnbClosed, TQT_SIGNAL( iconChanged( TQString ) ),
+ TQT_SLOT( slotIconChanged() ) );
slotUseCustomIconsToggled( mainWidget->chkUseCustomIcons->isChecked() );
}
@@ -145,7 +145,7 @@ void KopeteGVIProps::slotIconChanged()
// =============================================================================
-KopeteMetaLVIProps::KopeteMetaLVIProps(KopeteMetaContactLVI *lvi, QWidget *parent, const char *name)
+KopeteMetaLVIProps::KopeteMetaLVIProps(KopeteMetaContactLVI *lvi, TQWidget *parent, const char *name)
: KDialogBase(parent, name, true, i18n("Properties of Meta Contact %1").arg(lvi->metaContact()->displayName()), Ok|Cancel, Ok, false)
{
m_countPhotoCapable = 0;
@@ -158,10 +158,10 @@ KopeteMetaLVIProps::KopeteMetaLVIProps(KopeteMetaContactLVI *lvi, QWidget *paren
mNotificationProps = new CustomNotificationProps( this, lvi->metaContact() );
// add a button to the notification props to get the sound from KABC
// the widget's vert box layout, horiz box layout containing button, spacer, followed by a spacer
- QBoxLayout * vb = static_cast<QVBoxLayout*>( mNotificationProps->widget()->layout() );
+ TQBoxLayout * vb = static_cast<TQVBoxLayout*>( mNotificationProps->widget()->layout() );
- QHBoxLayout* hb = new QHBoxLayout( vb, -1, "soundFromKABClayout" );
- mFromKABC = new QPushButton( i18n( "Sync KABC..." ), mNotificationProps->widget(), "getSoundFromKABC" );
+ TQHBoxLayout* hb = new TQHBoxLayout( vb, -1, "soundFromKABClayout" );
+ mFromKABC = new TQPushButton( i18n( "Sync KABC..." ), mNotificationProps->widget(), "getSoundFromKABC" );
hb->addWidget( mFromKABC ); // [ [Button] <-xxxxx-> ]
hb->addStretch();
vb->addStretch(); // vert spacer keeps the rest snug
@@ -170,36 +170,36 @@ KopeteMetaLVIProps::KopeteMetaLVIProps(KopeteMetaContactLVI *lvi, QWidget *paren
setMainWidget( mainWidget );
item = lvi;
- connect( mainWidget->radioNameKABC, SIGNAL(toggled(bool)), SLOT(slotEnableAndDisableWidgets()));
- connect( mainWidget->radioNameContact, SIGNAL(toggled(bool)), SLOT(slotEnableAndDisableWidgets()));
- connect( mainWidget->radioNameCustom, SIGNAL(toggled(bool)), SLOT(slotEnableAndDisableWidgets()));
- connect( mainWidget->radioPhotoKABC, SIGNAL(toggled(bool)), SLOT(slotEnableAndDisableWidgets()));
- connect( mainWidget->radioPhotoContact, SIGNAL(toggled(bool)), SLOT(slotEnableAndDisableWidgets()));
- connect( mainWidget->radioPhotoCustom, SIGNAL(toggled(bool)), SLOT(slotEnableAndDisableWidgets()));
- connect( mainWidget->cmbPhotoUrl, SIGNAL(urlSelected(const QString &)), SLOT(slotEnableAndDisableWidgets()));
- connect( mainWidget->cmbAccountPhoto, SIGNAL(activated ( int )), SLOT(slotEnableAndDisableWidgets()));
+ connect( mainWidget->radioNameKABC, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEnableAndDisableWidgets()));
+ connect( mainWidget->radioNameContact, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEnableAndDisableWidgets()));
+ connect( mainWidget->radioNameCustom, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEnableAndDisableWidgets()));
+ connect( mainWidget->radioPhotoKABC, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEnableAndDisableWidgets()));
+ connect( mainWidget->radioPhotoContact, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEnableAndDisableWidgets()));
+ connect( mainWidget->radioPhotoCustom, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEnableAndDisableWidgets()));
+ connect( mainWidget->cmbPhotoUrl, TQT_SIGNAL(urlSelected(const TQString &)), TQT_SLOT(slotEnableAndDisableWidgets()));
+ connect( mainWidget->cmbAccountPhoto, TQT_SIGNAL(activated ( int )), TQT_SLOT(slotEnableAndDisableWidgets()));
- mainWidget->btnClearPhoto->setIconSet( SmallIconSet( QApplication::reverseLayout() ? "locationbar_erase" : "clear_left" ) );
- connect( mainWidget->btnClearPhoto, SIGNAL( clicked() ), this, SLOT( slotClearPhotoClicked() ) );
- connect( mainWidget->widAddresseeLink, SIGNAL( addresseeChanged( const KABC::Addressee & ) ), SLOT( slotAddresseeChanged( const KABC::Addressee & ) ) );
+ mainWidget->btnClearPhoto->setIconSet( SmallIconSet( TQApplication::reverseLayout() ? "locationbar_erase" : "clear_left" ) );
+ connect( mainWidget->btnClearPhoto, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotClearPhotoClicked() ) );
+ connect( mainWidget->widAddresseeLink, TQT_SIGNAL( addresseeChanged( const KABC::Addressee & ) ), TQT_SLOT( slotAddresseeChanged( const KABC::Addressee & ) ) );
mainWidget->chkUseCustomIcons->setChecked( item->metaContact()->useCustomIcon() );
- QString offlineName = item->metaContact()->icon( Kopete::ContactListElement::Offline );
+ TQString offlineName = item->metaContact()->icon( Kopete::ContactListElement::Offline );
if(offlineName.isEmpty())
- offlineName = QString::fromLatin1(MC_OFF); // Default
+ offlineName = TQString::fromLatin1(MC_OFF); // Default
- QString onlineName = item->metaContact()->icon( Kopete::ContactListElement::Online );
+ TQString onlineName = item->metaContact()->icon( Kopete::ContactListElement::Online );
if(onlineName.isEmpty())
- onlineName = QString::fromLatin1(MC_ON); // Default
+ onlineName = TQString::fromLatin1(MC_ON); // Default
- QString awayName = item->metaContact()->icon( Kopete::ContactListElement::Away );
+ TQString awayName = item->metaContact()->icon( Kopete::ContactListElement::Away );
if(awayName.isEmpty())
- awayName = QString::fromLatin1(MC_AW); // Default
+ awayName = TQString::fromLatin1(MC_AW); // Default
- QString unknownName = item->metaContact()->icon( Kopete::ContactListElement::Unknown );
+ TQString unknownName = item->metaContact()->icon( Kopete::ContactListElement::Unknown );
if(unknownName.isEmpty())
- unknownName = QString::fromLatin1(MC_UNK); // Default
+ unknownName = TQString::fromLatin1(MC_UNK); // Default
mainWidget->icnbOffline->setIcon( offlineName );
mainWidget->icnbOnline->setIcon( onlineName );
@@ -232,17 +232,17 @@ KopeteMetaLVIProps::KopeteMetaLVIProps(KopeteMetaContactLVI *lvi, QWidget *paren
slotLoadNameSources();
slotLoadPhotoSources();
- connect( this, SIGNAL(okClicked()), this, SLOT( slotOkClicked() ) );
- connect( mainWidget->chkUseCustomIcons, SIGNAL( toggled( bool ) ),
- this, SLOT( slotUseCustomIconsToggled( bool ) ) );
- connect( mainWidget->btnImportKABC, SIGNAL( clicked() ),
- this, SLOT( slotImportClicked() ) );
- connect( mainWidget->btnExportKABC, SIGNAL( clicked() ),
- this, SLOT( slotExportClicked() ) );
- connect( mFromKABC, SIGNAL( clicked() ),
- this, SLOT( slotFromKABCClicked() ) );
- connect( mNotificationProps->widget()->customSound, SIGNAL( openFileDialog( KURLRequester * )),
- SLOT( slotOpenSoundDialog( KURLRequester * )));
+ connect( this, TQT_SIGNAL(okClicked()), this, TQT_SLOT( slotOkClicked() ) );
+ connect( mainWidget->chkUseCustomIcons, TQT_SIGNAL( toggled( bool ) ),
+ this, TQT_SLOT( slotUseCustomIconsToggled( bool ) ) );
+ connect( mainWidget->btnImportKABC, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotImportClicked() ) );
+ connect( mainWidget->btnExportKABC, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotExportClicked() ) );
+ connect( mFromKABC, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotFromKABCClicked() ) );
+ connect( mNotificationProps->widget()->customSound, TQT_SIGNAL( openFileDialog( KURLRequester * )),
+ TQT_SLOT( slotOpenSoundDialog( KURLRequester * )));
slotUseCustomIconsToggled( mainWidget->chkUseCustomIcons->isChecked() );
slotEnableAndDisableWidgets();
@@ -256,13 +256,13 @@ KopeteMetaLVIProps::~KopeteMetaLVIProps()
void KopeteMetaLVIProps::slotLoadNameSources()
{
Kopete::Contact* trackingName = item->metaContact()->displayNameSourceContact();
- QPtrList< Kopete::Contact > cList = item->metaContact()->contacts();
- QPtrListIterator<Kopete::Contact> it( cList );
+ TQPtrList< Kopete::Contact > cList = item->metaContact()->contacts();
+ TQPtrListIterator<Kopete::Contact> it( cList );
mainWidget->cmbAccountName->clear();
for( ; it.current(); ++it )
{
- QString acct = it.current()->property( Kopete::Global::Properties::self()->nickName() ).value().toString() + " <" + it.current()->contactId() + ">";
- QPixmap acctIcon = it.current()->account()->accountIcon();
+ TQString acct = it.current()->property( Kopete::Global::Properties::self()->nickName() ).value().toString() + " <" + it.current()->contactId() + ">";
+ TQPixmap acctIcon = it.current()->account()->accountIcon();
mainWidget->cmbAccountName->insertItem( acctIcon, acct );
// Select this item if it's the one we're tracking.
@@ -285,18 +285,18 @@ void KopeteMetaLVIProps::slotLoadNameSources()
void KopeteMetaLVIProps::slotLoadPhotoSources()
{
// fill photo contact sources
- QPtrList< Kopete::Contact > cList = item->metaContact()->contacts();
+ TQPtrList< Kopete::Contact > cList = item->metaContact()->contacts();
m_withPhotoContacts.clear();
Kopete::Contact* trackingPhoto = item->metaContact()->photoSourceContact();
mainWidget->cmbAccountPhoto->clear();
- QPtrListIterator<Kopete::Contact> itp( cList );
+ TQPtrListIterator<Kopete::Contact> itp( cList );
for( ; itp.current(); ++itp )
{
Kopete::Contact *citem = itp.current();
if ( citem->hasProperty( Kopete::Global::Properties::self()->photo().key() ) )
{
- QString acct = citem->property( Kopete::Global::Properties::self()->nickName() ).value().toString() + " <" + citem->contactId() + ">";
- QPixmap acctIcon = citem->account()->accountIcon();
+ TQString acct = citem->property( Kopete::Global::Properties::self()->nickName() ).value().toString() + " <" + citem->contactId() + ">";
+ TQPixmap acctIcon = citem->account()->accountIcon();
mainWidget->cmbAccountPhoto->insertItem( acctIcon, acct );
// Select this item if it's the one we're tracking.
@@ -358,7 +358,7 @@ void KopeteMetaLVIProps::slotEnableAndDisableWidgets()
mainWidget->cmbAccountPhoto->setEnabled(false);
}
- QImage photo;
+ TQImage photo;
switch ( selectedPhotoSource() )
{
case Kopete::MetaContact::SourceKABC:
@@ -368,13 +368,13 @@ void KopeteMetaLVIProps::slotEnableAndDisableWidgets()
photo = Kopete::photoFromContact(selectedPhotoSourceContact());
break;
case Kopete::MetaContact::SourceCustom:
- photo = QImage(KURL::decode_string(mainWidget->cmbPhotoUrl->url()));
+ photo = TQImage(KURL::decode_string(mainWidget->cmbPhotoUrl->url()));
break;
}
if( !photo.isNull() )
- mainWidget->photoLabel->setPixmap(QPixmap(photo.smoothScale( 64, 92, QImage::ScaleMin )));
+ mainWidget->photoLabel->setPixmap(TQPixmap(photo.smoothScale( 64, 92, TQImage::ScaleMin )));
else
- mainWidget->photoLabel->setPixmap( QPixmap() );
+ mainWidget->photoLabel->setPixmap( TQPixmap() );
}
Kopete::MetaContact::PropertySource KopeteMetaLVIProps::selectedNameSource() const
@@ -489,7 +489,7 @@ void KopeteMetaLVIProps::slotAddresseeChanged( const KABC::Addressee & a )
{
mainWidget->btnExportKABC->setEnabled( false );
mainWidget->btnImportKABC->setEnabled( false );
- mAddressBookUid = QString::null;
+ mAddressBookUid = TQString::null;
mainWidget->radioNameContact->setChecked( true );
mainWidget->radioPhotoContact->setChecked( true );
}
@@ -501,7 +501,7 @@ void KopeteMetaLVIProps::slotExportClicked()
item->metaContact()->setMetaContactId( mAddressBookUid );
delete mExport;
mExport = new KopeteAddressBookExport( this, item->metaContact() );
- if ( mExport->showDialog() == QDialog::Accepted )
+ if ( mExport->showDialog() == TQDialog::Accepted )
mExport->exportData();
}
@@ -523,26 +523,26 @@ void KopeteMetaLVIProps::slotOpenSoundDialog( KURLRequester *requester )
{
// taken from kdelibs/kio/kfile/knotifydialog.cpp
// only need to init this once
- requester->disconnect( SIGNAL( openFileDialog( KURLRequester * )),
- this, SLOT( slotOpenSoundDialog( KURLRequester * )));
+ requester->disconnect( TQT_SIGNAL( openFileDialog( KURLRequester * )),
+ this, TQT_SLOT( slotOpenSoundDialog( KURLRequester * )));
KFileDialog *fileDialog = requester->fileDialog();
//fileDialog->setCaption( i18n("Select Sound File") );
- QStringList filters;
+ TQStringList filters;
filters << "audio/x-wav" << "audio/x-mp3" << "application/ogg"
<< "audio/x-adpcm";
fileDialog->setMimeFilter( filters );
// find the first "sound"-resource that contains files
- QStringList soundDirs =
+ TQStringList soundDirs =
KGlobal::dirs()->findDirs("data", "kopete/sounds");
soundDirs += KGlobal::dirs()->resourceDirs( "sound" );
if ( !soundDirs.isEmpty() ) {
KURL soundURL;
- QDir dir;
- dir.setFilter( QDir::Files | QDir::Readable );
- QStringList::ConstIterator it = soundDirs.begin();
+ TQDir dir;
+ dir.setFilter( TQDir::Files | TQDir::Readable );
+ TQStringList::ConstIterator it = soundDirs.begin();
while ( it != soundDirs.end() ) {
dir = *it;
if ( dir.isReadable() && dir.count() > 2 ) {
@@ -560,7 +560,7 @@ void KopeteMetaLVIProps::slotClearPhotoClicked()
#if KDE_IS_VERSION(3,4,0)
mainWidget->cmbPhotoUrl->setKURL( KURL() );
#else
- mainWidget->cmbPhotoUrl->setURL( QString::null );
+ mainWidget->cmbPhotoUrl->setURL( TQString::null );
#endif
item->metaContact()->setPhoto( KURL() );
diff --git a/kopete/kopete/contactlist/kopetelviprops.h b/kopete/kopete/contactlist/kopetelviprops.h
index 9a2ebf34..de28e4b5 100644
--- a/kopete/kopete/contactlist/kopetelviprops.h
+++ b/kopete/kopete/contactlist/kopetelviprops.h
@@ -45,7 +45,7 @@ class KopeteGVIProps: public KDialogBase
Q_OBJECT
public:
- KopeteGVIProps(KopeteGroupViewItem *gvi, QWidget *parent, const char *name=0L);
+ KopeteGVIProps(KopeteGroupViewItem *gvi, TQWidget *parent, const char *name=0L);
~KopeteGVIProps();
private:
@@ -66,20 +66,20 @@ class KopeteMetaLVIProps: public KDialogBase
Q_OBJECT
public:
- KopeteMetaLVIProps(KopeteMetaContactLVI *gvi, QWidget *parent, const char *name=0L);
+ KopeteMetaLVIProps(KopeteMetaContactLVI *gvi, TQWidget *parent, const char *name=0L);
~KopeteMetaLVIProps();
private:
CustomNotificationProps * mNotificationProps;
- QPushButton *mFromKABC;
+ TQPushButton *mFromKABC;
KopeteMetaLVIPropsWidget *mainWidget;
AddressBookLinkWidget *linkWidget;
KopeteMetaContactLVI *item;
KopeteAddressBookExport *mExport;
KABC::Sound mSound;
int m_countPhotoCapable;
- QMap<int, Kopete::Contact *> m_withPhotoContacts;
- QString mAddressBookUid; // the currently selected addressbook UID
+ TQMap<int, Kopete::Contact *> m_withPhotoContacts;
+ TQString mAddressBookUid; // the currently selected addressbook UID
Kopete::MetaContact::PropertySource selectedNameSource() const;
Kopete::MetaContact::PropertySource selectedPhotoSource() const;
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 );
diff --git a/kopete/kopete/contactlist/kopetemetacontactlvi.h b/kopete/kopete/contactlist/kopetemetacontactlvi.h
index 767330ba..d795475f 100644
--- a/kopete/kopete/contactlist/kopetemetacontactlvi.h
+++ b/kopete/kopete/contactlist/kopetemetacontactlvi.h
@@ -23,9 +23,9 @@
#include "kopetelistviewitem.h"
-#include <qobject.h>
-#include <qpixmap.h>
-#include <qptrdict.h>
+#include <tqobject.h>
+#include <tqpixmap.h>
+#include <tqptrdict.h>
#include <klistview.h>
@@ -56,8 +56,8 @@ class KopeteMetaContactLVI : public Kopete::UI::ListView::Item
public:
KopeteMetaContactLVI( Kopete::MetaContact *contact, KopeteGroupViewItem *parent );
- KopeteMetaContactLVI( Kopete::MetaContact *contact, QListViewItem *parent );
- KopeteMetaContactLVI( Kopete::MetaContact *contact, QListView *parent );
+ KopeteMetaContactLVI( Kopete::MetaContact *contact, TQListViewItem *parent );
+ KopeteMetaContactLVI( Kopete::MetaContact *contact, TQListView *parent );
~KopeteMetaContactLVI();
/**
@@ -74,7 +74,7 @@ public:
/**
* parent when top-level
*/
- QListView *parentView() const { return m_parentView; };
+ TQListView *parentView() const { return m_parentView; };
/**
* parent when not top-level
@@ -85,7 +85,7 @@ public:
* call this when the item has been moved to a different group
*/
void movedToDifferentGroup();
- void rename( const QString& name );
+ void rename( const TQString& name );
void startRename( int );
Kopete::Group *group();
@@ -97,28 +97,28 @@ public:
* (This is used for e.g. the context-menu of a contact when
* right-clicking an icon, or the tooltips)
*/
- Kopete::Contact *contactForPoint( const QPoint &p ) const;
+ Kopete::Contact *contactForPoint( const TQPoint &p ) const;
/**
- * Returns the QRect small little icon used for the Kopete::Contact.
+ * Returns the TQRect small little icon used for the Kopete::Contact.
* The behavior is undefined if @param c doesn't point to a valid
* Kopete::Contact for this list view item.
- * The returned QRect is using the list view item's coordinate
+ * The returned TQRect is using the list view item's coordinate
* system and should probably be transformed into the list view's
* coordinates before being of any practical use.
* Note that the returned Rect is always vertically stretched to fill
* the full list view item's height, only the width is relative to
* the actual icon width.
*/
- QRect contactRect( const Kopete::Contact *c ) const;
+ TQRect contactRect( const Kopete::Contact *c ) const;
bool isGrouped() const;
/**
* reimplemented from KListViewItem to take into account our alternate text storage
*/
- virtual QString text( int column ) const;
- virtual void setText( int column, const QString &text );
+ virtual TQString text( int column ) const;
+ virtual void setText( int column, const TQString &text );
public slots:
/**
@@ -134,7 +134,7 @@ public slots:
private slots:
void slotUpdateMetaContact();
void slotContactStatusChanged( Kopete::Contact * );
- void slotContactPropertyChanged( Kopete::Contact *, const QString &, const QVariant &, const QVariant & );
+ void slotContactPropertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & );
void slotContactAdded( Kopete::Contact * );
void slotContactRemoved( Kopete::Contact * );
@@ -159,24 +159,24 @@ private:
void initLVI();
void setDisplayMode( int mode, int iconMode );
void setMetaContactToolTipSourceForComponent( Kopete::UI::ListView::Component *comp );
- QString key( int column, bool ascending ) const;
+ TQString key( int column, bool ascending ) const;
void updateContactIcon( Kopete::Contact * );
Kopete::UI::ListView::ContactComponent *contactComponent( const Kopete::Contact *c ) const;
Kopete::MetaContact *m_metaContact;
KopeteGroupViewItem *m_parentGroup;
- QListView *m_parentView;
+ TQListView *m_parentView;
bool m_isTopLevel;
int m_pixelWide;
Kopete::OnlineStatus m_oldStatus;
- QPixmap m_oldStatusIcon;
- QPixmap m_originalBlinkIcon;
+ TQPixmap m_oldStatusIcon;
+ TQPixmap m_originalBlinkIcon;
- QTimer *mBlinkTimer;
+ TQTimer *mBlinkTimer;
- QPtrDict<Kopete::Account> m_addContactActions;
+ TQPtrDict<Kopete::Account> m_addContactActions;
bool mIsBlinkIcon;
int m_blinkLeft;
diff --git a/kopete/kopete/contactlist/kopetestatusgroupviewitem.cpp b/kopete/kopete/contactlist/kopetestatusgroupviewitem.cpp
index 9dc910dd..6595e237 100644
--- a/kopete/kopete/contactlist/kopetestatusgroupviewitem.cpp
+++ b/kopete/kopete/contactlist/kopetestatusgroupviewitem.cpp
@@ -20,8 +20,8 @@
#include <kdebug.h>
#include "kopetestatusgroupviewitem.h"
-KopeteStatusGroupViewItem::KopeteStatusGroupViewItem( Kopete::OnlineStatus::StatusType status_ , QListView *parent, const char *name )
- : QListViewItem(parent,name)
+KopeteStatusGroupViewItem::KopeteStatusGroupViewItem( Kopete::OnlineStatus::StatusType status_ , TQListView *parent, const char *name )
+ : TQListViewItem(parent,name)
{
m_status = status_;
}
@@ -30,7 +30,7 @@ KopeteStatusGroupViewItem::~KopeteStatusGroupViewItem()
{
}
-QString KopeteStatusGroupViewItem::key( int, bool ) const
+TQString KopeteStatusGroupViewItem::key( int, bool ) const
{
switch (m_status)
{
diff --git a/kopete/kopete/contactlist/kopetestatusgroupviewitem.h b/kopete/kopete/contactlist/kopetestatusgroupviewitem.h
index 8b1a930f..2f4f08b3 100644
--- a/kopete/kopete/contactlist/kopetestatusgroupviewitem.h
+++ b/kopete/kopete/contactlist/kopetestatusgroupviewitem.h
@@ -30,13 +30,13 @@
class KopeteStatusGroupViewItem : public QListViewItem
{
public:
- KopeteStatusGroupViewItem( Kopete::OnlineStatus::StatusType status_ , QListView *parent, const char *name=0);
+ KopeteStatusGroupViewItem( Kopete::OnlineStatus::StatusType status_ , TQListView *parent, const char *name=0);
~KopeteStatusGroupViewItem();
private:
Kopete::OnlineStatus::StatusType m_status;
- QString key( int column, bool ascending ) const;
+ TQString key( int column, bool ascending ) const;
};