This patch adds a (sortof hackish) QIntDict to KWQ. This QIntDict subclasses from QPtrCollection, and makes the (potentially bad) assumption that it can simply cast keys from int to (void *) and everything will be hunky dorry. That said, the patch is otherwise quite simple. The header was originally just a copy of QPtrDict with a few T * changed to int.
Created attachment 2769 [details] basically a copy of QPtrDict.h, replacing "T *" with "int"
Comment on attachment 2769 [details] basically a copy of QPtrDict.h, replacing "T *" with "int" r=me but please make sure to add a newline to the end of the new file before landing.