From d17df3ff1677779bfc23cfb08d27c83b03a3dfb4 Mon Sep 17 00:00:00 2001 From: korovkin Date: Sun, 19 Mar 2006 14:45:26 +0000 Subject: Added port number. --- (limited to 'noncore') diff --git a/noncore/net/opietooth/manager/btserviceitem.cpp b/noncore/net/opietooth/manager/btserviceitem.cpp index fb5f21e..8e6459d 100644 --- a/noncore/net/opietooth/manager/btserviceitem.cpp +++ b/noncore/net/opietooth/manager/btserviceitem.cpp @@ -5,8 +5,11 @@ using namespace OpieTooth; BTServiceItem::BTServiceItem( QListViewItem* item, const Services& serv ) : BTListItem( item ) { + int port = serv.protocolDescriptorList().last().port(); m_service = serv; setText(0, QObject::tr(serv.serviceName() ) ); + if (port > 0) + setText(1, QString::number(port) ); } BTServiceItem::~BTServiceItem() { -- cgit v0.9.0.2