diff options
Diffstat (limited to 'krita/plugins/tools/tool_curves/kis_tool_bezier.cc')
-rw-r--r-- | krita/plugins/tools/tool_curves/kis_tool_bezier.cc | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/krita/plugins/tools/tool_curves/kis_tool_bezier.cc b/krita/plugins/tools/tool_curves/kis_tool_bezier.cc index b6d16f78..cd9e7cf4 100644 --- a/krita/plugins/tools/tool_curves/kis_tool_bezier.cc +++ b/krita/plugins/tools/tool_curves/kis_tool_bezier.cc @@ -20,9 +20,9 @@ #include <math.h> -#include <qpainter.h> -#include <qlayout.h> -#include <qrect.h> +#include <tqpainter.h> +#include <tqlayout.h> +#include <tqrect.h> #include <kaction.h> #include <kdebug.h> @@ -260,7 +260,7 @@ void KisCurveBezier::deletePivot (KisCurve::iterator it) } } -KisToolBezier::KisToolBezier(const QString& UIName) +KisToolBezier::KisToolBezier(const TQString& UIName) : super(UIName) { m_derivated = new KisCurveBezier; @@ -276,20 +276,20 @@ KisToolBezier::~KisToolBezier() } -KisCurve::iterator KisToolBezier::handleUnderMouse(const QPoint& pos) +KisCurve::iterator KisToolBezier::handleUnderMouse(const TQPoint& pos) { - QPoint qpos; + TQPoint qpos; KisCurve pivs = m_curve->pivots(), inHandle; KisCurve::iterator it; int hint; for (it = pivs.begin(); it != pivs.end(); it++) { - qpos = m_subject->canvasController()->windowToView((*it).point().toQPoint()); + qpos = m_subject->canvasController()->windowToView((*it).point().toTQPoint()); hint = (*it).hint(); if (hint != BEZIERENDHINT && !m_derivated->groupSelected(it)) continue; if (hint == BEZIERENDHINT && (m_actionOptions & SHIFTOPTION)) continue; - if (pivotRect(qpos).contains(pos)) { + if (pivotRect(qpos).tqcontains(pos)) { inHandle.pushPoint((*it)); if (hint == BEZIERENDHINT && !(m_actionOptions & SHIFTOPTION)) break; @@ -300,7 +300,7 @@ KisCurve::iterator KisToolBezier::handleUnderMouse(const QPoint& pos) if (inHandle.isEmpty()) return m_curve->end(); - return m_curve->find(inHandle.last()); + return m_curve->tqfind(inHandle.last()); } KisCurve::iterator KisToolBezier::drawPoint (KisCanvasPainter& gc, KisCurve::iterator point) @@ -321,11 +321,11 @@ KisCurve::iterator KisToolBezier::drawPoint (KisCanvasPainter& gc, KisCurve::ite if (control2 != m_curve->end()) { point = control2; - QPointArray vec(4); - vec[0] = controller->windowToView((*origin).point().toQPoint()); - vec[1] = controller->windowToView((*control1).point().toQPoint()); - vec[2] = controller->windowToView((*control2).point().toQPoint()); - vec[3] = controller->windowToView((*destination).point().toQPoint()); + TQPointArray vec(4); + vec[0] = controller->windowToView((*origin).point().toTQPoint()); + vec[1] = controller->windowToView((*control1).point().toTQPoint()); + vec[2] = controller->windowToView((*control2).point().toTQPoint()); + vec[3] = controller->windowToView((*destination).point().toTQPoint()); gc.drawCubicBezier(vec); } @@ -341,14 +341,14 @@ void KisToolBezier::drawPivotHandle (KisCanvasPainter& gc, KisCurve::iterator po KisCanvasController *controller = m_subject->canvasController(); - QPoint endpPos = controller->windowToView((*point).point().toQPoint()); + TQPoint endpPos = controller->windowToView((*point).point().toTQPoint()); if (!m_derivated->groupSelected(point)) { gc.setPen(m_pivotPen); gc.drawRoundRect(pivotRect(endpPos),m_pivotRounding,m_pivotRounding); } else { - QPoint nextControlPos = controller->windowToView((*point.next()).point().toQPoint()); - QPoint prevControlPos = controller->windowToView((*point.previousPivot()).point().toQPoint()); + TQPoint nextControlPos = controller->windowToView((*point.next()).point().toTQPoint()); + TQPoint prevControlPos = controller->windowToView((*point.previousPivot()).point().toTQPoint()); gc.setPen(m_selectedPivotPen); gc.drawRoundRect(selectedPivotRect(endpPos),m_selectedPivotRounding,m_selectedPivotRounding); |