mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-10 19:58:49 +02:00
Merge pull request #4542 from stojce/20429
CR for Job #20429 - Add "Create account" link to Qt login dialog in Interface
This commit is contained in:
commit
9709724cc2
2 changed files with 8 additions and 3 deletions
|
@ -24,6 +24,7 @@
|
||||||
#include "LoginDialog.h"
|
#include "LoginDialog.h"
|
||||||
#include "UIUtil.h"
|
#include "UIUtil.h"
|
||||||
|
|
||||||
|
const QString CREATE_ACCOUNT_URL = NetworkingConstants::METAVERSE_SERVER_URL.toString() + "/create";
|
||||||
const QString FORGOT_PASSWORD_URL = NetworkingConstants::METAVERSE_SERVER_URL.toString() + "/users/password/new";
|
const QString FORGOT_PASSWORD_URL = NetworkingConstants::METAVERSE_SERVER_URL.toString() + "/users/password/new";
|
||||||
|
|
||||||
LoginDialog::LoginDialog(QWidget* parent) :
|
LoginDialog::LoginDialog(QWidget* parent) :
|
||||||
|
@ -45,6 +46,7 @@ LoginDialog::LoginDialog(QWidget* parent) :
|
||||||
this, &LoginDialog::close);
|
this, &LoginDialog::close);
|
||||||
|
|
||||||
UIUtil::scaleWidgetFontSizes(this);
|
UIUtil::scaleWidgetFontSizes(this);
|
||||||
|
_ui->accountLabel->setText(_ui->accountLabel->text().arg(CREATE_ACCOUNT_URL, FORGOT_PASSWORD_URL));
|
||||||
|
|
||||||
// Initialize toggle connection
|
// Initialize toggle connection
|
||||||
toggleQAction();
|
toggleQAction();
|
||||||
|
|
|
@ -447,7 +447,7 @@ border-radius: 4px; padding-top: 1px;</string>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="accountLabel">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
<family>Helvetica,Arial,sans-serif</family>
|
<family>Helvetica,Arial,sans-serif</family>
|
||||||
|
@ -456,9 +456,12 @@ border-radius: 4px; padding-top: 1px;</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string><style type="text/css">
|
<string><style type="text/css">
|
||||||
a { text-decoration: none; color: #267077;}
|
a { text-decoration: none; color: #267077; margin:0;padding:0;}
|
||||||
|
#create {font-weight:bold;}
|
||||||
|
p {margin:5px 0;}
|
||||||
</style>
|
</style>
|
||||||
<a href="https://metaverse.highfidelity.com/password/new">Recover password?</a></string>
|
<p><a id="create" href="%1">Create account</a></p>
|
||||||
|
<p><a href="%2">Recover password</a></p></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="openExternalLinks">
|
<property name="openExternalLinks">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
|
Loading…
Reference in a new issue