mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 14:45:12 -04:00
add webmail invite option to homepage dropmenu
This commit is contained in:
parent
76ab91f258
commit
cb960a358d
2 changed files with 14 additions and 1 deletions
|
@ -61,7 +61,10 @@ HomePage::HomePage(QWidget *parent) :
|
||||||
|
|
||||||
QAction *SendAction = new QAction(QIcon(),tr("Send via Email"), this);
|
QAction *SendAction = new QAction(QIcon(),tr("Send via Email"), this);
|
||||||
connect(SendAction, SIGNAL(triggered()), this, SLOT(runEmailClient()));
|
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);
|
QAction *RecAction = new QAction(QIcon(),tr("Recommend friends to each others"), this);
|
||||||
connect(RecAction, SIGNAL(triggered()), this, SLOT(recommendFriends()));
|
connect(RecAction, SIGNAL(triggered()), this, SLOT(recommendFriends()));
|
||||||
|
|
||||||
|
@ -69,6 +72,7 @@ HomePage::HomePage(QWidget *parent) :
|
||||||
menu->addAction(CopyAction);
|
menu->addAction(CopyAction);
|
||||||
menu->addAction(SaveAction);
|
menu->addAction(SaveAction);
|
||||||
menu->addAction(SendAction);
|
menu->addAction(SendAction);
|
||||||
|
menu->addAction(WebMailAction);
|
||||||
menu->addAction(RecAction);
|
menu->addAction(RecAction);
|
||||||
|
|
||||||
ui->shareButton->setMenu(menu);
|
ui->shareButton->setMenu(menu);
|
||||||
|
@ -175,6 +179,14 @@ void HomePage::addFriend()
|
||||||
connwiz.exec ();
|
connwiz.exec ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void HomePage::webMail()
|
||||||
|
{
|
||||||
|
ConnectFriendWizard connwiz (this);
|
||||||
|
|
||||||
|
connwiz.setStartId(ConnectFriendWizard::Page_WebMail);
|
||||||
|
connwiz.exec ();
|
||||||
|
}
|
||||||
|
|
||||||
void HomePage::runStartWizard()
|
void HomePage::runStartWizard()
|
||||||
{
|
{
|
||||||
QuickStartWizard(this).exec();
|
QuickStartWizard(this).exec();
|
||||||
|
|
|
@ -53,6 +53,7 @@ private slots:
|
||||||
void copyCert();
|
void copyCert();
|
||||||
void saveCert();
|
void saveCert();
|
||||||
void addFriend();
|
void addFriend();
|
||||||
|
void webMail();
|
||||||
void runStartWizard() ;
|
void runStartWizard() ;
|
||||||
void openWebHelp() ;
|
void openWebHelp() ;
|
||||||
void recommendFriends();
|
void recommendFriends();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue