mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-05 01:25:39 -05:00
various utf8 fixed (patch from HM)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7426 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b85459ee02
commit
15718cbca9
@ -632,7 +632,7 @@ void FriendsDialog::insertSendList()
|
|||||||
|
|
||||||
/* add all the labels */
|
/* add all the labels */
|
||||||
/* (0) Person */
|
/* (0) Person */
|
||||||
item -> setText(0, QString::fromStdString(details.name));
|
item -> setText(0, QString::fromUtf8(details.name.c_str()));
|
||||||
|
|
||||||
item -> setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled);
|
item -> setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled);
|
||||||
//item -> setFlags(Qt::ItemIsUserCheckable);
|
//item -> setFlags(Qt::ItemIsUserCheckable);
|
||||||
|
@ -649,7 +649,7 @@ QString RetroShareLink::title() const
|
|||||||
{
|
{
|
||||||
RsPeerDetails detail;
|
RsPeerDetails detail;
|
||||||
rsPeers->getGPGDetails(RsPgpId(_GPGid.toStdString()), detail) ;
|
rsPeers->getGPGDetails(RsPgpId(_GPGid.toStdString()), detail) ;
|
||||||
return QString("Click to send a private message to %1 (%2).").arg(QString::fromStdString(detail.name)).arg(_GPGid) ;
|
return QString("Click to send a private message to %1 (%2).").arg(QString::fromUtf8(detail.name.c_str())).arg(_GPGid) ;
|
||||||
}
|
}
|
||||||
case TYPE_EXTRAFILE:
|
case TYPE_EXTRAFILE:
|
||||||
return QString("%1 (%2, Extra - Source included)").arg(hash()).arg(misc::friendlyUnit(size()));
|
return QString("%1 (%2, Extra - Source included)").arg(hash()).arg(misc::friendlyUnit(size()));
|
||||||
@ -818,7 +818,7 @@ QString RetroShareLink::niceName() const
|
|||||||
if(type() == TYPE_PUBLIC_MSG) {
|
if(type() == TYPE_PUBLIC_MSG) {
|
||||||
RsPeerDetails detail;
|
RsPeerDetails detail;
|
||||||
rsPeers->getGPGDetails(RsPgpId(_GPGid.toStdString()), detail) ;
|
rsPeers->getGPGDetails(RsPgpId(_GPGid.toStdString()), detail) ;
|
||||||
return QString("Click this link to send a private message to %1 (%2)").arg(QString::fromStdString(detail.name)).arg(_GPGid) ;
|
return QString("Click this link to send a private message to %1 (%2)").arg(QString::fromUtf8(detail.name.c_str())).arg(_GPGid) ;
|
||||||
}
|
}
|
||||||
if(type() == TYPE_CERTIFICATE)
|
if(type() == TYPE_CERTIFICATE)
|
||||||
{
|
{
|
||||||
|
@ -1483,7 +1483,7 @@ void MessageComposer::setRecipientToRow(int row, enumType type, destinationType
|
|||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
name = tr("Distant peer (name: %2, PGP key: %1)").arg(QString::fromStdString(gid.toStdString())).arg(QString::fromStdString(detail.mNickname)) ;
|
name = tr("Distant peer (name: %2, PGP key: %1)").arg(QString::fromStdString(gid.toStdString())).arg(QString::fromUtf8(detail.mNickname.c_str())) ;
|
||||||
icon = QIcon(StatusDefs::imageUser(RS_STATUS_ONLINE));
|
icon = QIcon(StatusDefs::imageUser(RS_STATUS_ONLINE));
|
||||||
}
|
}
|
||||||
break ;
|
break ;
|
||||||
|
@ -314,9 +314,9 @@ ChatPage::load()
|
|||||||
item->setData(Qt::DisplayRole,tr("Private chat invite from ")+QString::fromUtf8(detail.name.c_str())) ;
|
item->setData(Qt::DisplayRole,tr("Private chat invite from ")+QString::fromUtf8(detail.name.c_str())) ;
|
||||||
|
|
||||||
QString tt ;
|
QString tt ;
|
||||||
tt += tr("Name : ") + QString::fromStdString(detail.name) ;
|
tt += tr("Name : ") + QString::fromUtf8(detail.name.c_str())) ;
|
||||||
tt += "\n" + QString("PGP id : ") + QString::fromStdString(invites[i].destination_pgp_id.toStdString()) ;
|
tt += "\n" + tr("PGP id : ") + QString::fromStdString(invites[i].destination_pgp_id.toStdString()) ;
|
||||||
tt += "\n" + QString("Valid until : ") + QDateTime::fromTime_t(invites[i].time_of_validity).toString() ;
|
tt += "\n" + tr("Valid until : ") + QDateTime::fromTime_t(invites[i].time_of_validity).toString() ;
|
||||||
|
|
||||||
item->setData(Qt::UserRole,QString::fromStdString(invites[i].pid.toStdString())) ;
|
item->setData(Qt::UserRole,QString::fromStdString(invites[i].pid.toStdString())) ;
|
||||||
item->setToolTip(tt) ;
|
item->setToolTip(tt) ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user