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:
defnax 2009-12-23 16:17:36 +00:00
parent bccd4e7d22
commit 4dc48127f9
3 changed files with 47 additions and 47 deletions

View File

@ -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;
}

View File

@ -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:

View File

@ -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>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;a href=&quot;Create new Profile...&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;Create new Profile...&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</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>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;a href=&quot;Info&quot;&gt;&lt;span style=&quot; font-size:8pt; text-decoration: underline; color:#0000ff;&quot;&gt;Info...&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>