author | zecke <zecke> | 2002-07-13 12:53:59 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-07-13 12:53:59 (UTC) |
commit | 8be0a8e108eaf8ff99301aa175298ddeb48eae67 (patch) (side-by-side diff) | |
tree | 0fbe4d10476cb39d290fa4a3d6e8bdf76390c30c /noncore/net/opietooth/manager/bluebase.cpp | |
parent | 6337e3836497ede8bb47aea5c7b65f4f8c08c4cd (diff) | |
download | opie-8be0a8e108eaf8ff99301aa175298ddeb48eae67.zip opie-8be0a8e108eaf8ff99301aa175298ddeb48eae67.tar.gz opie-8be0a8e108eaf8ff99301aa175298ddeb48eae67.tar.bz2 |
Icon loader updates
and LIB updates
Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/bluebase.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp index 9cfeaa2..189001d 100644 --- a/noncore/net/opietooth/manager/bluebase.cpp +++ b/noncore/net/opietooth/manager/bluebase.cpp @@ -315,4 +315,5 @@ void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & poin } else if ( ((BTListItem*)item)->type() == "service") { + menu->insertItem( tr("Test1:"), 0); menu->insertItem( tr("connect"), 1); @@ -371,7 +372,14 @@ void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & poin if (!servicesList.isEmpty() ) { // add services + QMap<int, QString> list; + QMap<int, QString>::Iterator classIt; for( it2 = servicesList.begin(); it2 != servicesList.end(); ++it2 ) { serviceItem = new BTServiceItem( deviceItem , (*it2) ); - serviceItem->setPixmap( 0, m_iconLoader->serviceIcon( (*it2).classIdList() ) ); + list = (*it2).classIdList(); + classIt = list.begin(); + int classId; + if ( classIt != list.end() ) + classId = classIt.key(); + serviceItem->setPixmap( 0, m_iconLoader->serviceIcon( classId ) ); } } else { |