summaryrefslogtreecommitdiffstats
path: root/chalk/plugins/tools/tool_curves/kis_tool_moutline.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chalk/plugins/tools/tool_curves/kis_tool_moutline.cc')
-rw-r--r--chalk/plugins/tools/tool_curves/kis_tool_moutline.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/chalk/plugins/tools/tool_curves/kis_tool_moutline.cc b/chalk/plugins/tools/tool_curves/kis_tool_moutline.cc
index 4b7e51d4..42806771 100644
--- a/chalk/plugins/tools/tool_curves/kis_tool_moutline.cc
+++ b/chalk/plugins/tools/tool_curves/kis_tool_moutline.cc
@@ -100,14 +100,14 @@ public:
m_hCost = node.hCost();
m_tCost = node.tCost();
m_malus = node.malus();
- m_parent = node.tqparent();
+ m_parent = node.parent();
}
- Node(const TQPoint& tqparent, const TQPoint& pos, int g, int h, bool malus)
+ Node(const TQPoint& parent, const TQPoint& pos, int g, int h, bool malus)
: m_pos(pos), m_hCost(h), m_malus(malus)
{
setGCost(g);
- m_parent = tqparent;
+ m_parent = parent;
}
~Node ()
{
@@ -120,7 +120,7 @@ public:
TQPoint pos () const {return m_pos;}
int col () const {return m_pos.x();}
int row () const {return m_pos.y();}
- TQPoint tqparent () const {return m_parent;}
+ TQPoint parent () const {return m_parent;}
void setGCost (int g)
{
@@ -230,8 +230,8 @@ KisKernelSP createKernel( TQ_INT32 i0, TQ_INT32 i1, TQ_INT32 i2,
return kernel;
}
-KisCurveMagnetic::KisCurveMagnetic (KisToolMagnetic *tqparent)
- : m_parent(tqparent)
+KisCurveMagnetic::KisCurveMagnetic (KisToolMagnetic *parent)
+ : m_parent(parent)
{
m_standardkeepselected = false;
}
@@ -299,9 +299,9 @@ void KisCurveMagnetic::calculateCurve (KisCurve::iterator p1, KisCurve::iterator
int col = (*i).col();
int row = (*i).row();
if ((*i) == endNode) {
- while (current.tqparent() != TQPoint(-1,-1)) {
+ while (current.parent() != TQPoint(-1,-1)) {
it = addPoint(it,KisPoint(tl+current.pos()),false,false,LINEHINT);
- current = closedMatrix[current.tqparent().x()][current.tqparent().y()];
+ current = closedMatrix[current.parent().x()][current.parent().y()];
}
return;
}
@@ -759,9 +759,9 @@ void KisToolMagnetic::slotSetDistance (int dist)
m_distance = dist;
}
-TQWidget* KisToolMagnetic::createOptionWidget(TQWidget* tqparent)
+TQWidget* KisToolMagnetic::createOptionWidget(TQWidget* parent)
{
- m_optWidget = super::createOptionWidget(tqparent);
+ m_optWidget = super::createOptionWidget(parent);
TQVBoxLayout * l = dynamic_cast<TQVBoxLayout*>(m_optWidget->tqlayout());
TQGridLayout *box = new TQGridLayout(l, 2, 2, 3);
box->setColStretch(0, 1);