mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-21 21:55:15 -05: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
@ -67,8 +67,6 @@ StartDialog::StartDialog(QWidget *parent, Qt::WFlags flags)
|
||||
connect(ui.loadGPGPasswd, SIGNAL(returnPressed()), this, SLOT(loadPerson()));
|
||||
//connect(ui.selectButton, SIGNAL(clicked()), this, SLOT(selectFriend()));
|
||||
//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 */
|
||||
std::string userName;
|
||||
@ -86,6 +84,11 @@ StartDialog::StartDialog(QWidget *parent, Qt::WFlags flags)
|
||||
|
||||
ui.loadGPGPasswd->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....
|
||||
* mark last one as default.
|
||||
@ -247,8 +250,7 @@ void StartDialog::loadCertificates()
|
||||
|
||||
}
|
||||
|
||||
|
||||
void StartDialog::createnewaccount()
|
||||
void StartDialog::on_labelProfile_linkActivated(QString link)
|
||||
{
|
||||
//static GenCertDialog *gencertdialog = new GenCertDialog();
|
||||
//gencertdialog->show();
|
||||
@ -265,21 +267,17 @@ void StartDialog::createnewaccount()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void StartDialog::infodlg()
|
||||
void StartDialog::on_labelInfo_linkActivated(QString link)
|
||||
{
|
||||
static InfoDialog *infodialog = new InfoDialog();
|
||||
infodialog->show();
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool StartDialog::requestedNewCert()
|
||||
bool StartDialog::requestedNewCert()
|
||||
{
|
||||
return reqNewCert;
|
||||
}
|
||||
|
||||
|
||||
LogoBar & StartDialog::getLogoBar() const {
|
||||
return *_rsLogoBar;
|
||||
}
|
||||
|
@ -60,9 +60,9 @@ private slots:
|
||||
|
||||
void closeinfodlg();
|
||||
void loadPerson();
|
||||
void createnewaccount();
|
||||
void infodlg();
|
||||
|
||||
|
||||
void on_labelProfile_linkActivated(QString link);
|
||||
void on_labelInfo_linkActivated(QString link);
|
||||
|
||||
private:
|
||||
|
||||
|
@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>244</width>
|
||||
<height>532</height>
|
||||
<width>291</width>
|
||||
<height>514</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="palette">
|
||||
@ -594,14 +594,14 @@ p, li { white-space: pre-wrap; }
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="2">
|
||||
<item row="3" column="0" colspan="2">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Password:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="2">
|
||||
<item row="4" column="0" colspan="2">
|
||||
<widget class="QLineEdit" name="loadPasswd">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
@ -617,7 +617,7 @@ p, li { white-space: pre-wrap; }
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<item row="7" column="0">
|
||||
<widget class="QCheckBox" name="autoBox">
|
||||
<property name="text">
|
||||
<string>Auto-login</string>
|
||||
@ -627,7 +627,7 @@ p, li { white-space: pre-wrap; }
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="1">
|
||||
<item row="7" column="1">
|
||||
<spacer>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
@ -643,20 +643,33 @@ p, li { white-space: pre-wrap; }
|
||||
<item row="1" column="0" colspan="2">
|
||||
<widget class="QComboBox" name="loadName"/>
|
||||
</item>
|
||||
<item row="5" column="0" colspan="2">
|
||||
<item row="6" column="0" colspan="2">
|
||||
<widget class="QLineEdit" name="loadGPGPasswd">
|
||||
<property name="echoMode">
|
||||
<enum>QLineEdit::Password</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<item row="5" column="0">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>PGP Password</string>
|
||||
</property>
|
||||
</widget>
|
||||
</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>
|
||||
</widget>
|
||||
</item>
|
||||
@ -709,20 +722,7 @@ p, li { white-space: pre-wrap; }
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="5" 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">
|
||||
<item row="6" column="0" colspan="4">
|
||||
<widget class="QFrame" name="callBarFrame">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
@ -764,23 +764,25 @@ p, li { white-space: pre-wrap; }
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="6" column="1">
|
||||
<widget class="QPushButton" name="createaccountButton">
|
||||
<property name="toolTip">
|
||||
<string>Generate now a Profile</string>
|
||||
</property>
|
||||
<item row="5" column="1">
|
||||
<widget class="QLabel" name="labelProfile">
|
||||
<property name="text">
|
||||
<string>Create new profile</string>
|
||||
</property>
|
||||
<property name="flat">
|
||||
<bool>false</bool>
|
||||
<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="Create new Profile..."><span style=" text-decoration: underline; color:#0000ff;">Create new Profile...</span></a></p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="2">
|
||||
<widget class="QPushButton" name="infoButton">
|
||||
<item row="5" column="2">
|
||||
<widget class="QLabel" name="labelInfo">
|
||||
<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>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
Reference in New Issue
Block a user