From 39d8b258ab737dce19a4f332ad77a428a96011d0 Mon Sep 17 00:00:00 2001 From: defnax Date: Mon, 18 Feb 2008 14:52:51 +0000 Subject: [PATCH] set for timestamp own color git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@352 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/ChatDialog.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/retroshare-gui/src/gui/ChatDialog.cpp b/retroshare-gui/src/gui/ChatDialog.cpp index 32ddebf8b..823a55d61 100644 --- a/retroshare-gui/src/gui/ChatDialog.cpp +++ b/retroshare-gui/src/gui/ChatDialog.cpp @@ -131,13 +131,13 @@ void ChatDialog::insertChat() /* determine how many spaces to add */ - int n = msgWidget->width(); + //int n = msgWidget->width(); /* now spaces = (width - txt width) / (pixel / space) */ //std::cerr << "Width is : " << n << std::endl; - n -= 256; /* 220 pixels for name */ - if (n > 0) + /*n -= 256; 220 pixels for name */ + /*if (n > 0) { n = 2 + n / 10; } @@ -145,7 +145,7 @@ void ChatDialog::insertChat() { n = 1; } - n = 1 + n / 2; /* shrink it! */ + n = 1 + n / 2;*/ /* shrink it! */ /* add in lines at the bottom */ int ts = time(NULL); @@ -174,14 +174,14 @@ void ChatDialog::insertChat() #else extraTxt += "
\n"; #endif - for(int i = 0; i < n; i++) + /*for(int i = 0; i < n; i++) { extraTxt += " "; - } + }*/ QString timestamp = "[" + QDateTime::currentDateTime().toString("hh:mm:ss") + "]"; QString name = QString::fromStdString(it->name); - QString line = "" + timestamp + - " " + name + " \n
"; + QString line = "" + timestamp + "" + + "" + " " + name + " \
"; extraTxt += line;