mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 06:09:09 -04:00
using ElideLabel for RS id
This commit is contained in:
parent
8d2a8f8ced
commit
c0e8502cbf
2 changed files with 67 additions and 41 deletions
|
@ -202,7 +202,25 @@ void HomePage::updateOwnId()
|
|||
|
||||
rsPeers->getShortInvite(invite,rsPeers->getOwnId(),true,!include_extra_locators);
|
||||
|
||||
ui->retroshareid->setText(QString::fromUtf8(invite.c_str()));
|
||||
#ifdef TODO
|
||||
QString S;
|
||||
QString txt;
|
||||
int i=0;
|
||||
|
||||
for(uint32_t i=0;i<invite.size();)
|
||||
if(QFontMetricsF(font()).width(S) < ui->retroshareid->width())
|
||||
S += invite[i++];
|
||||
else
|
||||
{
|
||||
txt += S + "\n";
|
||||
S.clear();
|
||||
}
|
||||
|
||||
txt += S;
|
||||
|
||||
ui->retroshareid->setText(txt);
|
||||
#endif
|
||||
ui->retroshareid->setText(QString::fromUtf8(invite.c_str()));
|
||||
}
|
||||
static void sendMail(QString sAddress, QString sSubject, QString sBody)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue