summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/irc/ui/channellist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/irc/ui/channellist.cpp')
-rw-r--r--kopete/protocols/irc/ui/channellist.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kopete/protocols/irc/ui/channellist.cpp b/kopete/protocols/irc/ui/channellist.cpp
index d7ef0279..2d4e357b 100644
--- a/kopete/protocols/irc/ui/channellist.cpp
+++ b/kopete/protocols/irc/ui/channellist.cpp
@@ -38,19 +38,19 @@
#include <tqspinbox.h>
#include <tqwhatsthis.h>
-class ChannelListItem : public KListViewItem
+class ChannelListItem : public TDEListViewItem
{
public:
- ChannelListItem( KListView *parent, TQString arg1, TQString arg2, TQString arg3 );
+ ChannelListItem( TDEListView *parent, TQString arg1, TQString arg2, TQString arg3 );
virtual int compare( TQListViewItem *i, int col, bool ascending ) const;
virtual void paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int align );
private:
- KListView *parentList;
+ TDEListView *parentList;
};
-ChannelListItem::ChannelListItem( KListView *parent, TQString arg1, TQString arg2, TQString arg3 ) :
- KListViewItem( parent, parent->lastItem() ), parentList( parent )
+ChannelListItem::ChannelListItem( TDEListView *parent, TQString arg1, TQString arg2, TQString arg3 ) :
+ TDEListViewItem( parent, parent->lastItem() ), parentList( parent )
{
setText(0, arg1);
setText(1, arg2);
@@ -76,15 +76,15 @@ void ChannelListItem::paintCell( TQPainter *p, const TQColorGroup &cg, int colum
{
TQPixmap back( width, height() );
TQPainter paint( &back );
- //KListViewItem::paintCell( &paint, cg, column, width, align );
+ //TDEListViewItem::paintCell( &paint, cg, column, width, align );
// PASTED FROM KLISTVIEWITEM:
// set the alternate cell background colour if necessary
TQColorGroup _cg = cg;
if (isAlternate())
if (listView()->viewport()->backgroundMode()==TQt::FixedColor)
- _cg.setColor(TQColorGroup::Background, static_cast< KListView* >(listView())->alternateBackground());
+ _cg.setColor(TQColorGroup::Background, static_cast< TDEListView* >(listView())->alternateBackground());
else
- _cg.setColor(TQColorGroup::Base, static_cast< KListView* >(listView())->alternateBackground());
+ _cg.setColor(TQColorGroup::Base, static_cast< TDEListView* >(listView())->alternateBackground());
// PASTED FROM TQLISTVIEWITEM
{
TQPainter *p = &paint;
@@ -186,7 +186,7 @@ ChannelList::ChannelList( TQWidget* parent, KIRC::Engine *engine )
layout72_2->addWidget( mSearchButton );
ChannelListLayout->addLayout( layout72_2 );
- mChannelList = new KListView( this, "mChannelList" );
+ mChannelList = new TDEListView( this, "mChannelList" );
mChannelList->addColumn( i18n( "Channel" ) );
mChannelList->addColumn( i18n( "Users" ) );
mChannelList->header()->setResizeEnabled( FALSE, mChannelList->header()->count() - 1 );