From 36a36a5c1015aa0d03f4515c401e907ddb9d6291 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 22:19:39 +0000 Subject: rename the following methods: tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kgantt/kgantt/KGantt.cpp | 4 ++-- kgantt/kgantt/KGantt.h | 2 +- kgantt/kgantt/KGanttBarConfig.cpp | 4 ++-- kgantt/kgantt/KGanttBarConfig.h | 2 +- kgantt/kgantt/xQGanttBarView.cpp | 4 ++-- kgantt/kgantt/xQGanttBarView.h | 2 +- kgantt/kgantt/xQGanttBarViewPort.cpp | 18 +++++++++--------- kgantt/kgantt/xQGanttBarViewPort.h | 4 ++-- kgantt/kgantt/xQGanttBarViewPort_Events.cpp | 2 +- kgantt/kgantt/xQGanttListView.cpp | 4 ++-- kgantt/kgantt/xQGanttListView.h | 2 +- kgantt/kgantt/xQGanttListViewPort.cpp | 4 ++-- kgantt/kgantt/xQGanttListViewPort.h | 2 +- 13 files changed, 27 insertions(+), 27 deletions(-) (limited to 'kgantt/kgantt') diff --git a/kgantt/kgantt/KGantt.cpp b/kgantt/kgantt/KGantt.cpp index a3360c7a..249f11ad 100644 --- a/kgantt/kgantt/KGantt.cpp +++ b/kgantt/kgantt/KGantt.cpp @@ -15,8 +15,8 @@ KGantt::KGantt(KGanttItem* toplevelitem, - TQWidget* tqparent, const char * name, WFlags f) - : TQWidget(tqparent,name,f) + TQWidget* parent, const char * name, WFlags f) + : TQWidget(parent,name,f) { #ifdef _DEBUG_ printf("KGantt::KGantt()\n"); diff --git a/kgantt/kgantt/KGantt.h b/kgantt/kgantt/KGantt.h index 7448e01a..5fc77fe4 100644 --- a/kgantt/kgantt/KGantt.h +++ b/kgantt/kgantt/KGantt.h @@ -103,7 +103,7 @@ public: * */ KGantt(KGanttItem* toplevelitem = 0, - TQWidget* tqparent = 0, const char * name=0, WFlags f=0 ); + TQWidget* parent = 0, const char * name=0, WFlags f=0 ); /// Destructor. diff --git a/kgantt/kgantt/KGanttBarConfig.cpp b/kgantt/kgantt/KGanttBarConfig.cpp index e41dc7c6..ff5f4ee8 100644 --- a/kgantt/kgantt/KGanttBarConfig.cpp +++ b/kgantt/kgantt/KGanttBarConfig.cpp @@ -13,9 +13,9 @@ KGanttBarConfig::KGanttBarConfig(xQGanttBarView* barview, - TQWidget* tqparent, + TQWidget* parent, const char * name, WFlags f) - : TQWidget(tqparent,name,f) + : TQWidget(parent,name,f) { _barview = barview; KColorButton* b = new KColorButton(this); diff --git a/kgantt/kgantt/KGanttBarConfig.h b/kgantt/kgantt/KGanttBarConfig.h index e12475b1..fae399d0 100644 --- a/kgantt/kgantt/KGanttBarConfig.h +++ b/kgantt/kgantt/KGanttBarConfig.h @@ -43,7 +43,7 @@ class KGanttBarConfig : public TQWidget public: KGanttBarConfig(xQGanttBarView* barview, - TQWidget* tqparent = 0, const char* name=0, WFlags f=0); + TQWidget* parent = 0, const char* name=0, WFlags f=0); protected slots: diff --git a/kgantt/kgantt/xQGanttBarView.cpp b/kgantt/kgantt/xQGanttBarView.cpp index f85fea6b..60d25797 100644 --- a/kgantt/kgantt/xQGanttBarView.cpp +++ b/kgantt/kgantt/xQGanttBarView.cpp @@ -12,9 +12,9 @@ xQGanttBarView::xQGanttBarView(KGanttItem* toplevelitem, - TQWidget* tqparent, + TQWidget* parent, const char * name, WFlags f) - : TQScrollView(tqparent,name,f) + : TQScrollView(parent,name,f) { _config = NULL; diff --git a/kgantt/kgantt/xQGanttBarView.h b/kgantt/kgantt/xQGanttBarView.h index d9037b40..b22753c5 100644 --- a/kgantt/kgantt/xQGanttBarView.h +++ b/kgantt/kgantt/xQGanttBarView.h @@ -62,7 +62,7 @@ public: /*! * */ - xQGanttBarView(KGanttItem* toplevelitem, TQWidget* tqparent = 0, + xQGanttBarView(KGanttItem* toplevelitem, TQWidget* parent = 0, const char * name=0, WFlags f=0 ); 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(); diff --git a/kgantt/kgantt/xQGanttBarViewPort.h b/kgantt/kgantt/xQGanttBarViewPort.h index e84761e1..fa6b7483 100644 --- a/kgantt/kgantt/xQGanttBarViewPort.h +++ b/kgantt/kgantt/xQGanttBarViewPort.h @@ -104,7 +104,7 @@ public: /*! * */ - xQGanttBarViewPort(KGanttItem* toplevelitem, xQGanttBarView* tqparent = 0, + xQGanttBarViewPort(KGanttItem* toplevelitem, xQGanttBarView* parent = 0, const char * name=0, WFlags f=0 ); @@ -245,7 +245,7 @@ private: // this will be set by setParentScrollView() - xQGanttBarView* _tqparent; + xQGanttBarView* _parent; int _grid, _snapgrid; bool _drawGrid, _drawHeader; diff --git a/kgantt/kgantt/xQGanttBarViewPort_Events.cpp b/kgantt/kgantt/xQGanttBarViewPort_Events.cpp index ffd85d30..52f017e2 100644 --- a/kgantt/kgantt/xQGanttBarViewPort_Events.cpp +++ b/kgantt/kgantt/xQGanttBarViewPort_Events.cpp @@ -245,7 +245,7 @@ xQGanttBarViewPort::mouseReleaseEvent(TQMouseEvent* e) double sys_width = fabs(x2 - x1); - double mass = (_tqparent->visibleWidth()/ sys_width); + double mass = (_parent->visibleWidth()/ sys_width); zoom(mass, (int) (x1+(x2-x1)/2), (int) (y1+(y2-y1)/2) ); diff --git a/kgantt/kgantt/xQGanttListView.cpp b/kgantt/kgantt/xQGanttListView.cpp index f5a587da..3f5f44c2 100644 --- a/kgantt/kgantt/xQGanttListView.cpp +++ b/kgantt/kgantt/xQGanttListView.cpp @@ -10,9 +10,9 @@ #include #include -xQGanttListView::xQGanttListView(KGanttItem* toplevelitem, TQWidget* tqparent, +xQGanttListView::xQGanttListView(KGanttItem* toplevelitem, TQWidget* parent, const char * name, WFlags f) - : TQScrollView(tqparent,name,f) + : TQScrollView(parent,name,f) ///////////////////////////////////////////////////////// { _toplevelitem = toplevelitem; diff --git a/kgantt/kgantt/xQGanttListView.h b/kgantt/kgantt/xQGanttListView.h index fa0f973d..3842abe8 100644 --- a/kgantt/kgantt/xQGanttListView.h +++ b/kgantt/kgantt/xQGanttListView.h @@ -59,7 +59,7 @@ public: /*! * */ - xQGanttListView(KGanttItem* toplevelitem, TQWidget* tqparent = 0, + xQGanttListView(KGanttItem* toplevelitem, TQWidget* parent = 0, const char * name=0, WFlags f=0 ); diff --git a/kgantt/kgantt/xQGanttListViewPort.cpp b/kgantt/kgantt/xQGanttListViewPort.cpp index 2549c880..d643fe8c 100644 --- a/kgantt/kgantt/xQGanttListViewPort.cpp +++ b/kgantt/kgantt/xQGanttListViewPort.cpp @@ -13,9 +13,9 @@ int xQGanttListViewPort::_ListViewCounter = 0; -xQGanttListViewPort::xQGanttListViewPort(KGanttItem* toplevelitem, TQWidget* tqparent, +xQGanttListViewPort::xQGanttListViewPort(KGanttItem* toplevelitem, TQWidget* parent, const char * name, WFlags f ) - : TQFrame(tqparent,name,f) + : TQFrame(parent,name,f) { _toplevelitem = toplevelitem; diff --git a/kgantt/kgantt/xQGanttListViewPort.h b/kgantt/kgantt/xQGanttListViewPort.h index a2e97ca3..365b316b 100644 --- a/kgantt/kgantt/xQGanttListViewPort.h +++ b/kgantt/kgantt/xQGanttListViewPort.h @@ -61,7 +61,7 @@ public: /*! * */ - xQGanttListViewPort(KGanttItem* toplevelitem, TQWidget* tqparent = 0, + xQGanttListViewPort(KGanttItem* toplevelitem, TQWidget* parent = 0, const char * name=0, WFlags f=0 ); -- cgit v1.2.3