setting works
diff --git a/demo/settingdialog.cpp b/demo/settingdialog.cpp
index 8719a84..be0bb42 100644
--- a/demo/settingdialog.cpp
+++ b/demo/settingdialog.cpp
@@ -8,5 +8,12 @@
roomEdit->setPlaceholderText(chatroom);
prefixEdit->setPlaceholderText(prefix);
connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject()));
- connect(okButton, SIGNAL(clicked()), this, SLOT(accept()));
+ connect(okButton, SIGNAL(clicked()), this, SLOT(update()));
+}
+
+void
+SettingDialog::update()
+{
+ emit updated(nickEdit->text(), roomEdit->text(), prefixEdit->text());
+ accept();
}