From 89efebff8f5a00089f02397aa0778dd0dbbacdbb Mon Sep 17 00:00:00 2001 From: mickeyl Date: Sat, 13 May 2006 11:47:05 +0000 Subject: don't use hand cooked #ifdef versions for conditional compiling, this breaks OE I added a numerical version code in OPIE_VERSION which you can use. fixed all tests in bluezapplet.cpp --- (limited to 'noncore') 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 @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -55,13 +56,11 @@ using namespace Opie::Core; /* STD */ #include -#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" ); bluezDiscoveryOnPixmap = Resource::loadPixmap( "bluetoothapplet/magglass.png" ); @@ -320,13 +319,13 @@ namespace OpieTooth { odebug << "paint bluetooth pixmap" << oendl; if (bluezactive) { -#ifdef OPIE120 +#if OPIE_VERSION < 102010 p.drawPixmap( 0, -1, bluezOnPixmap ); #else p.drawPixmap( 0, 0, bluezOnPixmap ); #endif } else { -#ifdef OPIE120 +#if OPIE_VERSION < 102010 p.drawPixmap( 0, -1, bluezOffPixmap ); #else p.drawPixmap( 0, 0, bluezOffPixmap ); -- cgit v0.9.0.2