summaryrefslogtreecommitdiffstats
path: root/kopete/kopete/contactlist/kopetegroupviewitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/kopete/contactlist/kopetegroupviewitem.cpp')
-rw-r--r--kopete/kopete/contactlist/kopetegroupviewitem.cpp36
1 files changed, 18 insertions, 18 deletions
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 )
{