add demo
diff --git a/chatdialog.cpp b/chatdialog.cpp
new file mode 100644
index 0000000..c7d8725
--- /dev/null
+++ b/chatdialog.cpp
@@ -0,0 +1,9 @@
+#include <QtGui>
+#include "chatdialog.h"
+
+ChatDialog::ChatDialog(QWidget *parent)
+  : QDialog(parent)
+{
+  setupUi(this);
+  lineEdit->setFocusPolicy(Qt::StrongFocus);
+}