mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
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:
parent
f9a66766bf
commit
bd049a0bbd
2 changed files with 121 additions and 57 deletions
|
@ -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() ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue