diff options
Diffstat (limited to 'kgantt/kgantt/xQGanttBarViewPort.cpp')
-rw-r--r-- | kgantt/kgantt/xQGanttBarViewPort.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kgantt/kgantt/xQGanttBarViewPort.cpp b/kgantt/kgantt/xQGanttBarViewPort.cpp index 6ac4daae..536761ea 100644 --- a/kgantt/kgantt/xQGanttBarViewPort.cpp +++ b/kgantt/kgantt/xQGanttBarViewPort.cpp @@ -22,12 +22,12 @@ xQGanttBarViewPort::xQGanttBarViewPort(KGanttItem* toplevelitem, - xQGanttBarView* tqparent, + xQGanttBarView* parent, const char * name, WFlags f) - : TQFrame(tqparent,name,f) + : TQFrame(parent,name,f) ///////////////////////////////////////////////////////////////////////////// { - _tqparent = tqparent; + _parent = parent; closedIcon = TQPixmap(open_xpm); openedIcon = TQPixmap(close_xpm); @@ -239,7 +239,7 @@ xQGanttBarViewPort::initMenu() pix = _iconloader->loadIcon("configure.png", KIcon::Toolbar , 16 ); if(pix.isNull()) printf("configure.png not found !\n"); - _menu->insertItem(pix, i18n("Configure Gantt..."), _tqparent, TQT_SLOT(showConfig())); + _menu->insertItem(pix, i18n("Configure Gantt..."), _parent, TQT_SLOT(showConfig())); } @@ -839,7 +839,7 @@ xQGanttBarViewPort::zoom(double sfactor, int sx, int sy) recalc(); adjustSize(); - _tqparent->center(screenX(wx), screenY(wy) ); + _parent->center(screenX(wx), screenY(wy) ); TQWidget::update(); @@ -854,12 +854,12 @@ xQGanttBarViewPort::zoom(double sfactor) { printf("zoom %f \n", sfactor ); - int x = (int) (_tqparent->visibleWidth()/2 + 0.5); - int y = (int) (_tqparent->visibleHeight()/2 + 0.5); + int x = (int) (_parent->visibleWidth()/2 + 0.5); + int y = (int) (_parent->visibleHeight()/2 + 0.5); printf("dx/2 = %d, dy/2 = %d \n", x,y); - zoom(sfactor, x + _tqparent->contentsX(), y + _tqparent->contentsY() ); + zoom(sfactor, x + _parent->contentsX(), y + _parent->contentsY() ); } @@ -872,7 +872,7 @@ xQGanttBarViewPort::zoomAll() printf("zoom all. scaleX = %f\n", _scaleX ); #endif - _scaleX = ((double) _tqparent->visibleWidth()*60)/ + _scaleX = ((double) _parent->visibleWidth()*60)/ ((double) (_toplevelitem->getStart().secsTo(_toplevelitem->getEnd()) + _marginX*120)); recalc(); |