+UnicodeDialog::UnicodeDialog(InputMethod inputMeth, QWidget *parent)
+ : KDialog(parent)
+{
+ setCaption( i18n("Details") );
+ setButtons( Ok|Cancel );
+ mUnicodeWidget = new UnicodeWidget(inputMeth);
+ connect(mUnicodeWidget, SIGNAL(charSelected(QString)), SIGNAL(charSelected(QString)));
+ setMainWidget(mUnicodeWidget);
+ connect(this, SIGNAL(okClicked()), SLOT(slotAccept()));
+}
+
+UnicodeDialog::~UnicodeDialog()
+{
+}
+
+void UnicodeDialog::slotAccept()
+{
+ mUnicodeWidget->slotReturnPressed();
+ accept();
+}
+
+