QPtrDict and DOM::Node ...
Peter Kelly
pmk at kde.org
Mon Apr 28 00:19:43 BST 2003
On 27 Apr 2003, ec4 wrote:
> Hi!
> A small problem while trying to use QPtrDict : the key is of type *void,
> and DOM::Node isn't a pointer.
> Does another fast method exists? Else i go back to my original
> proposition : a basic public class and a pointer to this basic class in
> NodeImpl accesible from the DOM::Node interface so that apps which want
> to add extra data to Nodes could derivate the basic class to include its
> data and "plug" it into the node. Is it OK to commit this?
> ++
> Nicolas
DOM::Node is a wrapper for a pointer - use node.handle() to get the actual
NodeImpl pointer. See KJS::getDOMNode() in khtml/ecma/kjs_dom.cpp for an
example.
--
Peter Kelly
pmk at kde.org
More information about the kfm-devel
mailing list