-rw-r--r-- | noncore/net/opietooth/applet/bluezapplet.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/noncore/net/opietooth/applet/bluezapplet.cpp b/noncore/net/opietooth/applet/bluezapplet.cpp index 6351d4e..f7774f0 100644 --- a/noncore/net/opietooth/applet/bluezapplet.cpp +++ b/noncore/net/opietooth/applet/bluezapplet.cpp @@ -36,4 +36,5 @@ #include <opie2/oresource.h> #include <opie2/oprocess.h> +#include <qpe/version.h> #include <qpe/applnk.h> #include <qpe/qcopenvelope_qws.h> @@ -56,11 +57,9 @@ using namespace Opie::Core; #include <device.h> -#define OPIE120 // undefine it fo the latest OPIE - namespace OpieTooth { BluezApplet::BluezApplet( QWidget *parent, const char *name ) : QWidget( parent, name ) { setFixedHeight( AppLnk::smallIconSize() ); setFixedWidth( AppLnk::smallIconSize() ); -#ifdef OPIE120 +#if OPIE_VERSION < 102010 bluezOnPixmap = Resource::loadPixmap( "bluetoothapplet/bluezon" ); bluezOffPixmap = Resource::loadPixmap( "bluetoothapplet/bluezoff" ); @@ -321,5 +320,5 @@ namespace OpieTooth { if (bluezactive) { -#ifdef OPIE120 +#if OPIE_VERSION < 102010 p.drawPixmap( 0, -1, bluezOnPixmap ); #else @@ -327,5 +326,5 @@ namespace OpieTooth { #endif } else { -#ifdef OPIE120 +#if OPIE_VERSION < 102010 p.drawPixmap( 0, -1, bluezOffPixmap ); #else |