summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/applet/bluezapplet.cpp19
-rw-r--r--noncore/net/opietooth/applet/bluezapplet.h3
2 files changed, 10 insertions, 12 deletions
diff --git a/noncore/net/opietooth/applet/bluezapplet.cpp b/noncore/net/opietooth/applet/bluezapplet.cpp
index 8bb7a93..c0ad246 100644
--- a/noncore/net/opietooth/applet/bluezapplet.cpp
+++ b/noncore/net/opietooth/applet/bluezapplet.cpp
@@ -57,4 +57,6 @@ namespace OpieTooth {
57 startTimer(5000); 57 startTimer(5000);
58 btDevice = 0; 58 btDevice = 0;
59 bluezactive = false;
60 bluezDiscoveryActive = false;
59 61
60 } 62 }
@@ -101,5 +103,5 @@ namespace OpieTooth {
101 103
102 /* Refresh active state */ 104 /* Refresh active state */
103 timerEvent(NULL); 105 timerEvent( 0 );
104 106
105 107
@@ -129,22 +131,22 @@ namespace OpieTooth {
129 case 0: 131 case 0:
130 setBluezStatus(0); 132 setBluezStatus(0);
131 timerEvent(NULL); 133 timerEvent( 0 );
132 break; 134 break;
133 case 1: 135 case 1:
134 setBluezStatus(1); 136 setBluezStatus(1);
135 timerEvent(NULL); 137 timerEvent( 0 );
136 break; 138 break;
137 case 2: 139 case 2:
138 // start bluetoothmanager 140 // start bluetoothmanager
139 launchManager(); 141 launchManager();
140 timerEvent(NULL); 142 timerEvent( 0 );
141 break; 143 break;
142 case 3: 144 case 3:
143 setBluezDiscoveryStatus(0); 145 setBluezDiscoveryStatus(0);
144 timerEvent(NULL); 146 timerEvent( 0 );
145 break; 147 break;
146 case 4: 148 case 4:
147 setBluezDiscoveryStatus(1); 149 setBluezDiscoveryStatus(1);
148 timerEvent(NULL); 150 timerEvent(0 );
149 break; 151 break;
150 //case 7: 152 //case 7:
@@ -152,5 +154,4 @@ namespace OpieTooth {
152 } 154 }
153 155
154 timerEvent(NULL);
155 delete signal; 156 delete signal;
156 delete menu; 157 delete menu;
@@ -178,5 +179,5 @@ namespace OpieTooth {
178 179
179 if ((bluezactive != oldactive) || (bluezDiscoveryActive != olddiscovery)) { 180 if ((bluezactive != oldactive) || (bluezDiscoveryActive != olddiscovery)) {
180 paintEvent(NULL); 181 update();
181 } 182 }
182 } 183 }
@@ -190,6 +191,4 @@ namespace OpieTooth {
190 qDebug("paint bluetooth pixmap"); 191 qDebug("paint bluetooth pixmap");
191 192
192 p.eraseRect ( 0, 0, this->width(), this->height() );
193
194 if (bluezactive > 0) { 193 if (bluezactive > 0) {
195 p.drawPixmap( 0, 1, bluezOnPixmap ); 194 p.drawPixmap( 0, 1, bluezOnPixmap );
diff --git a/noncore/net/opietooth/applet/bluezapplet.h b/noncore/net/opietooth/applet/bluezapplet.h
index 6a8a00e..a8d91a5 100644
--- a/noncore/net/opietooth/applet/bluezapplet.h
+++ b/noncore/net/opietooth/applet/bluezapplet.h
@@ -55,5 +55,4 @@ public slots:
55 int checkBluezDiscoveryStatus(); 55 int checkBluezDiscoveryStatus();
56 int setBluezDiscoveryStatus(int); 56 int setBluezDiscoveryStatus(int);
57 int sockfd;
58 57
59 private: 58 private:
@@ -63,5 +62,5 @@ public slots:
63 QPixmap bluezDiscoveryOnPixmap; 62 QPixmap bluezDiscoveryOnPixmap;
64 bool bluezactive; 63 bool bluezactive;
65 int bluezDiscoveryActive; 64 bool bluezDiscoveryActive;
66 65
67private slots: 66private slots: