summaryrefslogtreecommitdiffstats
path: root/chalk/plugins/tools/defaulttools/kis_tool_gradient.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chalk/plugins/tools/defaulttools/kis_tool_gradient.cc')
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_gradient.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_gradient.cc b/chalk/plugins/tools/defaulttools/kis_tool_gradient.cc
index 6df9f8da4..0f0305e55 100644
--- a/chalk/plugins/tools/defaulttools/kis_tool_gradient.cc
+++ b/chalk/plugins/tools/defaulttools/kis_tool_gradient.cc
@@ -23,7 +23,7 @@
#include <tqpainter.h>
#include <tqlabel.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqcheckbox.h>
#include <kdebug.h>
@@ -58,7 +58,7 @@ KisToolGradient::KisToolGradient()
m_endPos = KisPoint(0, 0);
m_reverse = false;
- m_tqshape = KisGradientPainter::GradientShapeLinear;
+ m_shape = KisGradientPainter::GradientShapeLinear;
m_repeat = KisGradientPainter::GradientRepeatNone;
m_antiAliasThreshold = 0.2;
}
@@ -157,7 +157,7 @@ void KisToolGradient::buttonRelease(KisButtonReleaseEvent *e)
progress->setSubject(&painter, true, true);
}
- bool painted = painter.paintGradient(m_startPos, m_endPos, m_tqshape, m_repeat, m_antiAliasThreshold, m_reverse, 0, 0, m_subject->currentImg()->width(), m_subject->currentImg()->height());
+ bool painted = painter.paintGradient(m_startPos, m_endPos, m_shape, m_repeat, m_antiAliasThreshold, m_reverse, 0, 0, m_subject->currentImg()->width(), m_subject->currentImg()->height());
if (painted) {
// does whole thing at moment
@@ -237,7 +237,7 @@ TQWidget* KisToolGradient::createOptionWidget(TQWidget* parent)
m_ckReverse = new TQCheckBox(i18n("Reverse"), widget, "reverse_check");
connect(m_ckReverse, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotSetReverse(bool)));
- m_cmbShape = new TQComboBox(false, widget, "tqshape_combo");
+ m_cmbShape = new TQComboBox(false, widget, "shape_combo");
connect(m_cmbShape, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSetShape(int)));
m_cmbShape->insertItem(i18n("Linear"));
m_cmbShape->insertItem(i18n("Bi-Linear"));
@@ -270,9 +270,9 @@ TQWidget* KisToolGradient::createOptionWidget(TQWidget* parent)
return widget;
}
-void KisToolGradient::slotSetShape(int tqshape)
+void KisToolGradient::slotSetShape(int shape)
{
- m_tqshape = static_cast<KisGradientPainter::enumGradientShape>(tqshape);
+ m_shape = static_cast<KisGradientPainter::enumGradientShape>(shape);
}
void KisToolGradient::slotSetRepeat(int repeat)