PATCH: KFileDialog and Password caching
adawit at kde.org
Tue Dec 31 06:11:38 GMT 2002
On Monday 30 December 2002 21:05, Carsten Pfeiffer wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> On Tuesday 31 December 2002 02:37, Dawit A. wrote:
> > Nope. It would work fine with "this" as well. However, the cached
> > password will be removed as soon as the last window referencing it is
> > closed. In this case it would be when you close the file widget after
> > using it. That defeats the purpose of having the password cache since
> > you would probably want to cache it for the lifetime of the application.
> > So I simply assumed that if I use topLevelWidget (), I would get the
> > container the KFileDialog widget. And even if that is not the case, I
> > would end up with "this" :)
> Ah, thanks for explaining this. What about QApplication::mainWidget() then?
Indeed we can use that as well, but mainWidget() can return NULL ; so perhaps
the following patch is better ?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 705 bytes
Desc: not available
More information about the kde-core-devel