14 int _sortingWeight,
bool touched)
17 , m_sortingWeight(_sortingWeight)
33 hidden = (*it)->isHidden();
51 if (myTemplate == 0) {
56 else if (myTemplate && force) {
58 QFile::remove(myTemplate->
fileName());
59 QFile::remove(myTemplate->
picture());
60 QFile::remove(myTemplate->
file());
76 if ((*it)->name() ==
name) {
KisTemplate * find(const QString &name) const
bool isHidden() const
If all children are hidden, we are hidden too.
bool add(KisTemplate *t, bool force=false, bool touch=true)
QList< KisTemplate * > m_templates
KisTemplateGroup(const QString &name, const QString &dir=QString(), int _sortingWeight=0, bool touched=false)
void setHidden(bool hidden=true) const
if we should hide, we hide all the children
void setHidden(bool hidden=true)