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

List:       kde-devel
Subject:    Re: Dialog on quit
From:       Jens Dagerbo <jens.dagerbo () swipnet ! se>
Date:       2004-04-30 18:06:33
Message-ID: 200404302006.33672.jens.dagerbo () swipnet ! se
[Download RAW message or body]


What you are looking for is KMainWindow::queryClose(). Override it in your 
mainwindow implementation and return false if you want to avoid being closed.

jd

On Friday 30 April 2004 19:59, Chris Garrett wrote:
> Hi,
>
> I am probably being stupid here, but how do you make a dialog box appear on
> application exit asking something like "are you sure?".  I am using
> KMdiMainFrm as the basis of my app.  I would want this dialog box to appear
> whether the "Quit" menu entry was clicked, or the window destroy cross in
> the window manager.
>
> I've been searching (evidently in the wrong places :O) and I cant find any
> mention of how to do this anywhere...
>
> Best regards,
>
> Chris.
>
> _________________________________________________________________
> Express yourself with cool emoticons - download MSN Messenger today!
> http://www.msn.co.uk/messenger
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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