[Patch] KDialog / KDialogBase
David Faure
faure at kde.org
Mon Jan 2 13:05:07 GMT 2006
On Monday 02 January 2006 13:45, Olivier Goffart wrote:
> > Probably want to move KDialogQueuePrivate into a kdialog_p.h file
>
> I even would like to remove that class.
You mean KDialogQueue itself, right?
> It is used only for KMessageBox::queuedMessageBox
> but it could use show() instead of exec() and the result will be the same
Not really since the idea is to only show one queued message box at a time,
to avoid flooding the user with 10 at the same time.
The other difference is that if you delete the parent widget between "now"
and the next event loop, you don't see a message box that appears and disappears
immediately. This could happen with HTML pages that use a redirection.
Not sure if (with Qt4, especially) the message box would have time to appear, though.
It's true that making the message boxes non-modal already solves half of
the goal of queueing though, since the main goal was to avoid sub-event-loops.
I wonder why we didn't make them non-modal in qt3.
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kde-core-devel
mailing list