summaryrefslogtreecommitdiffstats
path: root/kgantt/kgantt/xQGanttBarViewPort_Events.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kgantt/kgantt/xQGanttBarViewPort_Events.cpp')
-rw-r--r--kgantt/kgantt/xQGanttBarViewPort_Events.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kgantt/kgantt/xQGanttBarViewPort_Events.cpp b/kgantt/kgantt/xQGanttBarViewPort_Events.cpp
index d7542d1c..ffd85d30 100644
--- a/kgantt/kgantt/xQGanttBarViewPort_Events.cpp
+++ b/kgantt/kgantt/xQGanttBarViewPort_Events.cpp
@@ -66,7 +66,7 @@ xQGanttBarViewPort::mousePressEvent(TQMouseEvent* e)
*/
if(e->button() == Qt::MidButton && _mode == Select) {
- xTQTaskPosition* tp = _gItemList.tqfind(_currentItem);
+ xTQTaskPosition* tp = _gItemList.find(_currentItem);
TQPainter p(this);
TQRect rect = p.boundingRect(tp->_textPosX,
@@ -118,7 +118,7 @@ xQGanttBarViewPort::mousePressEvent(TQMouseEvent* e)
_itemInfo->setText( tmp );
_itemInfo->adjustSize();
- _itemInfo->move(e->x() + 25, _gItemList.tqfind(_currentItem)->_screenY - 50 );
+ _itemInfo->move(e->x() + 25, _gItemList.find(_currentItem)->_screenY - 50 );
_itemInfo->show();
}
else
@@ -366,15 +366,15 @@ xQGanttBarViewPort::mouseMoveEvent(TQMouseEvent* e)
_itemInfo->setText( stmp );
_itemInfo->adjustSize();
- _itemInfo->move(e->x() + 25, _gItemList.tqfind(_currentItem)->_screenY - 50);
+ _itemInfo->move(e->x() + 25, _gItemList.find(_currentItem)->_screenY - 50);
_itemInfo->show();
if(oldx > 0) {
- p.fillRect(oldx, _gItemList.tqfind(_currentItem)->_screenY,
- oldw, _gItemList.tqfind(_currentItem)->_screenH,
+ p.fillRect(oldx, _gItemList.find(_currentItem)->_screenY,
+ oldw, _gItemList.find(_currentItem)->_screenH,
TQBrush(TQColor(50,50,50), Dense4Pattern));
- p.drawRect(oldx, _gItemList.tqfind(_currentItem)->_screenY,
- oldw, _gItemList.tqfind(_currentItem)->_screenH);
+ p.drawRect(oldx, _gItemList.find(_currentItem)->_screenY,
+ oldw, _gItemList.find(_currentItem)->_screenH);
p.setPen(_solidPen);
if(_changeStart)
@@ -386,11 +386,11 @@ xQGanttBarViewPort::mouseMoveEvent(TQMouseEvent* e)
}
p.setPen(_dashPen);
- p.fillRect(x, _gItemList.tqfind(_currentItem)->_screenY,
- w, _gItemList.tqfind(_currentItem)->_screenH,
+ p.fillRect(x, _gItemList.find(_currentItem)->_screenY,
+ w, _gItemList.find(_currentItem)->_screenH,
TQBrush(TQColor(50,50,50), Dense4Pattern) );
- p.drawRect(x, _gItemList.tqfind(_currentItem)->_screenY,
- w, _gItemList.tqfind(_currentItem)->_screenH);
+ p.drawRect(x, _gItemList.find(_currentItem)->_screenY,
+ w, _gItemList.find(_currentItem)->_screenH);
p.setPen(_solidPen);
if(_changeStart)