mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 19:12:28 -04:00
changend profile/info button as link
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1935 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
bccd4e7d22
commit
4dc48127f9
3 changed files with 47 additions and 47 deletions
|
@ -67,8 +67,6 @@ StartDialog::StartDialog(QWidget *parent, Qt::WFlags flags)
|
||||||
connect(ui.loadGPGPasswd, SIGNAL(returnPressed()), this, SLOT(loadPerson()));
|
connect(ui.loadGPGPasswd, SIGNAL(returnPressed()), this, SLOT(loadPerson()));
|
||||||
//connect(ui.selectButton, SIGNAL(clicked()), this, SLOT(selectFriend()));
|
//connect(ui.selectButton, SIGNAL(clicked()), this, SLOT(selectFriend()));
|
||||||
//connect(ui.friendBox, SIGNAL(stateChanged(int)), this, SLOT(checkChanged(int)));
|
//connect(ui.friendBox, SIGNAL(stateChanged(int)), this, SLOT(checkChanged(int)));
|
||||||
connect(ui.createaccountButton, SIGNAL(clicked()), this, SLOT(createnewaccount()));
|
|
||||||
connect(ui.infoButton,SIGNAL(clicked()), this, SLOT(infodlg()));
|
|
||||||
|
|
||||||
/* load the Certificate File name */
|
/* load the Certificate File name */
|
||||||
std::string userName;
|
std::string userName;
|
||||||
|
@ -86,6 +84,11 @@ StartDialog::StartDialog(QWidget *parent, Qt::WFlags flags)
|
||||||
|
|
||||||
ui.loadGPGPasswd->hide();
|
ui.loadGPGPasswd->hide();
|
||||||
ui.label_5->hide();
|
ui.label_5->hide();
|
||||||
|
|
||||||
|
ui.loadPasswd->setMinimumHeight(0);
|
||||||
|
ui.loadGPGPasswd->setMinimumHeight(0);
|
||||||
|
ui.label_4->setMinimumHeight(0);
|
||||||
|
ui.label_5->setMinimumHeight(0);
|
||||||
|
|
||||||
/* get all available pgp private certificates....
|
/* get all available pgp private certificates....
|
||||||
* mark last one as default.
|
* mark last one as default.
|
||||||
|
@ -247,8 +250,7 @@ void StartDialog::loadCertificates()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void StartDialog::on_labelProfile_linkActivated(QString link)
|
||||||
void StartDialog::createnewaccount()
|
|
||||||
{
|
{
|
||||||
//static GenCertDialog *gencertdialog = new GenCertDialog();
|
//static GenCertDialog *gencertdialog = new GenCertDialog();
|
||||||
//gencertdialog->show();
|
//gencertdialog->show();
|
||||||
|
@ -265,21 +267,17 @@ void StartDialog::createnewaccount()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void StartDialog::on_labelInfo_linkActivated(QString link)
|
||||||
void StartDialog::infodlg()
|
|
||||||
{
|
{
|
||||||
static InfoDialog *infodialog = new InfoDialog();
|
static InfoDialog *infodialog = new InfoDialog();
|
||||||
infodialog->show();
|
infodialog->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool StartDialog::requestedNewCert()
|
||||||
|
|
||||||
bool StartDialog::requestedNewCert()
|
|
||||||
{
|
{
|
||||||
return reqNewCert;
|
return reqNewCert;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
LogoBar & StartDialog::getLogoBar() const {
|
LogoBar & StartDialog::getLogoBar() const {
|
||||||
return *_rsLogoBar;
|
return *_rsLogoBar;
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,9 +60,9 @@ private slots:
|
||||||
|
|
||||||
void closeinfodlg();
|
void closeinfodlg();
|
||||||
void loadPerson();
|
void loadPerson();
|
||||||
void createnewaccount();
|
|
||||||
void infodlg();
|
void on_labelProfile_linkActivated(QString link);
|
||||||
|
void on_labelInfo_linkActivated(QString link);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>244</width>
|
<width>291</width>
|
||||||
<height>532</height>
|
<height>514</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="palette">
|
<property name="palette">
|
||||||
|
@ -594,14 +594,14 @@ p, li { white-space: pre-wrap; }
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" colspan="2">
|
<item row="3" column="0" colspan="2">
|
||||||
<widget class="QLabel" name="label_4">
|
<widget class="QLabel" name="label_4">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Password:</string>
|
<string>Password:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0" colspan="2">
|
<item row="4" column="0" colspan="2">
|
||||||
<widget class="QLineEdit" name="loadPasswd">
|
<widget class="QLineEdit" name="loadPasswd">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
|
@ -617,7 +617,7 @@ p, li { white-space: pre-wrap; }
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="0">
|
<item row="7" column="0">
|
||||||
<widget class="QCheckBox" name="autoBox">
|
<widget class="QCheckBox" name="autoBox">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Auto-login</string>
|
<string>Auto-login</string>
|
||||||
|
@ -627,7 +627,7 @@ p, li { white-space: pre-wrap; }
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="1">
|
<item row="7" column="1">
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
|
@ -643,20 +643,33 @@ p, li { white-space: pre-wrap; }
|
||||||
<item row="1" column="0" colspan="2">
|
<item row="1" column="0" colspan="2">
|
||||||
<widget class="QComboBox" name="loadName"/>
|
<widget class="QComboBox" name="loadName"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0" colspan="2">
|
<item row="6" column="0" colspan="2">
|
||||||
<widget class="QLineEdit" name="loadGPGPasswd">
|
<widget class="QLineEdit" name="loadGPGPasswd">
|
||||||
<property name="echoMode">
|
<property name="echoMode">
|
||||||
<enum>QLineEdit::Password</enum>
|
<enum>QLineEdit::Password</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0">
|
<item row="5" column="0">
|
||||||
<widget class="QLabel" name="label_5">
|
<widget class="QLabel" name="label_5">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PGP Password</string>
|
<string>PGP Password</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="2" column="0" colspan="2">
|
||||||
|
<spacer name="verticalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -709,20 +722,7 @@ p, li { white-space: pre-wrap; }
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0" colspan="4">
|
<item row="6" column="0" colspan="4">
|
||||||
<spacer>
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="7" column="0" colspan="4">
|
|
||||||
<widget class="QFrame" name="callBarFrame">
|
<widget class="QFrame" name="callBarFrame">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
|
@ -764,23 +764,25 @@ p, li { white-space: pre-wrap; }
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="1">
|
<item row="5" column="1">
|
||||||
<widget class="QPushButton" name="createaccountButton">
|
<widget class="QLabel" name="labelProfile">
|
||||||
<property name="toolTip">
|
|
||||||
<string>Generate now a Profile</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Create new profile</string>
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
</property>
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
<property name="flat">
|
p, li { white-space: pre-wrap; }
|
||||||
<bool>false</bool>
|
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="Create new Profile..."><span style=" text-decoration: underline; color:#0000ff;">Create new Profile...</span></a></p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="2">
|
<item row="5" column="2">
|
||||||
<widget class="QPushButton" name="infoButton">
|
<widget class="QLabel" name="labelInfo">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Info</string>
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
|
p, li { white-space: pre-wrap; }
|
||||||
|
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="Info"><span style=" font-size:8pt; text-decoration: underline; color:#0000ff;">Info...</span></a></p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue