Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/bluebase.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp index e3b9e53..71da82e 100644 --- a/noncore/net/opietooth/manager/bluebase.cpp +++ b/noncore/net/opietooth/manager/bluebase.cpp | |||
@@ -40,16 +40,20 @@ | |||
40 | 40 | ||
41 | 41 | ||
42 | namespace OpieTooth { | 42 | namespace OpieTooth { |
43 | 43 | ||
44 | class RemoteDevices; | ||
44 | 45 | ||
45 | BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) | 46 | BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) |
46 | : BluetoothBase( parent, name, fl ) { | 47 | : BluetoothBase( parent, name, fl ) { |
47 | 48 | ||
48 | 49 | ||
49 | QObject::connect( (QObject*) PushButton2, SIGNAL( clicked() ), this, SLOT(startScan())); | 50 | QObject::connect( (QObject*) PushButton2, SIGNAL( clicked() ), this, SLOT(startScan())); |
50 | QObject::connect((QObject*)configApplyButton, SIGNAL(clicked() ), this, SLOT(applyConfigChanges())); | 51 | QObject::connect((QObject*)configApplyButton, SIGNAL(clicked() ), this, SLOT(applyConfigChanges())); |
51 | 52 | ||
53 | |||
54 | |||
55 | |||
52 | QPalette pal = this->palette(); | 56 | QPalette pal = this->palette(); |
53 | QColor col = pal.color(QPalette::Active, QColorGroup::Background); | 57 | QColor col = pal.color(QPalette::Active, QColorGroup::Background); |
54 | pal.setColor(QPalette::Active, QColorGroup::Button, col); | 58 | pal.setColor(QPalette::Active, QColorGroup::Button, col); |
55 | pal.setColor(QPalette::Inactive, QColorGroup::Button, col); | 59 | pal.setColor(QPalette::Inactive, QColorGroup::Button, col); |
@@ -148,13 +152,23 @@ namespace OpieTooth { | |||
148 | // falls nötig hcid killhupen - die funktionalität adden | 152 | // falls nötig hcid killhupen - die funktionalität adden |
149 | } | 153 | } |
150 | 154 | ||
151 | 155 | ||
156 | void BlueBase::addSearchedDevices( QList<RemoteDevices> &newDevices ) { | ||
157 | |||
158 | |||
159 | |||
160 | } | ||
161 | |||
162 | |||
152 | /** | 163 | /** |
153 | * Open the "scan for devices" dialog | 164 | * Open the "scan for devices" dialog |
154 | */ | 165 | */ |
155 | void BlueBase::startScan() { | 166 | void BlueBase::startScan() { |
156 | ScanDialog *scan = new ScanDialog( this, "", true); | 167 | ScanDialog *scan = new ScanDialog( this, "", true); |
168 | QObject::connect((QObject*)scan, SIGNAL( selectedDevices(QList<RemoteDevices>&) ), | ||
169 | this, SLOT( addSearchedDevices(QList<RemoteDevices>& ) )); | ||
170 | |||
157 | scan->showMaximized(); | 171 | scan->showMaximized(); |
158 | } | 172 | } |
159 | 173 | ||
160 | /** | 174 | /** |