add webmail invite option to homepage dropmenu

This commit is contained in:
RetroPooh 2017-03-03 22:31:23 +03:00
parent 76ab91f258
commit cb960a358d
2 changed files with 14 additions and 1 deletions

View File

@ -61,7 +61,10 @@ HomePage::HomePage(QWidget *parent) :
QAction *SendAction = new QAction(QIcon(),tr("Send via Email"), this);
connect(SendAction, SIGNAL(triggered()), this, SLOT(runEmailClient()));
QAction *WebMailAction = new QAction(QIcon(),tr("Invite via WebMail"), this);
connect(WebMailAction, SIGNAL(triggered()), this, SLOT(webMail()));
QAction *RecAction = new QAction(QIcon(),tr("Recommend friends to each others"), this);
connect(RecAction, SIGNAL(triggered()), this, SLOT(recommendFriends()));
@ -69,6 +72,7 @@ HomePage::HomePage(QWidget *parent) :
menu->addAction(CopyAction);
menu->addAction(SaveAction);
menu->addAction(SendAction);
menu->addAction(WebMailAction);
menu->addAction(RecAction);
ui->shareButton->setMenu(menu);
@ -175,6 +179,14 @@ void HomePage::addFriend()
connwiz.exec ();
}
void HomePage::webMail()
{
ConnectFriendWizard connwiz (this);
connwiz.setStartId(ConnectFriendWizard::Page_WebMail);
connwiz.exec ();
}
void HomePage::runStartWizard()
{
QuickStartWizard(this).exec();

View File

@ -53,6 +53,7 @@ private slots:
void copyCert();
void saveCert();
void addFriend();
void webMail();
void runStartWizard() ;
void openWebHelp() ;
void recommendFriends();