diff --git a/src/gui/wizard/flow2authwidget.cpp b/src/gui/wizard/flow2authwidget.cpp index cb9262846d971..e191648e32ad1 100644 --- a/src/gui/wizard/flow2authwidget.cpp +++ b/src/gui/wizard/flow2authwidget.cpp @@ -42,8 +42,8 @@ Flow2AuthWidget::Flow2AuthWidget(QWidget *parent) WizardCommon::initErrorLabel(_ui.errorLabel); _ui.errorLabel->setTextFormat(Qt::RichText); - connect(_ui.openLinkLabel, &LinkLabel::clicked, this, &Flow2AuthWidget::slotOpenBrowser); - connect(_ui.copyLinkLabel, &LinkLabel::clicked, this, &Flow2AuthWidget::slotCopyLinkToClipboard); + connect(_ui.openLinkButton, &QPushButton::clicked, this, &Flow2AuthWidget::slotOpenBrowser); + connect(_ui.copyLinkButton, &QPushButton::clicked, this, &Flow2AuthWidget::slotCopyLinkToClipboard); auto sizePolicy = _progressIndi->sizePolicy(); sizePolicy.setRetainSizeWhenHidden(true); @@ -186,8 +186,8 @@ void Flow2AuthWidget::startSpinner() _progressIndi->setVisible(true); _progressIndi->startAnimation(); - _ui.openLinkLabel->setEnabled(false); - _ui.copyLinkLabel->setEnabled(false); + _ui.openLinkButton->setEnabled(false); + _ui.copyLinkButton->setEnabled(false); } void Flow2AuthWidget::stopSpinner(bool showStatusLabel) @@ -197,8 +197,8 @@ void Flow2AuthWidget::stopSpinner(bool showStatusLabel) _progressIndi->setVisible(false); _progressIndi->stopAnimation(); - _ui.openLinkLabel->setEnabled(_statusUpdateSkipCount == 0); - _ui.copyLinkLabel->setEnabled(_statusUpdateSkipCount == 0); + _ui.openLinkButton->setEnabled(_statusUpdateSkipCount == 0); + _ui.copyLinkButton->setEnabled(_statusUpdateSkipCount == 0); } void Flow2AuthWidget::slotStyleChanged() @@ -219,11 +219,9 @@ void Flow2AuthWidget::customizeStyle() } } - _ui.openLinkLabel->setText(tr("Reopen Browser")); - _ui.openLinkLabel->setAlignment(Qt::AlignCenter); + _ui.openLinkButton->setText(tr("Open Browser")); - _ui.copyLinkLabel->setText(tr("Copy Link")); - _ui.copyLinkLabel->setAlignment(Qt::AlignCenter); + _ui.copyLinkButton->setText(tr("Copy Link")); WizardCommon::customizeHintLabel(_ui.statusLabel); } diff --git a/src/gui/wizard/flow2authwidget.ui b/src/gui/wizard/flow2authwidget.ui index 44961ddae1a2a..e98f3c6d5e515 100644 --- a/src/gui/wizard/flow2authwidget.ui +++ b/src/gui/wizard/flow2authwidget.ui @@ -6,8 +6,8 @@ 0 0 - 580 - 330 + 597 + 387 @@ -25,31 +25,22 @@ Browser Authentication - + - + Qt::Vertical - - QSizePolicy::Expanding - 20 - 80 + 40 - - - 0 - - - 0 - + @@ -60,12 +51,24 @@ + + + + Qt::Vertical + + + + 20 + 32 + + + + 12 - 75 true @@ -80,6 +83,22 @@ + + + + Qt::Vertical + + + QSizePolicy::Expanding + + + + 20 + 8 + + + + @@ -94,13 +113,36 @@ - - - 0 + + + Qt::Vertical - - 0 + + + 20 + 32 + + + + + + + + + + Qt::Vertical + + + + 20 + 64 + + + + + + @@ -115,15 +157,54 @@ - - - 0 - + - + + + + 0 + 0 + + + + + 9 + + + + pbSelectLocalFolder + + + true + + + false + + - + + + + 0 + 0 + + + + + 9 + + + + pbSelectLocalFolder + + + true + + + false + + @@ -155,47 +236,26 @@ - - - - + Qt::Vertical - - - 20 - 20 - - - - - - - - Qt::Vertical + + QSizePolicy::Expanding 20 - 80 + 60 - - - OCC::LinkLabel - QWidget -
wizard/linklabel.h
- 1 -
-