Goodbye KJanusWidget

Tim Beaulen tbscope at gmail.com
Sun Jun 4 09:45:13 BST 2006


On 6/2/06, Tobias Koenig <tokoe at kde.org> wrote:
> Hi,
>
> MyDialog::MyDialog( QWidget *parent )
>   : KDialog( parent )
> {
>   setCaption( i18n("configure") );
>   setModal( false );                                  // is it still needed
> with Qt4?

No, by default, a QDialog is not modeless.

>   setButtons( Ok | Cancel | User1, i18n( "Test" ) );
>   setDefaultButton( Ok );

The ok button is default, if it's there. So this line isn't needed either.

>   enableButtonSeparator( true );
> }
>




More information about the kde-core-devel mailing list