removed unused startWizard and loadCert code in HomePage

This commit is contained in:
csoler 2019-06-10 00:03:07 +02:00
parent 76cf64f8d5
commit a7141cbf69
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
4 changed files with 120 additions and 150 deletions

View file

@ -56,7 +56,7 @@ HomePage::HomePage(QWidget *parent) :
updateOwnCert();
connect(ui->addButton, SIGNAL(clicked()), this, SLOT(addFriend()));
connect(ui->LoadCertFileButton, SIGNAL(clicked()), this, SLOT(loadCert()));
//connect(ui->LoadCertFileButton, SIGNAL(clicked()), this, SLOT(loadCert()));
QAction *WebMailAction = new QAction(QIcon(),tr("Invite via WebMail"), this);
connect(WebMailAction, SIGNAL(triggered()), this, SLOT(webMail()));
@ -76,11 +76,9 @@ HomePage::HomePage(QWidget *parent) :
QObject::connect(ui->userCertEdit,SIGNAL(customContextMenuRequested(QPoint)),this,SLOT(certContextMenu(QPoint)));
connect(ui->runStartWizard_PB,SIGNAL(clicked()), this,SLOT(runStartWizard())) ;
connect(ui->openwebhelp,SIGNAL(clicked()), this,SLOT(openWebHelp())) ;
ui->runStartWizard_PB->hide(); // until future rework
ui->LoadCertFileButton->hide(); // duplicates functionality => not good.
//ui->LoadCertFileButton->hide(); // duplicates functionality => not good.
int S = QFontMetricsF(font()).height();
QString help_str = tr(
@ -251,18 +249,13 @@ void HomePage::webMail()
connwiz.exec ();
}
void HomePage::loadCert()
{
ConnectFriendWizard connwiz (this);
connwiz.setStartId(ConnectFriendWizard::Page_Cert);
connwiz.exec ();
}
void HomePage::runStartWizard()
{
QuickStartWizard(this).exec();
}
// void HomePage::loadCert()
// {
// ConnectFriendWizard connwiz (this);
//
// connwiz.setStartId(ConnectFriendWizard::Page_Cert);
// connwiz.exec ();
// }
void HomePage::openWebHelp()
{