From 1fffbdafa12271a1a635caf46777fb8acfb6f31b Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 10:00:36 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 2b0e1de2ffcca7bb93f1fd8ddd32f74041d0d076. --- kimagemapeditor/kimearea.cpp | 80 ++++++++++++++++++++++---------------------- 1 file changed, 40 insertions(+), 40 deletions(-) (limited to 'kimagemapeditor/kimearea.cpp') diff --git a/kimagemapeditor/kimearea.cpp b/kimagemapeditor/kimearea.cpp index 835cdf55..52cccf9f 100644 --- a/kimagemapeditor/kimearea.cpp +++ b/kimagemapeditor/kimearea.cpp @@ -21,8 +21,8 @@ #include #include #include -#include -#include +#include +#include #include #include @@ -336,10 +336,10 @@ void Area::drawAlt(TQPainter & p) { double x,y; - double scalex = p.worldMatrix().m11(); -// double scaley = p.worldMatrix().m12(); + double scalex = p.tqworldMatrix().m11(); +// double scaley = p.tqworldMatrix().m12(); - TQWMatrix oldMatrix = p.worldMatrix(); + TQWMatrix oldMatrix = p.tqworldMatrix(); p.setWorldMatrix(TQWMatrix(1,oldMatrix.m12(), oldMatrix.m21(), 1, oldMatrix.dx(), oldMatrix.dy() )); @@ -379,10 +379,10 @@ void Area::draw(TQPainter & p) { int i=0; - double scalex = p.worldMatrix().m11(); -// double scaley = p.worldMatrix().m12(); + double scalex = p.tqworldMatrix().m11(); +// double scaley = p.tqworldMatrix().m12(); - TQWMatrix oldMatrix = p.worldMatrix(); + TQWMatrix oldMatrix = p.tqworldMatrix(); p.setWorldMatrix(TQWMatrix(1,oldMatrix.m12(), oldMatrix.m21(), 1, oldMatrix.dx(), oldMatrix.dy() )); @@ -675,10 +675,10 @@ TQBitmap RectArea::getMask() const TQString RectArea::coordsToString() const { TQString retStr=TQString("%1,%2,%3,%4") - .arg(rect().left()) - .arg(rect().top()) - .arg(rect().right()) - .arg(rect().bottom()); + .tqarg(rect().left()) + .tqarg(rect().top()) + .tqarg(rect().right()) + .tqarg(rect().bottom()); return retStr; } @@ -747,7 +747,7 @@ bool RectArea::setCoords(const TQString & s) TQString RectArea::getHTMLCode() const { TQString retStr; retStr+="count()); + p.tqdrawPolygon ( *_coords,false,0,_coords->count()); else - p.drawPolyline ( *_coords,0,_coords->count()); + p.tqdrawPolyline ( *_coords,0,_coords->count()); /* p.moveTo(_coords->point(0)); @@ -1033,8 +1033,8 @@ TQString PolyArea::coordsToString() const for (uint i=0;i<_coords->count();i++) { retStr.append(TQString("%1,%2,") - .arg(_coords->point(i).x()) - .arg(_coords->point(i).y())); + .tqarg(_coords->point(i).x()) + .tqarg(_coords->point(i).y())); } retStr.remove(retStr.length()-1,1); @@ -1224,7 +1224,7 @@ bool PolyArea::setCoords(const TQString & s) TQString PolyArea::getHTMLCode() const { TQString retStr; retStr+="setSelected( false ); _areas->remove( a ); - invalidate(); + tqinvalidate(); } void AreaSelection::reset() @@ -1375,7 +1375,7 @@ void AreaSelection::reset() } _areas->clear(); - invalidate(); + tqinvalidate(); } bool AreaSelection::contains(const TQPoint & p) const @@ -1423,7 +1423,7 @@ void AreaSelection::moveSelectionPoint(TQRect* selectionPoint, const TQPoint & p _areas->getFirst()->moveSelectionPoint(selectionPoint,p); - invalidate(); + tqinvalidate(); } @@ -1436,7 +1436,7 @@ void AreaSelection::moveBy(int dx, int dy) Area::moveBy( dx, dy ); - invalidate(); + tqinvalidate(); } TQString AreaSelection::typeString() const @@ -1474,7 +1474,7 @@ void AreaSelection::updateSelectionPoints() it.current()->updateSelectionPoints(); } - invalidate(); + tqinvalidate(); } @@ -1525,7 +1525,7 @@ void AreaSelection::setArea(const Area & copy) setAreaSelection(*selection); else { Area::setArea(copy); - invalidate(); + tqinvalidate(); } } @@ -1541,14 +1541,14 @@ void AreaSelection::setAreaSelection(const AreaSelection & copy) it.current()->setArea(*it2.current()); Area::setArea(copy); - invalidate(); + tqinvalidate(); } void AreaSelection::setAreaList( const AreaList & areas ) { delete _areas; _areas = new AreaList(areas); - invalidate(); + tqinvalidate(); } void AreaSelection::setRect(const TQRect & r) @@ -1558,7 +1558,7 @@ void AreaSelection::setRect(const TQRect & r) _areas->getFirst()->setRect(r); } - invalidate(); + tqinvalidate(); _rect=rect(); updateSelectionPoints(); } @@ -1586,7 +1586,7 @@ int AreaSelection::addCoord(const TQPoint & p) if ( _areas->count()==1 ) { return _areas->getFirst()->addCoord(p); - invalidate(); + tqinvalidate(); } return 0; @@ -1597,7 +1597,7 @@ void AreaSelection::insertCoord(int pos, const TQPoint & p) if ( _areas->count()==1 ) { _areas->getFirst()->insertCoord(pos, p); - invalidate(); + tqinvalidate(); } } @@ -1606,7 +1606,7 @@ void AreaSelection::removeCoord(int pos) if ( _areas->count()==1 ) { _areas->getFirst()->removeCoord(pos); - invalidate(); + tqinvalidate(); } } @@ -1617,7 +1617,7 @@ bool AreaSelection::removeSelectionPoint(TQRect * r) if ( _areas->count()==1 ) { result = _areas->getFirst()->removeSelectionPoint(r); - invalidate(); + tqinvalidate(); } return result; @@ -1639,7 +1639,7 @@ void AreaSelection::moveCoord(int pos,const TQPoint & p) if ( _areas->count()==1 ) { _areas->getFirst()->moveCoord(pos,p); - invalidate(); + tqinvalidate(); } } @@ -1648,7 +1648,7 @@ void AreaSelection::highlightSelectionPoint(int i) if ( _areas->count()==1 ) { _areas->getFirst()->highlightSelectionPoint(i); - invalidate(); + tqinvalidate(); } } -- cgit v1.2.1