diff options
Diffstat (limited to 'amarok/src/engine/nmm/HostList.cpp')
-rw-r--r-- | amarok/src/engine/nmm/HostList.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/amarok/src/engine/nmm/HostList.cpp b/amarok/src/engine/nmm/HostList.cpp index 38ff4cbe..7225548e 100644 --- a/amarok/src/engine/nmm/HostList.cpp +++ b/amarok/src/engine/nmm/HostList.cpp @@ -31,8 +31,8 @@ #include "debug.h" #include "HostListItem.h" -HostList::HostList( TQWidget *parent, const char *name ) - : KListView( parent, name ), +HostList::HostList( TQWidget *tqparent, const char *name ) + : KListView( tqparent, name ), m_read_only( false ), m_hoveredVolume(0) { @@ -45,14 +45,14 @@ HostList::HostList( TQWidget *parent, const char *name ) addColumn( i18n("Audio" ) ); addColumn( i18n("Volume" ), 113 ); header()->setResizeEnabled(false, 3); - addColumn( i18n("Status" ) ); + addColumn( i18n("tqStatus" ) ); addColumn( i18n("Playback" ) ); - setColumnAlignment( HostListItem::Hostname, Qt::AlignCenter ); - setColumnAlignment( HostListItem::Video, Qt::AlignCenter ); - setColumnAlignment( HostListItem::Audio, Qt::AlignCenter ); - setColumnAlignment( HostListItem::Volume, Qt::AlignCenter ); - setColumnAlignment( HostListItem::Status, Qt::AlignLeft ); + setColumnAlignment( HostListItem::Hostname, TQt::AlignCenter ); + setColumnAlignment( HostListItem::Video, TQt::AlignCenter ); + setColumnAlignment( HostListItem::Audio, TQt::AlignCenter ); + setColumnAlignment( HostListItem::Volume, TQt::AlignCenter ); + setColumnAlignment( HostListItem::tqStatus, TQt::AlignLeft ); } HostList::~HostList() @@ -67,8 +67,8 @@ void HostList::notifyHostError( TQString hostname, int error) if( host->text(HostListItem::Hostname) == hostname ) { host->setText( HostListItem::Hostname, hostname ); - host->setStatus( error ); - host->repaint(); + host->settqStatus( error ); + host->tqrepaint(); return; } ++it; @@ -78,7 +78,7 @@ void HostList::notifyHostError( TQString hostname, int error) void HostList::contentsMousePressEvent( TQMouseEvent *e) { HostListItem *item = static_cast<HostListItem*>( itemAt( contentsToViewport( e->pos() ) ) ); - if( !( e->state() & Qt::ControlButton || e->state() & Qt::ShiftButton ) && ( e->button() & Qt::LeftButton ) && item) + if( !( e->state() & TQt::ControlButton || e->state() & TQt::ShiftButton ) && ( e->button() & TQt::LeftButton ) && item) { // video column if( !m_read_only && @@ -101,8 +101,8 @@ void HostList::contentsMousePressEvent( TQMouseEvent *e) } // status column else - if( e->pos().x() > header()->sectionPos( HostListItem::Status ) && - e->pos().x() < header()->sectionPos( HostListItem::Status ) + header()->sectionSize( HostListItem::Status ) ) + if( e->pos().x() > header()->sectionPos( HostListItem::tqStatus ) && + e->pos().x() < header()->sectionPos( HostListItem::tqStatus ) + header()->sectionSize( HostListItem::tqStatus ) ) { item->statusToolTip(); } |