This is a discussion on Re: Problem with QT - KDE ; --===============0336322115== Content-Type: multipart/signed; boundary="nextPart1990551.B1xafzGpQk"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1990551.B1xafzGpQk Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 21 October 2005 11:42, Ivor Hewitt wrote: > On Wednesday 19 October 2005 16:43, Jimmy Gilles wrote: > > It works very ...
--===============0336322115==
Content-Type: multipart/signed;
boundary="nextPart1990551.B1xafzGpQk";
protocol="application/pgp-signature";
micalg=pgp-sha1
Content-Transfer-Encoding: 7bit
--nextPart1990551.B1xafzGpQk
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
On Friday 21 October 2005 11:42, Ivor Hewitt wrote:
> On Wednesday 19 October 2005 16:43, Jimmy Gilles wrote:
> > It works very well but my problem is that when "list" is deleted, keys
> > that are in this list are not deleted. Why ?
> > I use QPointer to automaticaly delete keys but it doesn't work.
>
> Destroying a QPointer does not destroy the object it points to.
And for a perhaps more useful answer, add a destructor for KgpgListKeys tha=
t=20
iterates over its keys and deletes them. You might not be able to use=20
foreach() since the dtor will be iterating over itself but something like=20
this would work:
KgpgListKeys::~KgpgListKeys()
{
for(ConstIterator it =3D constBegin(); it !=3D constEnd(); ++it)
{
delete *it;
}
}
Regards,
- Michael Pyne
--nextPart1990551.B1xafzGpQk
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQBDWV3aqjQYp5Omm0oRAn+WAJ9cKyvJan4pz+FpxJ7lTW jsNLLDgQCcDDEy
Xy+3xew0WAnYX1OHXH1s3pc=
=jEvX
-----END PGP SIGNATURE-----
--nextPart1990551.B1xafzGpQk--
--===============0336322115==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
--===============0336322115==--