diff options
Diffstat (limited to 'libkonq/konq_xmlguiclient.cc')
-rw-r--r-- | libkonq/konq_xmlguiclient.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libkonq/konq_xmlguiclient.cc b/libkonq/konq_xmlguiclient.cc index c3c7215b9..a12d237c6 100644 --- a/libkonq/konq_xmlguiclient.cc +++ b/libkonq/konq_xmlguiclient.cc @@ -154,4 +154,21 @@ bool KonqXMLGUIClient::hasAction() const return d->hasAction; } +bool KonqXMLGUIClient::hasGroup(const TQString &name) const +{ + if (name.isEmpty()) + { + return false; + } + TQDomNodeList groups = m_doc.elementsByTagName("definegroup"); + for (uint idx = 0; idx < groups.count(); ++idx) + { + TQDomElement group = groups.item(idx).toElement(); + if (group.hasAttribute(d->attrName) && group.attribute(d->attrName) == name) + { + return true; + } + } + return false; +} |