fix: qr code overlaping with text when adding account
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
a89fc7d1e0
commit
a67a015e49
1 changed files with 12 additions and 0 deletions
|
@ -135,6 +135,9 @@ void MSALoginDialog::onTaskFailed(QString reason)
|
|||
void MSALoginDialog::authorizeWithBrowser(const QUrl& url)
|
||||
{
|
||||
ui->stackedWidget2->setCurrentIndex(1);
|
||||
ui->stackedWidget2->adjustSize();
|
||||
ui->stackedWidget2->updateGeometry();
|
||||
this->adjustSize();
|
||||
ui->loginButton->setToolTip(QString("<div style='width: 200px;'>%1</div>").arg(url.toString()));
|
||||
m_url = url;
|
||||
}
|
||||
|
@ -142,6 +145,9 @@ void MSALoginDialog::authorizeWithBrowser(const QUrl& url)
|
|||
void MSALoginDialog::authorizeWithBrowserWithExtra(QString url, QString code, [[maybe_unused]] int expiresIn)
|
||||
{
|
||||
ui->stackedWidget->setCurrentIndex(1);
|
||||
ui->stackedWidget->adjustSize();
|
||||
ui->stackedWidget->updateGeometry();
|
||||
this->adjustSize();
|
||||
|
||||
const auto linkString = QString("<a href=\"%1\">%2</a>").arg(url, url);
|
||||
if (url == "https://www.microsoft.com/link" && !code.isEmpty()) {
|
||||
|
@ -165,12 +171,18 @@ void MSALoginDialog::authorizeWithBrowserWithExtra(QString url, QString code, [[
|
|||
void MSALoginDialog::onDeviceFlowStatus(QString status)
|
||||
{
|
||||
ui->stackedWidget->setCurrentIndex(0);
|
||||
ui->stackedWidget->adjustSize();
|
||||
ui->stackedWidget->updateGeometry();
|
||||
this->adjustSize();
|
||||
ui->status->setText(status);
|
||||
}
|
||||
|
||||
void MSALoginDialog::onAuthFlowStatus(QString status)
|
||||
{
|
||||
ui->stackedWidget2->setCurrentIndex(0);
|
||||
ui->stackedWidget2->adjustSize();
|
||||
ui->stackedWidget2->updateGeometry();
|
||||
this->adjustSize();
|
||||
ui->status2->setText(status);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue