From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- wifi/kwireless/kwirelesswidget.h | 48 ++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'wifi/kwireless/kwirelesswidget.h') diff --git a/wifi/kwireless/kwirelesswidget.h b/wifi/kwireless/kwirelesswidget.h index 5a374d07..3321b583 100644 --- a/wifi/kwireless/kwirelesswidget.h +++ b/wifi/kwireless/kwirelesswidget.h @@ -10,32 +10,32 @@ #ifndef KWIRELESS_WIDGET_H #define KWIRELESS_WIDGET_H -#include -#include -#include -#include +#include +#include +#include +#include class DeviceInfo { public: - DeviceInfo(QString _device=QString::null, QString _essid=QString::null, - QString _encr=QString::null, + DeviceInfo(TQString _device=TQString::null, TQString _essid=TQString::null, + TQString _encr=TQString::null, float _quality=0, float _signal=0, float _noise=0, int _bitrate=0); - QString bitrateString(); + TQString bitrateString(); float quality(); - QString qualityString(); + TQString qualityString(); float signal(); - QString signalString(); + TQString signalString(); float noise(); - QString noiseString(); - const QString& device(); - const QString& essid(); + TQString noiseString(); + const TQString& device(); + const TQString& essid(); bool usesEncryption(); - QString encrString(); + TQString encrString(); protected: - QString m_device; // the device name (e.g., eth1) - QString m_essid; // the network name + TQString m_device; // the device name (e.g., eth1) + TQString m_essid; // the network name // all this values are coefficients (values between 0 and 1): float m_quality; // link quality level @@ -43,7 +43,7 @@ protected: float m_signal; // the signal level // all these values are absolut, e.g., 11000000 = 11MBit/sec: int m_bitrate; // bit rate - QString m_encr; + TQString m_encr; }; /** This wigdet displays the information about one wireless device. @@ -58,10 +58,10 @@ public: Horizontal, Vertical }; - static KWireLessWidget* makeWireLessWidget(QWidget *parent = 0, + static KWireLessWidget* makeWireLessWidget(TQWidget *parent = 0, const char *name = 0); protected: - KWireLessWidget(QWidget *parent=0, const char* name=0); + KWireLessWidget(TQWidget *parent=0, const char* name=0); public: ~KWireLessWidget(); void setMode(Mode); @@ -70,8 +70,8 @@ public: int preferredWidth(); int instances(); protected: - void paintEvent(QPaintEvent*); - void mousePressEvent(QMouseEvent *e); + void paintEvent(TQPaintEvent*); + void mousePressEvent(TQMouseEvent *e); protected: Mode mode; int frameWidth; @@ -81,12 +81,12 @@ protected: // some static device information // a list of DeviceInfo objects, this needs to be filled by the // poll method: - static QPtrList deviceInfo; - static QTimer *timer; // the poll timer - static QMutex mutex; + static TQPtrList deviceInfo; + static TQTimer *timer; // the poll timer + static TQMutex mutex; static int m_instances; signals: - void updateDeviceInfo(QPtrList *); + void updateDeviceInfo(TQPtrList *); protected slots: /** poll() is system dependent and needs to be implemented by deriving classes. -- cgit v1.2.1