-rw-r--r-- | noncore/net/opietooth/applet/bluezapplet.cpp | 16 | ||||
-rw-r--r-- | noncore/net/opietooth/applet/bluezapplet.h | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/noncore/net/opietooth/applet/bluezapplet.cpp b/noncore/net/opietooth/applet/bluezapplet.cpp index 48698b6..e1c2341 100644 --- a/noncore/net/opietooth/applet/bluezapplet.cpp +++ b/noncore/net/opietooth/applet/bluezapplet.cpp @@ -34,8 +34,8 @@ #include <opie2/odevice.h> #include <opie2/odebug.h> +#include <opie2/oresource.h> #include <qpe/applnk.h> #include <qpe/qcopenvelope_qws.h> #include <qpe/config.h> -#include <qpe/resource.h> using namespace Opie::Core; @@ -59,10 +59,10 @@ namespace OpieTooth { setFixedHeight( AppLnk::smallIconSize() ); setFixedWidth( AppLnk::smallIconSize() ); - bluezOnPixmap = Resource::loadImage( "bluetoothapplet/bluezon" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ); - bluezOffPixmap = Resource::loadImage( "bluetoothapplet/bluezoff" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ); - //bluezDiscoveryOnPixmap = Resource::loadImage( "bluetoothapplet/magglass" )smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize()); + bluezOnPixmap = OResource::loadImage( "bluetoothapplet/bluezon", OResource::SmallIcon ); + bluezOffPixmap = OResource::loadImage( "bluetoothapplet/bluezoff", Opie::Core::OResource::SmallIcon ); + bluezDiscoveryOnPixmap = OResource::loadImage( "bluetoothapplet/bluezondiscovery", Opie::Core::OResource::SmallIcon ); startTimer(4000); btDevice = 0; - btManager = 0; + btManager = 0; bluezactive = false; bluezDiscoveryActive = false; @@ -271,11 +271,11 @@ int BluezApplet::position() if (bluezactive > 0) { - p.drawPixmap( 0, 1, bluezOnPixmap ); + p.drawPixmap( 0, 0, bluezOnPixmap ); } else { - p.drawPixmap( 0, 1, bluezOffPixmap ); + p.drawPixmap( 0, 0, bluezOffPixmap ); } if (bluezDiscoveryActive > 0) { - p.drawPixmap( 0, 1, bluezDiscoveryOnPixmap ); + p.drawPixmap( 0, 0, bluezDiscoveryOnPixmap ); } } diff --git a/noncore/net/opietooth/applet/bluezapplet.h b/noncore/net/opietooth/applet/bluezapplet.h index 3b99c0f..c096e29 100644 --- a/noncore/net/opietooth/applet/bluezapplet.h +++ b/noncore/net/opietooth/applet/bluezapplet.h @@ -61,5 +61,5 @@ public slots: private: Device* btDevice; - Manager *btManager; + Manager *btManager; QPixmap bluezOnPixmap; QPixmap bluezOffPixmap; |