diff options
Diffstat (limited to 'addon/xmlparse/sectionhandler.cpp')
-rw-r--r-- | addon/xmlparse/sectionhandler.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/addon/xmlparse/sectionhandler.cpp b/addon/xmlparse/sectionhandler.cpp index 80db178..0fc3446 100644 --- a/addon/xmlparse/sectionhandler.cpp +++ b/addon/xmlparse/sectionhandler.cpp @@ -13,6 +13,7 @@ * */ +#include "mainhandler.h" #include "compoundhandler.h" #include "sectionhandler.h" @@ -46,4 +47,15 @@ void SectionHandler::startMember(const QXmlAttributes& attrib) m_members.append(memHandler); } +void SectionHandler::initialize(MainHandler *m) +{ + QListIterator<IMember> mli(m_members); + MemberHandler *mh; + for (;(mh=(MemberHandler *)mli.current());++mli) + { + m->insertMemberById(mh->name(),mh); + m->insertMemberByName(mh->name(),mh); + } +} + |