added nicklabel for MessengerWindow to show own name + location

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2185 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-02-03 23:38:38 +00:00
parent f9a66766bf
commit bd049a0bbd
2 changed files with 121 additions and 57 deletions

View file

@ -146,6 +146,7 @@ MessengerWindow::MessengerWindow(QWidget* parent, Qt::WFlags flags)
//loadstatus();
displayMenu();
updateMessengerDisplay();
/* Hide platform specific features */
#ifdef Q_WS_WIN
@ -244,6 +245,10 @@ void MessengerWindow::updateMessengerDisplay()
// add self nick and Avatar to Friends.
RsPeerDetails pd ;
if (rsPeers->getPeerDetails(rsPeers->getOwnId(),pd)) {
QString titleStr("<span style=\"font-size:14pt; font-weight:500;"
"color:#FFFFFF;\">%1</span>");
ui.nicklabel->setText(titleStr.arg(QString::fromStdString(pd.name) + tr(" - ") + QString::fromStdString(pd.location))) ;
}
insertPeers() ;