diff options
Diffstat (limited to 'chalk/core/kis_layer.cc')
| -rw-r--r-- | chalk/core/kis_layer.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/chalk/core/kis_layer.cc b/chalk/core/kis_layer.cc index 752159c08..2b7307e5f 100644 --- a/chalk/core/kis_layer.cc +++ b/chalk/core/kis_layer.cc @@ -341,7 +341,7 @@ void KisLayer::setDirty(bool propagate) if (rc.isValid()) m_dirtyRect = rc; - // If we're dirty, our tqparent is dirty, if we've got a tqparent + // If we're dirty, our parent is dirty, if we've got a parent if (propagate && m_parent && rc.isValid()) m_parent->setDirty(m_dirtyRect); if (m_image && rc.isValid()) { @@ -351,7 +351,7 @@ void KisLayer::setDirty(bool propagate) void KisLayer::setDirty(const TQRect & rc, bool propagate) { - // If we're dirty, our tqparent is dirty, if we've got a tqparent + // If we're dirty, our parent is dirty, if we've got a parent if (rc.isValid()) m_dirtyRect |= rc; @@ -364,23 +364,23 @@ void KisLayer::setDirty(const TQRect & rc, bool propagate) } } -KisGroupLayerSP KisLayer::tqparent() const +KisGroupLayerSP KisLayer::parent() const { return m_parent; } KisLayerSP KisLayer::prevSibling() const { - if (!tqparent()) + if (!parent()) return 0; - return tqparent()->at(index() - 1); + return parent()->at(index() - 1); } KisLayerSP KisLayer::nextSibling() const { - if (!tqparent()) + if (!parent()) return 0; - return tqparent()->at(index() + 1); + return parent()->at(index() + 1); } int KisLayer::index() const @@ -390,9 +390,9 @@ int KisLayer::index() const void KisLayer::setIndex(int i) { - if (!tqparent()) + if (!parent()) return; - tqparent()->setIndex(this, i); + parent()->setIndex(this, i); } KisLayerSP KisLayer::findLayer(const TQString& n) const |
