diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 36c36b53a129509d56fdaa0a7c9fcbcacd0c5826 (patch) | |
tree | 629d3942958745660e36c30b0d6139af9459c0f8 /kimagemapeditor/kimearea.cpp | |
parent | 929d7ae4f69d62b8f1f6d3506adf75f017753935 (diff) | |
download | tdewebdev-36c36b53a129509d56fdaa0a7c9fcbcacd0c5826.tar.gz tdewebdev-36c36b53a129509d56fdaa0a7c9fcbcacd0c5826.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kimagemapeditor/kimearea.cpp')
-rw-r--r-- | kimagemapeditor/kimearea.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kimagemapeditor/kimearea.cpp b/kimagemapeditor/kimearea.cpp index 4a6be5be..e3cb169f 100644 --- a/kimagemapeditor/kimearea.cpp +++ b/kimagemapeditor/kimearea.cpp @@ -85,7 +85,7 @@ Area::~Area() { } -bool Area::tqcontains(const TQPoint &) const { +bool Area::contains(const TQPoint &) const { return false; } @@ -100,7 +100,7 @@ TQString Area::attribute(const TQString & name) const void Area::setAttribute(const TQString & name, const TQString & value) { - _attributes.tqreplace(name.lower(),value); + _attributes.replace(name.lower(),value); if (value.isEmpty()) _attributes.remove(name.lower()); } @@ -279,9 +279,9 @@ void Area::removeCoord(int pos) { bool Area::removeSelectionPoint(TQRect * r) { - if (_selectionPoints->tqcontains(r)) + if (_selectionPoints->contains(r)) { - removeCoord(_selectionPoints->tqfind(r)); + removeCoord(_selectionPoints->find(r)); return true; } @@ -447,7 +447,7 @@ TQRect* Area::onSelectionPoint(const TQPoint & p, double zoom) const r2.moveCenter(r2.center()*zoom); - if (r2.tqcontains(p)) + if (r2.contains(p)) { return r; @@ -683,8 +683,8 @@ TQString RectArea::coordsToString() const return retStr; } -bool RectArea::tqcontains(const TQPoint & p) const{ - return rect().tqcontains(p); +bool RectArea::contains(const TQPoint & p) const{ + return rect().contains(p); } void RectArea::moveSelectionPoint(TQRect* selectionPoint, const TQPoint & p) @@ -841,10 +841,10 @@ TQString CircleArea::coordsToString() const return retStr; } -bool CircleArea::tqcontains(const TQPoint & p) const +bool CircleArea::contains(const TQPoint & p) const { TQRegion r(_rect,TQRegion::Ellipse); - return r.tqcontains(p); + return r.contains(p); } void CircleArea::moveSelectionPoint(TQRect* selectionPoint, const TQPoint & p) @@ -1160,12 +1160,12 @@ int PolyArea::addCoord(const TQPoint & p) } -bool PolyArea::tqcontains(const TQPoint & p) const +bool PolyArea::contains(const TQPoint & p) const { // A line can't contain a point if (_coords->count() >2 ) { TQRegion r(*_coords); - return r.tqcontains(p); + return r.contains(p); } else return false; @@ -1338,7 +1338,7 @@ void AreaSelection::add(Area *a) for (Area* area = list.first(); area != 0L; area = list.next() ) { - if ( _areas->tqfind( area ) == -1 ) { + if ( _areas->find( area ) == -1 ) { _areas->append( area ); // Must come before area->setSelected area->setSelected( true ); } @@ -1346,7 +1346,7 @@ void AreaSelection::add(Area *a) } else { - if ( _areas->tqfind( a ) == -1 ) { + if ( _areas->find( a ) == -1 ) { _areas->append( a ); // Must come before a->setSelected a->setSelected( true ); } @@ -1357,7 +1357,7 @@ void AreaSelection::add(Area *a) void AreaSelection::remove(Area *a) { - if (_areas->tqfind(a) == -1) + if (_areas->find(a) == -1) return; a->setSelected( false ); @@ -1378,14 +1378,14 @@ void AreaSelection::reset() tqinvalidate(); } -bool AreaSelection::tqcontains(const TQPoint & p) const +bool AreaSelection::contains(const TQPoint & p) const { bool b=false; AreaListIterator it=getAreaListIterator(); for ( ; it.current() != 0L; ++it ) { - if ( it.current()->tqcontains( p ) ) + if ( it.current()->contains( p ) ) { b=true; break; @@ -1730,7 +1730,7 @@ bool AreaSelection::isMoving() const **/ bool AreaSelection::allAreasWithin(const TQRect & r) const { - if ( ! r.tqcontains(rect()) ) + if ( ! r.contains(rect()) ) { AreaListIterator it=getAreaListIterator(); |