C++ (Qt)void QDialog::accept(){ done(Accepted);} void QDialog::reject(){ done(Rejected);}
void QDialogButtonBox::clicked ( QAbstractButton * button ) [signal]
QPushButton * btn = buttonBox->button ( QDialogButtonBox::Apply );connect( btn, SIGNAL( clicked() ), buttonBox, SLOT( apply() ) );