summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/bluebase.cpp
Side-by-side diff
Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp
index ec05a95..f400ce6 100644
--- a/noncore/net/opietooth/manager/bluebase.cpp
+++ b/noncore/net/opietooth/manager/bluebase.cpp
@@ -75,14 +75,15 @@ BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl )
// let hold be rightButtonClicked()
QPEApplication::setStylusOperation( ListView2->viewport(), QPEApplication::RightOnHold);
QPEApplication::setStylusOperation( ListView4->viewport(), QPEApplication::RightOnHold);
//Load all icons needed
- m_offPix = Resource::loadPixmap( "editdelete" );
- m_onPix = Resource::loadPixmap( "installed" );
+ m_offPix = Resource::loadPixmap( "opietooth/notconnected" );
+ m_onPix = Resource::loadPixmap( "opietooth/connected" );
+ m_findPix = Resource::loadPixmap( "opietooth/find" );
QPalette pal = this->palette();
QColor col = pal.color( QPalette::Active, QColorGroup::Background );
pal.setColor( QPalette::Active, QColorGroup::Button, col );
pal.setColor( QPalette::Inactive, QColorGroup::Button, col );
pal.setColor( QPalette::Normal, QColorGroup::Button, col );
@@ -354,26 +355,19 @@ void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & poin
if ( popup == 0l ) {
qWarning("factory returned 0l");
popup = new QPopupMenu();
}
int test1 = popup->insertItem( tr("Test1:"), 0);
- int con = popup->insertItem( tr("connect"), 1);
- int del = popup->insertItem( tr("delete"), 2);
ret = popup->exec( point );
qWarning("returned from exec() ");
- if ( ret == -1 )
+ if ( ret == -1 ) {
;
- else if ( ret == test1 )
+ } else if ( ret == test1 ) {
;
- else if ( ret == con )
- ;
- else if ( ret == del ) {
- // take item first? -zecke
- delete item;
}
delete popup;
}
delete menu;
}
@@ -383,13 +377,13 @@ void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & poin
* @param item the service item returned
*/
void BlueBase::addServicesToDevice( BTDeviceItem * item ) {
qDebug("addServicesToDevice");
// row of mac adress text(3)
RemoteDevice device = item->remoteDevice();
- m_deviceList.insert( item->mac() , item );
+ m_deviceList.insert( item->mac() , item );
// and some time later I get a signal foundServices( const QString& device, Services::ValueList ); back
m_localDevice->searchServices( device );
}
/**