A new autoptr class for QPointer.
Review Request #955 - Created July 8, 2009 and updated
This template class is inherited from QPointer, and provides the additional feature that on destruction it deletes the QObject whose pointer it contains. The motivation for adding this class is to deal with the issue described in http://www.kdedevelopers.org/node/3919, whereby if a modal dialog is open when an application is told to quit, the dialog will be deleted by its parent, usually resulting in a crash due to double deletion of the dialog, or due to accessing the dangling pointer to the dialog. This class is required by several applications in kdepim, and other modules would also benefit by using it. A unit test will be provided if the class is approved.
Works successfully in KAlarm.