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.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kgantt/kgantt/xQGanttBarViewPort_Events.cpp b/kgantt/kgantt/xQGanttBarViewPort_Events.cpp
index 1791689e..be6d38b5 100644
--- a/kgantt/kgantt/xQGanttBarViewPort_Events.cpp
+++ b/kgantt/kgantt/xQGanttBarViewPort_Events.cpp
@@ -66,7 +66,7 @@ xQGanttBarViewPort::mousePressEvent(TQMouseEvent* e)
*/
if(e->button() == MidButton && _mode == Select) {
- xQTaskPosition* tp = _gItemList.find(_currentItem);
+ xTQTaskPosition* tp = _gItemList.tqfind(_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.find(_currentItem)->_screenY - 50 );
+ _itemInfo->move(e->x() + 25, _gItemList.tqfind(_currentItem)->_screenY - 50 );
_itemInfo->show();
}
else
@@ -245,7 +245,7 @@ xQGanttBarViewPort::mouseReleaseEvent(TQMouseEvent* e)
double sys_width = fabs(x2 - x1);
- double mass = (_parent->visibleWidth()/ sys_width);
+ double mass = (_tqparent->visibleWidth()/ sys_width);
zoom(mass, (int) (x1+(x2-x1)/2), (int) (y1+(y2-y1)/2) );
@@ -298,7 +298,7 @@ xQGanttBarViewPort::mouseMoveEvent(TQMouseEvent* e)
int pixeldiff = e->x() - _startPoint->x();
_timediff = (int) ((double) pixeldiff / _scaleX + 0.5 );
- xQTaskPosition* tpos = _gItemList[_currentItem];
+ xTQTaskPosition* tpos = _gItemList[_currentItem];
int x = tpos->_screenX; int w = tpos->_screenW;
@@ -366,15 +366,15 @@ xQGanttBarViewPort::mouseMoveEvent(TQMouseEvent* e)
_itemInfo->setText( stmp );
_itemInfo->adjustSize();
- _itemInfo->move(e->x() + 25, _gItemList.find(_currentItem)->_screenY - 50);
+ _itemInfo->move(e->x() + 25, _gItemList.tqfind(_currentItem)->_screenY - 50);
_itemInfo->show();
if(oldx > 0) {
- p.fillRect(oldx, _gItemList.find(_currentItem)->_screenY,
- oldw, _gItemList.find(_currentItem)->_screenH,
+ p.fillRect(oldx, _gItemList.tqfind(_currentItem)->_screenY,
+ oldw, _gItemList.tqfind(_currentItem)->_screenH,
TQBrush(TQColor(50,50,50), Dense4Pattern));
- p.drawRect(oldx, _gItemList.find(_currentItem)->_screenY,
- oldw, _gItemList.find(_currentItem)->_screenH);
+ p.drawRect(oldx, _gItemList.tqfind(_currentItem)->_screenY,
+ oldw, _gItemList.tqfind(_currentItem)->_screenH);
p.setPen(_solidPen);
if(_changeStart)
@@ -386,11 +386,11 @@ xQGanttBarViewPort::mouseMoveEvent(TQMouseEvent* e)
}
p.setPen(_dashPen);
- p.fillRect(x, _gItemList.find(_currentItem)->_screenY,
- w, _gItemList.find(_currentItem)->_screenH,
+ p.fillRect(x, _gItemList.tqfind(_currentItem)->_screenY,
+ w, _gItemList.tqfind(_currentItem)->_screenH,
TQBrush(TQColor(50,50,50), Dense4Pattern) );
- p.drawRect(x, _gItemList.find(_currentItem)->_screenY,
- w, _gItemList.find(_currentItem)->_screenH);
+ p.drawRect(x, _gItemList.tqfind(_currentItem)->_screenY,
+ w, _gItemList.tqfind(_currentItem)->_screenH);
p.setPen(_solidPen);
if(_changeStart)