summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/bluebase.cpp
Unidiff
Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp
index c905ea3..e3b9e53 100644
--- a/noncore/net/opietooth/manager/bluebase.cpp
+++ b/noncore/net/opietooth/manager/bluebase.cpp
@@ -48,24 +48,26 @@ namespace OpieTooth {
48 48
49 QObject::connect( (QObject*) PushButton2, SIGNAL( clicked() ), this, SLOT(startScan())); 49 QObject::connect( (QObject*) PushButton2, SIGNAL( clicked() ), this, SLOT(startScan()));
50 QObject::connect((QObject*)configApplyButton, SIGNAL(clicked() ), this, SLOT(applyConfigChanges())); 50 QObject::connect((QObject*)configApplyButton, SIGNAL(clicked() ), this, SLOT(applyConfigChanges()));
51 51
52 QPalette pal = this->palette(); 52 QPalette pal = this->palette();
53 QColor col = pal.color(QPalette::Active, QColorGroup::Background); 53 QColor col = pal.color(QPalette::Active, QColorGroup::Background);
54 pal.setColor(QPalette::Active, QColorGroup::Button, col); 54 pal.setColor(QPalette::Active, QColorGroup::Button, col);
55 pal.setColor(QPalette::Inactive, QColorGroup::Button, col); 55 pal.setColor(QPalette::Inactive, QColorGroup::Button, col);
56 pal.setColor(QPalette::Normal, QColorGroup::Button, col); 56 pal.setColor(QPalette::Normal, QColorGroup::Button, col);
57 pal.setColor(QPalette::Disabled, QColorGroup::Button, col); 57 pal.setColor(QPalette::Disabled, QColorGroup::Button, col);
58 this->setPalette(pal); 58 this->setPalette(pal);
59 59
60 setCaption( tr( "Bluetooth Manager" ) );
61
60 readConfig(); 62 readConfig();
61 initGui(); 63 initGui();
62 } 64 }
63 65
64/** 66/**
65 * Reads all options from the config file 67 * Reads all options from the config file
66 */ 68 */
67 void BlueBase::readConfig() { 69 void BlueBase::readConfig() {
68 70
69 Config cfg("bluetoothmanager"); 71 Config cfg("bluetoothmanager");
70 cfg.setGroup("bluezsettings"); 72 cfg.setGroup("bluezsettings");
71 73
@@ -143,23 +145,23 @@ namespace OpieTooth {
143 box->setText(tr("Changes applied")); 145 box->setText(tr("Changes applied"));
144 box->show(); 146 box->show();
145 147
146 // falls nötig hcid killhupen - die funktionalität adden 148 // falls nötig hcid killhupen - die funktionalität adden
147} 149}
148 150
149 151
150/** 152/**
151 * Open the "scan for devices" dialog 153 * Open the "scan for devices" dialog
152 */ 154 */
153 void BlueBase::startScan() { 155 void BlueBase::startScan() {
154 ScanDialog *scan = new ScanDialog( this, "", true); 156 ScanDialog *scan = new ScanDialog( this, "", true);
155 scan->exec(); 157 scan->showMaximized();
156 } 158 }
157 159
158/** 160/**
159 * Decontructor 161 * Decontructor
160 */ 162 */
161 BlueBase::~BlueBase(){ 163 BlueBase::~BlueBase(){
162 } 164 }
163 165
164} 166}
165 167