diff options
Diffstat (limited to 'chalk/core/kis_paint_device.cc')
| -rw-r--r-- | chalk/core/kis_paint_device.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/chalk/core/kis_paint_device.cc b/chalk/core/kis_paint_device.cc index 59665829f..195364c6a 100644 --- a/chalk/core/kis_paint_device.cc +++ b/chalk/core/kis_paint_device.cc @@ -236,7 +236,7 @@ KisPaintDevice::KisPaintDevice(KisColorSpace * colorSpace, const char * name) : } -KisPaintDevice::KisPaintDevice(KisLayer *tqparent, KisColorSpace * colorSpace, const char * name) : +KisPaintDevice::KisPaintDevice(KisLayer *parent, KisColorSpace * colorSpace, const char * name) : TQObject(0, name), KShared(), m_exifInfo(0), m_lock( false ) { @@ -250,10 +250,10 @@ KisPaintDevice::KisPaintDevice(KisLayer *tqparent, KisColorSpace * colorSpace, c m_selectionDeselected = false; m_selection = 0; - m_parentLayer = tqparent; + m_parentLayer = parent; - if (colorSpace == 0 && tqparent != 0 && tqparent->image() != 0) { - m_colorSpace = tqparent->image()->colorSpace(); + if (colorSpace == 0 && parent != 0 && parent->image() != 0) { + m_colorSpace = parent->image()->colorSpace(); } else { m_colorSpace = colorSpace; @@ -1107,15 +1107,15 @@ void KisPaintDevice::clearSelection() } } -void KisPaintDevice::applySelectionMask(KisSelectionSP tqmask) +void KisPaintDevice::applySelectionMask(KisSelectionSP mask) { - TQRect r = tqmask->selectedRect(); + TQRect r = mask->selectedRect(); crop(r); for (TQ_INT32 y = r.top(); y <= r.bottom(); ++y) { KisHLineIterator pixelIt = createHLineIterator(r.x(), y, r.width(), true); - KisHLineIterator maskIt = tqmask->createHLineIterator(r.x(), y, r.width(), false); + KisHLineIterator maskIt = mask->createHLineIterator(r.x(), y, r.width(), false); while (!pixelIt.isDone()) { // XXX: Optimize by using stretches |
