setting dialog
diff --git a/demo/settingdialog.cpp b/demo/settingdialog.cpp
new file mode 100644
index 0000000..8719a84
--- /dev/null
+++ b/demo/settingdialog.cpp
@@ -0,0 +1,12 @@
+#include "settingdialog.h"
+
+SettingDialog::SettingDialog(QWidget *parent, QString nick, QString chatroom, QString prefix)
+ : QDialog(parent)
+{
+ setupUi(this);
+ nickEdit->setPlaceholderText(nick);
+ roomEdit->setPlaceholderText(chatroom);
+ prefixEdit->setPlaceholderText(prefix);
+ connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject()));
+ connect(okButton, SIGNAL(clicked()), this, SLOT(accept()));
+}