mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 07:59:35 -05:00
homepage - add friend from cert file button
This commit is contained in:
parent
cb960a358d
commit
d6870b45e9
@ -52,6 +52,7 @@ HomePage::HomePage(QWidget *parent) :
|
||||
updateOwnCert();
|
||||
|
||||
connect(ui->addButton, SIGNAL(clicked()), this, SLOT(addFriend()));
|
||||
connect(ui->LoadCertFileButton, SIGNAL(clicked()), this, SLOT(loadCert()));
|
||||
|
||||
QAction *CopyAction = new QAction(QIcon(),tr("Copy your Cert to Clipboard"), this);
|
||||
connect(CopyAction, SIGNAL(triggered()), this, SLOT(copyCert()));
|
||||
@ -187,6 +188,14 @@ void HomePage::webMail()
|
||||
connwiz.exec ();
|
||||
}
|
||||
|
||||
void HomePage::loadCert()
|
||||
{
|
||||
ConnectFriendWizard connwiz (this);
|
||||
|
||||
connwiz.setStartId(ConnectFriendWizard::Page_Cert);
|
||||
connwiz.exec ();
|
||||
}
|
||||
|
||||
void HomePage::runStartWizard()
|
||||
{
|
||||
QuickStartWizard(this).exec();
|
||||
|
@ -54,6 +54,7 @@ private slots:
|
||||
void saveCert();
|
||||
void addFriend();
|
||||
void webMail();
|
||||
void loadCert();
|
||||
void runStartWizard() ;
|
||||
void openWebHelp() ;
|
||||
void recommendFriends();
|
||||
|
@ -58,6 +58,29 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="LoadCertFileButton">
|
||||
<property name="text">
|
||||
<string>Add certificate file</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="icons.qrc">
|
||||
<normaloff>:/icons/svg/folders1.svg</normaloff>:/icons/svg/folders1.svg</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>24</width>
|
||||
<height>24</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
<enum>Qt::ToolButtonTextBesideIcon</enum>
|
||||
</property>
|
||||
<property name="autoRaise">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -82,6 +82,8 @@ ConnectFriendWizard::ConnectFriendWizard(QWidget *parent) :
|
||||
// (csoler) I'm hiding this, since it is not needed anymore with the new Home page.
|
||||
ui->userFrame->hide();
|
||||
|
||||
ui->userFileFrame->hide(); // in homepage dropmenu now
|
||||
|
||||
// this define comes from Qt example. I don't have mac, so it wasn't tested
|
||||
#ifndef Q_OS_MAC
|
||||
setWizardStyle(ModernStyle);
|
||||
|
Loading…
Reference in New Issue
Block a user