Commit 0217622b authored by Dmitry Kazakov's avatar Dmitry Kazakov

Masks cannot have any children. Sorry...

parent fa38c0d7
......@@ -48,12 +48,6 @@ KisFilterMask::~KisFilterMask()
{
}
bool KisFilterMask::allowAsChild(KisNodeSP node) const
{
Q_UNUSED(node);
return false;
}
KisFilterMask::KisFilterMask(const KisFilterMask& rhs)
: KisEffectMask(rhs)
, KisNodeFilterInterface(rhs)
......
......@@ -56,8 +56,6 @@ public:
KisFilterMask(const KisFilterMask& rhs);
bool allowAsChild(KisNodeSP) const;
void setFilter(KisFilterConfiguration *filterConfig);
QRect decorateRect(KisPaintDeviceSP &src,
......
......@@ -106,6 +106,12 @@ KisMask::~KisMask()
delete m_d;
}
bool KisMask::allowAsChild(KisNodeSP node) const
{
Q_UNUSED(node);
return false;
}
const KoColorSpace * KisMask::colorSpace() const
{
KisNodeSP parentNode = parent();
......
......@@ -82,6 +82,8 @@ public:
virtual ~KisMask();
bool allowAsChild(KisNodeSP node) const;
/**
* @brief initSelection initializes the selection for the mask from
* the given selection's projection.
......
......@@ -79,13 +79,6 @@ QIcon KisSelectionMask::icon() const {
return koIcon("edit-paste");
}
bool KisSelectionMask::allowAsChild(KisNodeSP node) const
{
Q_UNUSED(node);
return false;
}
void KisSelectionMask::setSelection(KisSelectionSP selection)
{
if (selection) {
......
......@@ -45,8 +45,6 @@ public:
virtual ~KisSelectionMask();
KisSelectionMask(const KisSelectionMask& rhs);
bool allowAsChild(KisNodeSP) const;
QIcon icon() const;
KisNodeSP clone() const {
......
......@@ -44,12 +44,6 @@ KisTransparencyMask::~KisTransparencyMask()
{
}
bool KisTransparencyMask::allowAsChild(KisNodeSP node) const
{
Q_UNUSED(node);
return false;
}
QRect KisTransparencyMask::decorateRect(KisPaintDeviceSP &src,
KisPaintDeviceSP &dst,
const QRect & rc) const
......
......@@ -48,7 +48,6 @@ public:
return KisNodeSP(new KisTransparencyMask(*this));
}
bool allowAsChild(KisNodeSP) const;
QRect decorateRect(KisPaintDeviceSP &src, KisPaintDeviceSP &dst,
const QRect & rc) const;
QIcon icon() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment