From kde-devel Sun Sep 30 10:20:47 2007 From: "koos vriezen" Date: Sun, 30 Sep 2007 10:20:47 +0000 To: kde-devel Subject: Re: What happened to KStaticDeleter Message-Id: X-MARC-Message: https://marc.info/?l=kde-devel&m=119114812616015 2007/9/30, Thiago Macieira : > koos vriezen wrote: > >Hi, > > > >For a kpart I use KStaticDeleter in kde3. This seems to be gone in > >kde4, no info about this on techbase or porting guide. Googling gives > >some pointers to Q_GLOBAL_STATIC, but that doesn't seem to delete it > >on part onload. > >Is that correct and how to port this? Btw, its only about resetting a > >shared object after all part instances are unloaded. > > K_GLOBAL_STATIC is what you want. > > It's deleted on unload (= application exit, since we don't unload > modules). Verified in kde3 and indeed only at application exit. How stupid of me to never test this, I don't need it then .. Thanks, Koos >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<