summaryrefslogtreecommitdiffstats
path: root/arts/builder/structureport.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 06:00:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 06:00:15 +0000
commitb1057f437bf65300831a0ccb45b920787c6b318d (patch)
treef8a73db06ca1180d0da0ba6dfbe786197b4f4bc3 /arts/builder/structureport.cpp
parent4ddfca384ced9ad654213aef9dc2c3973720b980 (diff)
downloadtdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.tar.gz
tdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.zip
TQt4 port kdemultimedia
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1236079 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'arts/builder/structureport.cpp')
-rw-r--r--arts/builder/structureport.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/arts/builder/structureport.cpp b/arts/builder/structureport.cpp
index 35b36b45..55c15211 100644
--- a/arts/builder/structureport.cpp
+++ b/arts/builder/structureport.cpp
@@ -104,8 +104,8 @@ void StructurePort::drawSegment(TQPainter *dest, int cellsize, int segment)
TQColor mcolor(43,43,168);
TQColor mcolorlight(164,176,242);
- TQColorGroup g( Qt::white, Qt::blue, mcolorlight, mcolor.dark(), mcolor,
- Qt::black, Qt::black );
+ TQColorGroup g( TQt::white, TQt::blue, mcolorlight, mcolor.dark(), mcolor,
+ TQt::black, TQt::black );
TQBrush fill( mcolor );
TQPen textpen(TQColor(255,255,180),1);
int border = cellsize/10;
@@ -117,7 +117,7 @@ void StructurePort::drawSegment(TQPainter *dest, int cellsize, int segment)
// Selection box
if(_selected)
{
- TQPen pen(Qt::white,1,Qt::DotLine);
+ TQPen pen(TQt::white,1,TQt::DotLine);
p.setPen(pen);
p.drawRect(0,boxtop,cellsize,cellsize/2);
@@ -126,7 +126,7 @@ void StructurePort::drawSegment(TQPainter *dest, int cellsize, int segment)
int textwidth;
TQString label=DrawUtils::cropText(&p, pname, cellsize-border*2, textwidth);
p.drawText(border,border+boxtop,cellsize-border-1,(cellsize/2-1)-2*border,
- Qt::AlignCenter,label);
+ TQt::AlignCenter,label);
int arrowwidth = cellsize/4;
@@ -195,7 +195,7 @@ d | |
a.setPoint(8,t,b+w+l);
a.setPoint(9,t,b+l);
*/
- p.setPen(Qt::NoPen);
+ p.setPen(TQt::NoPen);
p.setBrush(fbrush);
p.drawPolygon(a);
if(delta==1 && direction==0)
@@ -224,7 +224,7 @@ ModulePort *StructurePort::portAt(int segment, int x, int y)
assert(segment == 0);
TQPoint clickpoint(x,y);
- if(_port->clickrect.contains(clickpoint)) return _port;
+ if(_port->clickrect.tqcontains(clickpoint)) return _port;
return 0;
}