summaryrefslogtreecommitdiffstats
path: root/src/gui/plvitem.cpp
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.cpp
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.cpp')
-rw-r--r--src/gui/plvitem.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gui/plvitem.cpp b/src/gui/plvitem.cpp
index 420259b..55f6f6a 100644
--- a/src/gui/plvitem.cpp
+++ b/src/gui/plvitem.cpp
@@ -12,18 +12,18 @@
#include "variant.h"
#include <klistview.h>
-#include <qpainter.h>
-#include <qvariant.h>
+#include <tqpainter.h>
+#include <tqvariant.h>
//BEGIN class PLVItem
-PLVItem::PLVItem(KListView *listview, const QString &id, Variant *data)
+PLVItem::PLVItem(KListView *listview, const TQString &id, Variant *data)
: KListViewItem(listview, data->editorCaption())
{
p_data = data;
m_id = id;
setText(1,p_data->displayString() );
- connect(data,SIGNAL(valueChanged(QVariant, QVariant )),this,SLOT(updateData(QVariant )));
+ connect(data,TQT_SIGNAL(valueChanged(TQVariant, TQVariant )),this,TQT_SLOT(updateData(TQVariant )));
//setHeight(100);
}
@@ -33,7 +33,7 @@ PLVItem::~PLVItem()
{
}
-void PLVItem::updateData(QVariant /*value*/)
+void PLVItem::updateData(TQVariant /*value*/)
{
if (!p_data)
return;
@@ -41,7 +41,7 @@ void PLVItem::updateData(QVariant /*value*/)
}
-int PLVItem::width ( const QFontMetrics & fm, const QListView * lv, int c ) const
+int PLVItem::width ( const TQFontMetrics & fm, const TQListView * lv, int c ) const
{
if ( c == 0 )
return 100;
@@ -54,7 +54,7 @@ int PLVItem::width ( const QFontMetrics & fm, const QListView * lv, int c ) cons
//BEGIN class PLVColorItem
-PLVColorItem::PLVColorItem(KListView *listview, const QString &id, Variant *data)
+PLVColorItem::PLVColorItem(KListView *listview, const TQString &id, Variant *data)
: PLVItem(listview,id,data)
{
}
@@ -64,7 +64,7 @@ PLVColorItem::~PLVColorItem()
{
}
-void PLVColorItem::paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align )
+void PLVColorItem::paintCell ( TQPainter * p, const TQColorGroup & cg, int column, int width, int align )
{
if (!p_data)
return;
@@ -73,14 +73,14 @@ void PLVColorItem::paintCell ( QPainter * p, const QColorGroup & cg, int column,
if (column == 1)
{
p->setBackgroundColor( p_data->value().toColor() );
- QBrush brush( p_data->value().toColor() );
- p->fillRect(QRect(0,0,listView()->columnWidth(1),KListViewItem::height()),brush);
+ TQBrush brush( p_data->value().toColor() );
+ p->fillRect(TQRect(0,0,listView()->columnWidth(1),KListViewItem::height()),brush);
}
else
KListViewItem::paintCell(p,cg,column,width,align);
}
-void PLVColorItem::updateData(QVariant value)
+void PLVColorItem::updateData(TQVariant value)
{
listView()->triggerUpdate();
PLVItem::updateData(value);