fragment">
 class MyDialog : public KDialog {
     protected slots:
         virtual void slotButtonClicked(int button) {
             if (button == KDialog.Ok)
                 accept();
             else
                 KDialog.slotButtonClicked(button);
         }
 }
</pre>
</p>
<p>
</p><dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign="top"><em>button</em>&nbsp;</td><td> is the type <b>KDialog.ButtonCode</b>
</td></tr>
</table></dl>
<