mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-14 03:52:39 -04:00
Added new RetroShare link format to write a message
retroshare://message?id=...[&subject=...] Added clickable links in ForumMsgItem for the signer of the message to start the MessageComposer. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4190 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e34505c1d2
commit
70c3c9678d
11 changed files with 447 additions and 311 deletions
|
@ -26,9 +26,9 @@
|
|||
|
||||
const QString PeerDefs::nameWithLocation(const RsPeerDetails &details)
|
||||
{
|
||||
QString name = QString::fromStdString(details.name);
|
||||
QString name = QString::fromUtf8(details.name.c_str());
|
||||
if (details.location.empty() == false) {
|
||||
name += " (" + QString::fromStdString(details.location) + ")";
|
||||
name += " (" + QString::fromUtf8(details.location.c_str()) + ")";
|
||||
}
|
||||
|
||||
return name;
|
||||
|
@ -40,7 +40,7 @@ const QString PeerDefs::rsid(const std::string &name, const std::string &id)
|
|||
return qApp->translate("PeerDefs", "Unknown") + "@" + QString::fromStdString(id);
|
||||
}
|
||||
|
||||
return QString::fromStdString(name) + "@" + QString::fromStdString(id);
|
||||
return QString::fromUtf8(name.c_str()) + "@" + QString::fromStdString(id);
|
||||
}
|
||||
|
||||
const QString PeerDefs::rsid(const RsPeerDetails &details)
|
||||
|
@ -63,7 +63,7 @@ const QString PeerDefs::rsidFromId(const std::string &id, QString *name /*= NULL
|
|||
rsid = PeerDefs::rsid(peerName, id);
|
||||
|
||||
if (name) {
|
||||
*name = QString::fromStdString(peerName);
|
||||
*name = QString::fromUtf8(peerName.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue