[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Patch: uic honors layout names
From:       Peter Putzer <pputzer () edu ! uni-klu ! ac ! at>
Date:       2000-10-13 15:58:31
[Download RAW message or body]


OK, I've got a problem now: in order for name clashes to be resolved
properly, I must register layouts for generating declarations in the same
order that the implementations will be generated.

In order to do so, I tried using "childNodes()" and comparing the tagnames
to "layouts" (the QStrings "vbox", "hbox" and "grid"), instead of using
"QDomElement::elementsByTagName()".

According to the documentation this should have worked, but apparently
elementsByTagName() returns not only direct descendants, but is
transitive.

Reading the source is *aehm* NOT easy in this case, as both
implementations rely on QDOM_NodeListPrivate, which is, well, private and
(therefore) documented very very sparsely).

Any hints, or do have to write my own recursive iteration function for
layouts?

bye,
Peter

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic