Added default Email Client Button to Web Mail Page

This commit is contained in:
defnax 2015-10-25 00:54:22 +02:00
parent b501d91f21
commit b717d601f4
3 changed files with 26 additions and 1 deletions

View File

@ -105,11 +105,13 @@ ConnectFriendWizard::ConnectFriendWizard(QWidget *parent) :
connect(ui->acceptNoSignGPGCheckBox,SIGNAL(toggled(bool)), ui->_options_GB,SLOT(setEnabled(bool))) ;
connect(ui->addKeyToKeyring_CB,SIGNAL(toggled(bool)), ui->acceptNoSignGPGCheckBox,SLOT(setChecked(bool))) ;
connect(ui->gmailButton, SIGNAL(clicked()), this, SLOT(inviteGmail()));
connect(ui->gmailButton, SIGNAL(clicked()), this, SLOT(inviteGmail()));
connect(ui->yahooButton, SIGNAL(clicked()), this, SLOT(inviteYahoo()));
connect(ui->outlookButton, SIGNAL(clicked()), this, SLOT(inviteOutlook()));
connect(ui->aolButton, SIGNAL(clicked()), this, SLOT(inviteAol()));
connect(ui->yandexButton, SIGNAL(clicked()), this, SLOT(inviteYandex()));
connect(ui->emailButton, SIGNAL(clicked()), this, SLOT(runEmailClient2()));
subject = tr("RetroShare Invitation");
body = GetStartedDialog::GetInviteText();
@ -1256,3 +1258,8 @@ void ConnectFriendWizard::inviteYandex()
{
QDesktopServices::openUrl(QUrl("https://mail.yandex.com/neo2/#compose/subject=" + subject + "&body=" + body, QUrl::TolerantMode));
}
void ConnectFriendWizard::runEmailClient2()
{
sendMail("", subject, body );
}

View File

@ -62,6 +62,7 @@ private slots:
void toggleSignatureState(bool doUpdate = true);
void toggleFormatState(bool doUpdate = true);
void runEmailClient();
void runEmailClient2();
void showHelpUserCert();
void copyCert();
void pasteCert();

View File

@ -652,6 +652,23 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="emailButton">
<property name="text">
<string>Email</string>
</property>
<property name="icon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/mail_128.png</normaloff>:/icons/mail_128.png</iconset>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">