author | harlekin <harlekin> | 2002-06-15 21:19:03 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-06-15 21:19:03 (UTC) |
commit | e31f557a84055ce00f814fd44427f9b3584243f9 (patch) (unidiff) | |
tree | 013a928eb50be77200e361b20df46d846bdf6250 /noncore/net/opietooth/manager/bluebase.cpp | |
parent | be10ba352f2a89bc5ec816eefc307a4ae2f7ff6b (diff) | |
download | opie-e31f557a84055ce00f814fd44427f9b3584243f9.zip opie-e31f557a84055ce00f814fd44427f9b3584243f9.tar.gz opie-e31f557a84055ce00f814fd44427f9b3584243f9.tar.bz2 |
update
Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/bluebase.cpp | 4 |
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 | |||
@@ -44,32 +44,34 @@ namespace OpieTooth { | |||
44 | 44 | ||
45 | BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) | 45 | BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) |
46 | : BluetoothBase( parent, name, fl ) { | 46 | : BluetoothBase( parent, name, fl ) { |
47 | 47 | ||
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 | ||
72 | 74 | ||
73 | deviceName = cfg.readEntry("name", "No name"); // name the device should identify with | 75 | deviceName = cfg.readEntry("name", "No name"); // name the device should identify with |
74 | defaultPasskey = cfg.readEntryCrypt("passkey", ""); // <- hmm, look up how good the trolls did that, maybe too weak | 76 | defaultPasskey = cfg.readEntryCrypt("passkey", ""); // <- hmm, look up how good the trolls did that, maybe too weak |
75 | useEncryption = cfg.readNumEntry("useEncryption", 1); | 77 | useEncryption = cfg.readNumEntry("useEncryption", 1); |
@@ -139,27 +141,27 @@ namespace OpieTooth { | |||
139 | 141 | ||
140 | writeConfig(); | 142 | writeConfig(); |
141 | 143 | ||
142 | QMessageBox* box = new QMessageBox(this, "Test"); | 144 | QMessageBox* box = new QMessageBox(this, "Test"); |
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 | ||