diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 06:00:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 06:00:15 +0000 |
commit | b1057f437bf65300831a0ccb45b920787c6b318d (patch) | |
tree | f8a73db06ca1180d0da0ba6dfbe786197b4f4bc3 /arts/builder/createtool.cpp | |
parent | 4ddfca384ced9ad654213aef9dc2c3973720b980 (diff) | |
download | tdemultimedia-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/createtool.cpp')
-rw-r--r-- | arts/builder/createtool.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arts/builder/createtool.cpp b/arts/builder/createtool.cpp index 77781483..f8d5c7e5 100644 --- a/arts/builder/createtool.cpp +++ b/arts/builder/createtool.cpp @@ -43,7 +43,7 @@ CreateTool::CreateTool(ModuleWidget *mwidget) : MWidgetTool(mwidget) { oldCursor = mwidget->cursor(); - mwidget->setCursor(Qt::crossCursor); + mwidget->setCursor(TQt::crossCursor); oldMouseTracking = mwidget->hasMouseTracking(); mwidget->setMouseTracking(true); @@ -55,7 +55,7 @@ CreateTool::CreateTool(ModuleWidget *mwidget) CreateTool::~CreateTool() { - mwidget->repaint(componentRect); + mwidget->tqrepaint(componentRect); mwidget->setCursor(oldCursor); mwidget->setMouseTracking(oldMouseTracking); } @@ -89,7 +89,7 @@ void CreateTool::mouseMoveEvent(TQMouseEvent *e) && mwidget->colXPos(x + width, &cellx2) && mwidget->rowYPos(y + height, &celly2); if(!posok) return; - mwidget->repaint(componentRect); + mwidget->tqrepaint(componentRect); componentRect = TQRect(cellx, celly, cellx2 - cellx, celly2 - celly); TQPainter *p = new TQPainter; @@ -302,8 +302,8 @@ void ConnectPortsTool::mousePressEvent(TQMouseEvent *e) void ConnectPortsTool::mouseMoveEvent(TQMouseEvent *e) { TQPainter painter(mwidget); - painter.setPen(Qt::white); - mwidget->repaint(TQRect(firstPos, lastPos).normalize()); + painter.setPen(TQt::white); + mwidget->tqrepaint(TQRect(firstPos, lastPos).normalize()); painter.drawLine(firstPos, e->pos()); lastPos = e->pos(); } @@ -334,6 +334,6 @@ void ConnectPortsTool::mouseReleaseEvent(TQMouseEvent *e) } } } - mwidget->repaint(TQRect(firstPos, lastPos).normalize()); + mwidget->tqrepaint(TQRect(firstPos, lastPos).normalize()); mwidget->leaveTool(this); } |