summaryrefslogtreecommitdiffstats
path: root/src/netlistviewitem.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 07:29:25 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 07:29:25 +0000
commit2f791ecf181cebc107ea2f68f5f7b29456844f39 (patch)
tree941f2fd6b7cfb353814323f8c1bb083dbbda8af5 /src/netlistviewitem.h
parent2e4e9860d4cc5b9462f9875c100dd13d55365563 (diff)
downloadwlassistant-2f791ecf181cebc107ea2f68f5f7b29456844f39.tar.gz
wlassistant-2f791ecf181cebc107ea2f68f5f7b29456844f39.zip
TQt4 port wlassistant
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/wlassistant@1239055 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/netlistviewitem.h')
-rw-r--r--src/netlistviewitem.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/netlistviewitem.h b/src/netlistviewitem.h
index 6410c86..084c274 100644
--- a/src/netlistviewitem.h
+++ b/src/netlistviewitem.h
@@ -23,7 +23,7 @@
#include <iostream>
-#include <qpainter.h>
+#include <tqpainter.h>
#include <klistview.h>
#include <kmessagebox.h>
@@ -31,11 +31,11 @@
class NetListViewItem : public KListViewItem
{
public:
- //NetListViewItem(KListView *parent) : KListViewItem(parent) {}
- //NetListViewItem(KListView *parent, KListViewItem *after) : KListViewItem(parent, after) {}
- //NetListViewItem(KListView *parent, KListViewItem *after, QString essid, QString mode) : KListViewItem(parent, after, essid, mode) {}
- NetListViewItem(KListView *parent, QString essid, QString chan, int quality, bool enc, QString ap, bool hidden, bool connected = 0 )
- : KListViewItem(parent, QString::null, QString::null, QString::null, QString::null, QString::null)
+ //NetListViewItem(KListView *tqparent) : KListViewItem(tqparent) {}
+ //NetListViewItem(KListView *tqparent, KListViewItem *after) : KListViewItem(tqparent, after) {}
+ //NetListViewItem(KListView *tqparent, KListViewItem *after, TQString essid, TQString mode) : KListViewItem(tqparent, after, essid, mode) {}
+ NetListViewItem(KListView *tqparent, TQString essid, TQString chan, int quality, bool enc, TQString ap, bool hidden, bool connected = 0 )
+ : KListViewItem(tqparent, TQString(), TQString(), TQString(), TQString(), TQString())
{
mEssid = essid;
mChannel = chan;
@@ -46,38 +46,38 @@ public:
mHidden = hidden;
mConnected = connected;
mHeight = height();
- mWpaSettings = QStringList();
+ mWpaSettings = TQStringList();
}
~NetListViewItem()
{}
- void setEssid(const QString& theValue)
+ void setEssid(const TQString& theValue)
{
mEssid = theValue;
setText(mEssidColumn, mEssid);
//update();
}
- QString essid() const
+ TQString essid() const
{
return mEssid;
}
- void setChannel(const QString& theValue)
+ void setChannel(const TQString& theValue)
{
- if ( mChannel != theValue ) { //repaint only if difference visible in quality stars
+ if ( mChannel != theValue ) { //tqrepaint only if difference visible in quality stars
mChannel = theValue;
- repaint();
+ tqrepaint();
}
}
- QString channel() const
+ TQString channel() const
{
return mChannel;
}
- /*QString mode() const
+ /*TQString mode() const
{
return mMode;
}*/
@@ -87,12 +87,12 @@ public:
return mEnc;
}
- QString ap() const
+ TQString ap() const
{
return mAP;
}
- void setAp(const QString& ap) {
+ void setAp(const TQString& ap) {
mAP = ap;
setText(mAPColumn, mAP);
}
@@ -111,7 +111,7 @@ public:
mHeight-=10;
}
setHeight( mHeight );
- repaint();
+ tqrepaint();
}
@@ -122,9 +122,9 @@ public:
void setQuality(const int& theValue)
{
- if ( int(mQuality/8) != int(theValue/8) ) { //repaint only if difference visible in quality stars
+ if ( int(mQuality/8) != int(theValue/8) ) { //tqrepaint only if difference visible in quality stars
mQuality = theValue;
- repaint();
+ tqrepaint();
} else
mQuality = theValue;
}
@@ -134,13 +134,13 @@ public:
return mQuality;
}
- void setWpaSettings(const QStringList& theValue)
+ void setWpaSettings(const TQStringList& theValue)
{
mWpaSettings = theValue;
}
- QStringList wpaSettings() const
+ TQStringList wpaSettings() const
{
return mWpaSettings;
}
@@ -150,20 +150,20 @@ public:
private:
- virtual void paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int alignment);
- virtual int width(const QFontMetrics &fm, const QListView *lv, int column) const;
- virtual QString key( int column, bool ascending ) const;
+ virtual void paintCell (TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment);
+ virtual int width(const TQFontMetrics &fm, const TQListView *lv, int column) const;
+ virtual TQString key( int column, bool ascending ) const;
- QString mEssid;
- QString mChannel;
- //QString mMode;
+ TQString mEssid;
+ TQString mChannel;
+ //TQString mMode;
int mQuality;
bool mEnc;
- QString mAP;
+ TQString mAP;
bool mHidden;
bool mConnected;
int mHeight;
- QStringList mWpaSettings;
+ TQStringList mWpaSettings;
static const int mEssidColumn = 0;
static const int mChanColumn = 1;