KDialogBase: User1? No?

David Faure faure at kde.org
Mon Mar 8 07:33:26 GMT 2004


On Monday 08 March 2004 01:45, Frans Englich wrote:
> 
> Check enum ButtonCode in kdialogbase. It got these:
>     User1   = 0x00000080,
>     No      = 0x00000080,
> 
> ?

KDialogBase knows two modes: dialog mode, and message box mode.
In dialog mode it's User1, in messagebox mode it's No.

Code excerpt:
    if( mMessageBoxMode == true )
    {
      connect( pb, SIGNAL(clicked()), this, SLOT(slotNo()) );
    }
    else
    {
      connect( pb, SIGNAL(clicked()), SLOT(slotUser1()) );
    }

You can't have both No and User1 at the same time (apparently).

-- 
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