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;