author | brad <brad> | 2004-04-03 07:01:25 (UTC) |
---|---|---|
committer | brad <brad> | 2004-04-03 07:01:25 (UTC) |
commit | a2fa6f99b2a9c9f6d7e3b49847dfad619c606ac1 (patch) (side-by-side diff) | |
tree | 4f9fa6de2199494e69d57d65b76333c41b5eeda6 | |
parent | ff531aabe98565e041301f5f5b796cbf61b84fa1 (diff) | |
download | opie-a2fa6f99b2a9c9f6d7e3b49847dfad619c606ac1.zip opie-a2fa6f99b2a9c9f6d7e3b49847dfad619c606ac1.tar.gz opie-a2fa6f99b2a9c9f6d7e3b49847dfad619c606ac1.tar.bz2 |
Fix for building on gcc-2.95.3
-rw-r--r-- | noncore/applets/wirelessapplet/wireless.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/applets/wirelessapplet/wireless.cpp b/noncore/applets/wirelessapplet/wireless.cpp index 711d0dd..0491a86 100644 --- a/noncore/applets/wirelessapplet/wireless.cpp +++ b/noncore/applets/wirelessapplet/wireless.cpp @@ -7,64 +7,67 @@ ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** **********************************************************************/ #include "wireless.h" #include "mgraph.h" #include "advancedconfig.h" /* OPIE */ #include <opie2/onetwork.h> #include <opie2/otaskbarapplet.h> #include <qpe/config.h> #include <qpe/qpeapplication.h> /* QT */ #include <qradiobutton.h> #include <qpushbutton.h> #include <qpainter.h> #include <qlabel.h> #include <qslider.h> #include <qbuttongroup.h> #include <qlayout.h> #include <qfile.h> #include <qtextstream.h> /* STD */ #include <math.h> #include <sys/types.h> #include <signal.h> +#if defined (__GNUC__) && (__GNUC__ < 3) +#define round qRound +#endif //#define MDEBUG #undef MDEBUG using namespace Opie::Ui; using namespace Opie::Net; WirelessControl::WirelessControl( WirelessApplet *applet, QWidget *parent, const char *name ) : QFrame( parent, name, WStyle_StaysOnTop | WType_Popup ), applet( applet ) { readConfig(); writeConfigEntry( "UpdateFrequency", updateFrequency ); setFrameStyle( QFrame::PopupPanel | QFrame::Raised ); QGridLayout *grid = new QGridLayout( this, 3, 2, 6, 2, "top layout" ); /* status label */ statusLabel = new QLabel( this, "statuslabel" ); QString text( "Wireless Status:<br>" "*** Unknown ***<br>" "Card not inserted ?<br>" "Or Sharp ROM ?<br>" "CELL: 00:00:00:00:00:00" ); /* QString text( "Station: Unknown<br>" "ESSID: Unknown<br>" "MODE: Unknown<br>" "FREQ: Unknown<br>" "CELL: AA:BB:CC:DD:EE:FF" ); */ statusLabel->setText( text ); statusLabel->setFixedSize( statusLabel->sizeHint() ); grid->addWidget( statusLabel, 0, 0 ); |