author | harlekin <harlekin> | 2002-06-23 21:19:31 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-06-23 21:19:31 (UTC) |
commit | 8e6c9f9b93d5c95fe1a40689817e86d478a8c944 (patch) (unidiff) | |
tree | 8b08cd78ba324798d3a83b0da701bb803889bdb5 | |
parent | a4a8c8b51088f47b2c95cbf255e4b63865461c09 (diff) | |
download | opie-8e6c9f9b93d5c95fe1a40689817e86d478a8c944.zip opie-8e6c9f9b93d5c95fe1a40689817e86d478a8c944.tar.gz opie-8e6c9f9b93d5c95fe1a40689817e86d478a8c944.tar.bz2 |
usual fault in connect .-(
-rw-r--r-- | noncore/net/opietooth/manager/bluebase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp index 910bb8c..af65f14 100644 --- a/noncore/net/opietooth/manager/bluebase.cpp +++ b/noncore/net/opietooth/manager/bluebase.cpp | |||
@@ -41,50 +41,50 @@ | |||
41 | #include <qpe/config.h> | 41 | #include <qpe/config.h> |
42 | 42 | ||
43 | #include <remotedevice.h> | 43 | #include <remotedevice.h> |
44 | 44 | ||
45 | 45 | ||
46 | namespace OpieTooth { | 46 | namespace OpieTooth { |
47 | 47 | ||
48 | 48 | ||
49 | BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) | 49 | BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) |
50 | : BluetoothBase( parent, name, fl ) { | 50 | : BluetoothBase( parent, name, fl ) { |
51 | 51 | ||
52 | localDevice = new Manager( "hci0" ); | 52 | localDevice = new Manager( "hci0" ); |
53 | 53 | ||
54 | connect( PushButton2, SIGNAL( clicked() ), this, SLOT(startScan() ) ); | 54 | connect( PushButton2, SIGNAL( clicked() ), this, SLOT(startScan() ) ); |
55 | connect( configApplyButton, SIGNAL(clicked() ), this, SLOT(applyConfigChanges() ) ); | 55 | connect( configApplyButton, SIGNAL(clicked() ), this, SLOT(applyConfigChanges() ) ); |
56 | // not good since lib is async | 56 | // not good since lib is async |
57 | // connect( ListView2, SIGNAL( expanded ( QListViewItem* ) ), | 57 | // connect( ListView2, SIGNAL( expanded ( QListViewItem* ) ), |
58 | // this, SLOT( addServicesToDevice( QListViewItem * ) ) ); | 58 | // this, SLOT( addServicesToDevice( QListViewItem * ) ) ); |
59 | connect( ListView2, SIGNAL( clicked( QListViewItem* )), | 59 | connect( ListView2, SIGNAL( clicked( QListViewItem* )), |
60 | this, SLOT( startServiceActionClicked( QListViewItem* ) ) ); | 60 | this, SLOT( startServiceActionClicked( QListViewItem* ) ) ); |
61 | connect( ListView2, SIGNAL( rightButtonClicked( QListViewItem *, const QPoint &, int ) ), | 61 | connect( ListView2, SIGNAL( rightButtonClicked( QListViewItem *, const QPoint &, int ) ), |
62 | this, SLOT(startServiceActionHold( BTListItem *, const QPoint &, int) ) ); | 62 | this, SLOT(startServiceActionHold( BTListItem *, const QPoint &, int) ) ); |
63 | connect( localDevice , SIGNAL( foundServices( const QString& , Services::ValueList ) ), | 63 | connect( localDevice , SIGNAL( foundServices( const QString& , Services::ValueList ) ), |
64 | this, SLOT( addServicesToDevice( const QString& , Services::ValueList ) ) ); | 64 | this, SLOT( addServicesToDevice( const QString& , Services::ValueList ) ) ); |
65 | connect( localDevice, SIGNAL( available( const QString& device, bool connected ) ), | 65 | connect( localDevice, SIGNAL( available( const QString&, bool ) ), |
66 | this, SLOT( deviceActive( const QString& mac, bool connected ) ) ); | 66 | this, SLOT( deviceActive( const QString& , bool ) ) ); |
67 | 67 | ||
68 | //Load all icons needed | 68 | //Load all icons needed |
69 | 69 | ||
70 | offPix = Resource::loadPixmap( "editdelete" ); | 70 | offPix = Resource::loadPixmap( "editdelete" ); |
71 | onPix = Resource::loadPixmap( "installed" ); | 71 | onPix = Resource::loadPixmap( "installed" ); |
72 | 72 | ||
73 | QPalette pal = this->palette(); | 73 | QPalette pal = this->palette(); |
74 | QColor col = pal.color( QPalette::Active, QColorGroup::Background ); | 74 | QColor col = pal.color( QPalette::Active, QColorGroup::Background ); |
75 | pal.setColor( QPalette::Active, QColorGroup::Button, col ); | 75 | pal.setColor( QPalette::Active, QColorGroup::Button, col ); |
76 | pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); | 76 | pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); |
77 | pal.setColor( QPalette::Normal, QColorGroup::Button, col ); | 77 | pal.setColor( QPalette::Normal, QColorGroup::Button, col ); |
78 | pal.setColor( QPalette::Disabled, QColorGroup::Button, col ); | 78 | pal.setColor( QPalette::Disabled, QColorGroup::Button, col ); |
79 | this->setPalette( pal ); | 79 | this->setPalette( pal ); |
80 | 80 | ||
81 | setCaption( tr( "Bluetooth Manager" ) ); | 81 | setCaption( tr( "Bluetooth Manager" ) ); |
82 | 82 | ||
83 | readConfig(); | 83 | readConfig(); |
84 | initGui(); | 84 | initGui(); |
85 | 85 | ||
86 | //TESTING | 86 | //TESTING |
87 | ListView2->setRootIsDecorated(true); | 87 | ListView2->setRootIsDecorated(true); |
88 | 88 | ||
89 | BTListItem *topLV2 = new BTListItem( ListView2, "Siemens S45", "", "device" ); | 89 | BTListItem *topLV2 = new BTListItem( ListView2, "Siemens S45", "", "device" ); |
90 | topLV2->setPixmap( 1, onPix ); | 90 | topLV2->setPixmap( 1, onPix ); |