summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show 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 {
startTimer(5000);
btDevice = 0;
+ bluezactive = false;
+ bluezDiscoveryActive = false;
}
@@ -101,5 +103,5 @@ namespace OpieTooth {
/* Refresh active state */
- timerEvent(NULL);
+ timerEvent( 0 );
@@ -129,22 +131,22 @@ namespace OpieTooth {
case 0:
setBluezStatus(0);
- timerEvent(NULL);
+ timerEvent( 0 );
break;
case 1:
setBluezStatus(1);
- timerEvent(NULL);
+ timerEvent( 0 );
break;
case 2:
// start bluetoothmanager
launchManager();
- timerEvent(NULL);
+ timerEvent( 0 );
break;
case 3:
setBluezDiscoveryStatus(0);
- timerEvent(NULL);
+ timerEvent( 0 );
break;
case 4:
setBluezDiscoveryStatus(1);
- timerEvent(NULL);
+ timerEvent(0 );
break;
//case 7:
@@ -152,5 +154,4 @@ namespace OpieTooth {
}
- timerEvent(NULL);
delete signal;
delete menu;
@@ -178,5 +179,5 @@ namespace OpieTooth {
if ((bluezactive != oldactive) || (bluezDiscoveryActive != olddiscovery)) {
- paintEvent(NULL);
+ update();
}
}
@@ -190,6 +191,4 @@ namespace OpieTooth {
qDebug("paint bluetooth pixmap");
- p.eraseRect ( 0, 0, this->width(), this->height() );
-
if (bluezactive > 0) {
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:
int checkBluezDiscoveryStatus();
int setBluezDiscoveryStatus(int);
- int sockfd;
private:
@@ -63,5 +62,5 @@ public slots:
QPixmap bluezDiscoveryOnPixmap;
bool bluezactive;
- int bluezDiscoveryActive;
+ bool bluezDiscoveryActive;
private slots: