summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/bluebase.cpp
authorzecke <zecke>2002-07-13 12:53:59 (UTC)
committer zecke <zecke>2002-07-13 12:53:59 (UTC)
commit8be0a8e108eaf8ff99301aa175298ddeb48eae67 (patch) (side-by-side diff)
tree0fbe4d10476cb39d290fa4a3d6e8bdf76390c30c /noncore/net/opietooth/manager/bluebase.cpp
parent6337e3836497ede8bb47aea5c7b65f4f8c08c4cd (diff)
downloadopie-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.cpp10
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
@@ -314,6 +314,7 @@ void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & poin
delete groups;
} else if ( ((BTListItem*)item)->type() == "service") {
+
menu->insertItem( tr("Test1:"), 0);
menu->insertItem( tr("connect"), 1);
menu->insertItem( tr("delete"), 2);
@@ -370,9 +371,16 @@ 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 {
Services s1;