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

List:       kde-core-devel
Subject:    Re: KDialogBase: User1? No?
From:       David Faure <faure () kde ! org>
Date:       2004-03-08 7:33:26
Message-ID: 200403080833.26265.faure () kde ! org
[Download RAW message or body]

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@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
[prev in list] [next in list] [prev in thread] [next in thread] 

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