summaryrefslogtreecommitdiffstats
path: root/src/gui/plvitem.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
commit87a016680e3677da3993f333561e79eb0cead7d5 (patch)
treecbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/gui/plvitem.h
parent6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff)
downloadktechlab-87a016680e3677da3993f333561e79eb0cead7d5.tar.gz
ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.zip
TQt4 port ktechlab
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1238801 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/plvitem.h')
-rw-r--r--src/gui/plvitem.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/gui/plvitem.h b/src/gui/plvitem.h
index fd48845..9dc1763 100644
--- a/src/gui/plvitem.h
+++ b/src/gui/plvitem.h
@@ -12,9 +12,9 @@
#define PLVITEM_H
#include <klistview.h>
-#include <qstring.h>
-#include <qguardedptr.h>
-#include <qobject.h>
+#include <tqstring.h>
+#include <tqguardedptr.h>
+#include <tqobject.h>
class Variant;
@@ -24,28 +24,29 @@ class Variant;
PropertiesListView Item
Basic item, which holds the Variant data and Id for an item
*/
-class PLVItem : public QObject, public KListViewItem
+class PLVItem : public TQObject, public KListViewItem
{
Q_OBJECT
+ TQ_OBJECT
public:
- PLVItem( KListView *listview, const QString &id, Variant * data );
+ PLVItem( KListView *listview, const TQString &id, Variant * data );
~PLVItem();
- QString id() const { return m_id; }
+ TQString id() const { return m_id; }
Variant * data() const { return p_data; }
- virtual int width ( const QFontMetrics & fm, const QListView * lv, int c ) const;
+ virtual int width ( const TQFontMetrics & fm, const TQListView * lv, int c ) const;
public slots:
/**
* Call to change the data held by an item, and update the display
* accordingly.
*/
- virtual void updateData(QVariant value);
+ virtual void updateData(TQVariant value);
protected:
- QString m_id;
- QGuardedPtr<Variant> p_data;
+ TQString m_id;
+ TQGuardedPtr<Variant> p_data;
};
/**
@@ -54,13 +55,13 @@ class PLVItem : public QObject, public KListViewItem
class PLVColorItem : public PLVItem
{
public:
- PLVColorItem( KListView *listview, const QString &id, Variant *data );
+ PLVColorItem( KListView *listview, const TQString &id, Variant *data );
~PLVColorItem();
- void updateData(QVariant value);
+ void updateData(TQVariant value);
protected:
- virtual void paintCell( QPainter * p, const QColorGroup & cg, int column, int width, int align );
+ virtual void paintCell( TQPainter * p, const TQColorGroup & cg, int column, int width, int align );
};
#endif