summaryrefslogtreecommitdiffstats
path: root/chalk/plugins/tools/defaulttools/kis_tool_text.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chalk/plugins/tools/defaulttools/kis_tool_text.cc')
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_text.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_text.cc b/chalk/plugins/tools/defaulttools/kis_tool_text.cc
index df247917..bf23b441 100644
--- a/chalk/plugins/tools/defaulttools/kis_tool_text.cc
+++ b/chalk/plugins/tools/defaulttools/kis_tool_text.cc
@@ -121,10 +121,10 @@ void KisToolText::buttonRelease(KisButtonReleaseEvent *e)
TQ_INT32 height = boundingRect.height();
TQ_INT32 width = boundingRect.width();
KisPaintLayer *layer = new KisPaintLayer(img, '"' + text + '"', OPACITY_OPAQUE);
- KisGroupLayerSP tqparent = img->rootLayer();
+ KisGroupLayerSP parent = img->rootLayer();
if (img->activeLayer())
- tqparent = img->activeLayer()->tqparent();
- img->addLayer(layer, tqparent, img->activeLayer());
+ parent = img->activeLayer()->parent();
+ img->addLayer(layer, parent, img->activeLayer());
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++) {
TQRgb pixel = image.pixel(x, y);
@@ -155,13 +155,13 @@ void KisToolText::buttonRelease(KisButtonReleaseEvent *e)
}
void KisToolText::setFont() {
- KFontDialog::getFont( m_font, false/*, TQWidget* tqparent! */ );
+ KFontDialog::getFont( m_font, false/*, TQWidget* parent! */ );
m_lbFontName->setText(TQString(m_font.family() + ", %1").tqarg(m_font.pointSize()));
}
-TQWidget* KisToolText::createOptionWidget(TQWidget* tqparent)
+TQWidget* KisToolText::createOptionWidget(TQWidget* parent)
{
- TQWidget *widget = super::createOptionWidget(tqparent);
+ TQWidget *widget = super::createOptionWidget(parent);
m_lbFont = new TQLabel(i18n("Font: "), widget);