Replaced std::string by QString in GetStartedDialog for easier translation and to prevent problems with utf8 chars.

Fixed german translation.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4886 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-02-04 00:55:55 +00:00
parent b3de0cd06d
commit 91809abd56
6 changed files with 454 additions and 357 deletions

View file

@ -1296,7 +1296,7 @@ EmailPage::EmailPage(QWidget *parent) : QWizardPage(parent) {
inviteTextEdit = new QTextEdit;
inviteTextEdit->setReadOnly(true);
inviteTextEdit->setPlainText(QString::fromUtf8(GetStartedDialog::GetInviteText().c_str()));
inviteTextEdit->setPlainText(GetStartedDialog::GetInviteText());
emailvboxLayout = new QVBoxLayout;
emailvboxLayout->addLayout(emailhbox2Layout);
@ -1329,7 +1329,7 @@ bool EmailPage::validatePage()
{
QString body = inviteTextEdit->toPlainText();
body += "\n" + QString::fromUtf8(GetStartedDialog::GetCutBelowText().c_str());
body += "\n" + GetStartedDialog::GetCutBelowText();
body += "\n\n" + QString::fromUtf8(rsPeers->GetRetroshareInvite(false).c_str());
sendMail (mailaddresses, subjectEdit->text(), body);