refactor display code
diff --git a/chatdialog.h b/chatdialog.h
index bfc1a33..1ee4216 100644
--- a/chatdialog.h
+++ b/chatdialog.h
@@ -17,6 +17,7 @@
 class QAction;
 class QMenu;
 class QStringListModel;
+class QTextTable;
 
 class ChatDialog : public QDialog,  private Ui::ChatDialog 
 {
@@ -55,6 +56,8 @@
   void testDraw();
   void createTrayIcon();
   void createActions();
+  QString formatTime(time_t);
+  void printTimeInCell(QTextTable *, time_t);
 
 private slots:
   void returnPressed();