[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: PATCH [ was: Re: Small change in KHelpMenu?]
From:       Matthias Ettrich <ettrich () troll ! no>
Date:       1999-11-16 13:31:32
[Download RAW message or body]


> 
> I did not know about the "WDestructiveClose". Well I know I have seen it before
> but I have never used that one myself. Perhaps I should use a  KMessageBox
> or KDialogBase instead. I assume this will work for that one as well.
> 
> Hmm, I need to know if the dialog is active (it is modeless) when I try open
> open a new. I need a state variable for that. Currently I use "mAboutApp" as
> this flag. Will a destroyed() signal be emitted from the dialog when it uses
> WDestructiveClose?

Yes, of course. The right solution was probably to use a
QGuardedPointer<QMessageBox> as mAboutApp.

This pointer will become 0 automatically when the about box closes.

Changing mAboutKDE to a guarded pointer is not binary compatible, but until
KRASH you can use a pointer to a guarded pointer.

Add please, add a d-pointer afterwards. That reminds to write my "Writing
binary compatible C++ libraries" article in the KDE 2 Architecture Overview. If
I wait until after the release, it won't help much....


Matthias

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic