summaryrefslogtreecommitdiffstats
path: root/chalk/plugins/tools/defaulttools
diff options
context:
space:
mode:
Diffstat (limited to 'chalk/plugins/tools/defaulttools')
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_brush.cc2
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_colorpicker.cc6
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_fill.cc2
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_gradient.cc12
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_gradient.h2
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_line.cc2
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_text.cc6
-rw-r--r--chalk/plugins/tools/defaulttools/wdgcolorpicker.ui8
8 files changed, 20 insertions, 20 deletions
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_brush.cc b/chalk/plugins/tools/defaulttools/kis_tool_brush.cc
index 384e4e26..61e485a5 100644
--- a/chalk/plugins/tools/defaulttools/kis_tool_brush.cc
+++ b/chalk/plugins/tools/defaulttools/kis_tool_brush.cc
@@ -19,7 +19,7 @@
*/
#include <tqevent.h>
#include <tqlabel.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqwidget.h>
#include <tqtimer.h>
#include <tqpushbutton.h>
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_colorpicker.cc b/chalk/plugins/tools/defaulttools/kis_tool_colorpicker.cc
index 6aff68c8..c5c9d324 100644
--- a/chalk/plugins/tools/defaulttools/kis_tool_colorpicker.cc
+++ b/chalk/plugins/tools/defaulttools/kis_tool_colorpicker.cc
@@ -19,7 +19,7 @@
#include <string.h>
#include <tqpoint.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqcheckbox.h>
#include <tqcombobox.h>
#include <tqlistview.h>
@@ -180,7 +180,7 @@ void KisToolColorPicker::buttonPress(KisButtonPressEvent *e)
palette->add(ent);
if (!palette->save()) {
- KMessageBox::error(0, i18n("Cannot write to palette file %1. Maybe it is read-only.").tqarg(palette->filename()), i18n("Palette"));
+ KMessageBox::error(0, i18n("Cannot write to palette file %1. Maybe it is read-only.").arg(palette->filename()), i18n("Palette"));
}
}
}
@@ -197,7 +197,7 @@ void KisToolColorPicker::displayPickedColor()
TQString channelValueText;
if (m_normaliseValues) {
- channelValueText = i18n("%1%").tqarg(m_pickedColor.colorSpace()->normalisedChannelValueText(m_pickedColor.data(), i));
+ channelValueText = i18n("%1%").arg(m_pickedColor.colorSpace()->normalisedChannelValueText(m_pickedColor.data(), i));
} else {
channelValueText = m_pickedColor.colorSpace()->channelValueText(m_pickedColor.data(), i);
}
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_fill.cc b/chalk/plugins/tools/defaulttools/kis_tool_fill.cc
index f15bf778..4fcf642b 100644
--- a/chalk/plugins/tools/defaulttools/kis_tool_fill.cc
+++ b/chalk/plugins/tools/defaulttools/kis_tool_fill.cc
@@ -25,7 +25,7 @@
#include <klocale.h>
#include <kcommand.h>
#include <tqlabel.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqcheckbox.h>
#include <tqcolor.h>
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_gradient.cc b/chalk/plugins/tools/defaulttools/kis_tool_gradient.cc
index 6df9f8da..0f0305e5 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)
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_gradient.h b/chalk/plugins/tools/defaulttools/kis_tool_gradient.h
index 29df8bf7..08ab06ab 100644
--- a/chalk/plugins/tools/defaulttools/kis_tool_gradient.h
+++ b/chalk/plugins/tools/defaulttools/kis_tool_gradient.h
@@ -88,7 +88,7 @@ private:
KisCanvasSubject *m_subject;
- KisGradientPainter::enumGradientShape m_tqshape;
+ KisGradientPainter::enumGradientShape m_shape;
KisGradientPainter::enumGradientRepeat m_repeat;
bool m_reverse;
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_line.cc b/chalk/plugins/tools/defaulttools/kis_tool_line.cc
index 243052cf..7b1df85b 100644
--- a/chalk/plugins/tools/defaulttools/kis_tool_line.cc
+++ b/chalk/plugins/tools/defaulttools/kis_tool_line.cc
@@ -21,7 +21,7 @@
*/
#include <tqpainter.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqwidget.h>
#include <kdebug.h>
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_text.cc b/chalk/plugins/tools/defaulttools/kis_tool_text.cc
index bf23b441..c624d30a 100644
--- a/chalk/plugins/tools/defaulttools/kis_tool_text.cc
+++ b/chalk/plugins/tools/defaulttools/kis_tool_text.cc
@@ -19,7 +19,7 @@
#include <tqfont.h>
#include <tqrect.h>
#include <tqimage.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqwidget.h>
#include <tqstring.h>
#include <tqpixmap.h>
@@ -156,7 +156,7 @@ void KisToolText::buttonRelease(KisButtonReleaseEvent *e)
void KisToolText::setFont() {
KFontDialog::getFont( m_font, false/*, TQWidget* parent! */ );
- m_lbFontName->setText(TQString(m_font.family() + ", %1").tqarg(m_font.pointSize()));
+ m_lbFontName->setText(TQString(m_font.family() + ", %1").arg(m_font.pointSize()));
}
TQWidget* KisToolText::createOptionWidget(TQWidget* parent)
@@ -167,7 +167,7 @@ TQWidget* KisToolText::createOptionWidget(TQWidget* parent)
TQHBox *fontBox = new TQHBox(widget);
m_lbFontName = new KSqueezedTextLabel(TQString(m_font.family() + ", %1")
- .tqarg(m_font.pointSize()), fontBox);
+ .arg(m_font.pointSize()), fontBox);
m_btnMoreFonts = new TQPushButton("...", fontBox);
connect(m_btnMoreFonts, TQT_SIGNAL(released()), this, TQT_SLOT(setFont()));
diff --git a/chalk/plugins/tools/defaulttools/wdgcolorpicker.ui b/chalk/plugins/tools/defaulttools/wdgcolorpicker.ui
index 7675b875..5463d3e3 100644
--- a/chalk/plugins/tools/defaulttools/wdgcolorpicker.ui
+++ b/chalk/plugins/tools/defaulttools/wdgcolorpicker.ui
@@ -47,13 +47,13 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
- <property name="tqmaximumSize">
+ <property name="maximumSize">
<size>
<width>200</width>
<height>32767</height>
@@ -70,7 +70,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout2</cstring>
+ <cstring>layout2</cstring>
</property>
<hbox>
<property name="name">
@@ -101,7 +101,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout1</cstring>
+ <cstring>layout1</cstring>
</property>
<hbox>
<property name="name">