diff options
Diffstat (limited to 'kopete/kopete/chatwindow/chatmemberslistwidget.cpp')
-rw-r--r-- | kopete/kopete/chatwindow/chatmemberslistwidget.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kopete/kopete/chatwindow/chatmemberslistwidget.cpp b/kopete/kopete/chatwindow/chatmemberslistwidget.cpp index b215bb66..9cafeada 100644 --- a/kopete/kopete/chatwindow/chatmemberslistwidget.cpp +++ b/kopete/kopete/chatwindow/chatmemberslistwidget.cpp @@ -37,11 +37,11 @@ //BEGIN ChatMembersListWidget::ToolTip -class ChatMembersListWidget::ToolTip : public QToolTip +class ChatMembersListWidget::ToolTip : public TQToolTip { public: - ToolTip( KListView *parent ) - : TQToolTip( parent->viewport() ), m_listView ( parent ) + ToolTip( KListView *tqparent ) + : TQToolTip( tqparent->viewport() ), m_listView ( tqparent ) { } @@ -54,9 +54,9 @@ public: { if( TQListViewItem *item = m_listView->itemAt( pos ) ) { - TQRect itemRect = m_listView->itemRect( item ); - if( itemRect.contains( pos ) ) - tip( itemRect, static_cast<ContactItem*>( item )->contact()->toolTip() ); + TQRect tqitemRect = m_listView->tqitemRect( item ); + if( tqitemRect.tqcontains( pos ) ) + tip( tqitemRect, static_cast<ContactItem*>( item )->contact()->toolTip() ); } } @@ -69,8 +69,8 @@ private: //BEGIN ChatMembersListWidget::ContactItem -ChatMembersListWidget::ContactItem::ContactItem( ChatMembersListWidget *parent, Kopete::Contact *contact ) - : KListViewItem( parent ), m_contact( contact ) +ChatMembersListWidget::ContactItem::ContactItem( ChatMembersListWidget *tqparent, Kopete::Contact *contact ) + : KListViewItem( tqparent ), m_contact( contact ) { TQString nick = m_contact->property(Kopete::Global::Properties::self()->nickName().key()).value().toString(); if ( nick.isEmpty() ) @@ -81,7 +81,7 @@ ChatMembersListWidget::ContactItem::ContactItem( ChatMembersListWidget *parent, connect( m_contact, TQT_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ), this, TQT_SLOT( slotPropertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ) ) ; - setStatus( parent->session()->contactOnlineStatus(m_contact) ); + settqStatus( tqparent->session()->contactOnlineStatus(m_contact) ); reposition(); } @@ -95,7 +95,7 @@ void ChatMembersListWidget::ContactItem::slotPropertyChanged( Kopete::Contact*, } } -void ChatMembersListWidget::ContactItem::setStatus( const Kopete::OnlineStatus &status ) +void ChatMembersListWidget::ContactItem::settqStatus( const Kopete::OnlineStatus &status ) { setPixmap( 0, status.iconFor( m_contact ) ); reposition(); @@ -103,7 +103,7 @@ void ChatMembersListWidget::ContactItem::setStatus( const Kopete::OnlineStatus & void ChatMembersListWidget::ContactItem::reposition() { - // Qt's listview sorting is pathetic - it's impossible to reposition a single item + // TQt's listview sorting is pathetic - it's impossible to reposition a single item // when its key changes, without re-sorting the whole list. Plus, the whole list gets // re-sorted whenever an item is added/removed. So, we do manual sorting. // In particular, this makes adding N items O(N^2) not O(N^2 log N). @@ -133,8 +133,8 @@ void ChatMembersListWidget::ContactItem::reposition() //BEGIN ChatMembersListWidget -ChatMembersListWidget::ChatMembersListWidget( Kopete::ChatSession *session, TQWidget *parent, const char *name ) - : KListView( parent, name ), m_session( session ) +ChatMembersListWidget::ChatMembersListWidget( Kopete::ChatSession *session, TQWidget *tqparent, const char *name ) + : KListView( tqparent, name ), m_session( session ) { // use our own custom tooltips setShowToolTips( false ); @@ -142,11 +142,11 @@ ChatMembersListWidget::ChatMembersListWidget( Kopete::ChatSession *session, TQWi // set up display: no header setAllColumnsShowFocus( true ); - addColumn( TQString::null, -1 ); + addColumn( TQString(), -1 ); header()->setStretchEnabled( true, 0 ); header()->hide(); - // list is sorted by us, not by Qt + // list is sorted by us, not by TQt setSorting( -1 ); // add chat members @@ -183,14 +183,14 @@ void ChatMembersListWidget::slotContextMenu( KListView*, TQListViewItem *item, c void ChatMembersListWidget::slotContactAdded( const Kopete::Contact *contact ) { - if ( !m_members.contains( contact ) ) + if ( !m_members.tqcontains( contact ) ) m_members.insert( contact, new ContactItem( this, const_cast<Kopete::Contact*>( contact ) ) ); } void ChatMembersListWidget::slotContactRemoved( const Kopete::Contact *contact ) { kdDebug(14000) << k_funcinfo << endl; - if ( m_members.contains( contact ) && contact != session()->myself() ) + if ( m_members.tqcontains( contact ) && contact != session()->myself() ) { delete m_members[ contact ]; m_members.remove( contact ); @@ -199,8 +199,8 @@ void ChatMembersListWidget::slotContactRemoved( const Kopete::Contact *contact ) void ChatMembersListWidget::slotContactStatusChanged( Kopete::Contact *contact, const Kopete::OnlineStatus &status ) { - if ( m_members.contains( contact ) ) - m_members[contact]->setStatus( status ); + if ( m_members.tqcontains( contact ) ) + m_members[contact]->settqStatus( status ); } void ChatMembersListWidget::slotExecute( TQListViewItem *item ) @@ -249,7 +249,7 @@ TQDragObject *ChatMembersListWidget::dragObject() } } - drag->setPixmap( c->onlineStatus().iconFor(c, 12) ); + drag->setPixmap( c->onlinetqStatus().iconFor(c, 12) ); return drag; } |