diff --git a/src/gui/wizard/owncloudadvancedsetuppage.cpp b/src/gui/wizard/owncloudadvancedsetuppage.cpp index fe8276024b..90e855f456 100644 --- a/src/gui/wizard/owncloudadvancedsetuppage.cpp +++ b/src/gui/wizard/owncloudadvancedsetuppage.cpp @@ -51,7 +51,7 @@ OwncloudAdvancedSetupPage::OwncloudAdvancedSetupPage() registerField(QLatin1String("OCSyncFromScratch"), _ui.cbSyncFromScratch); - _ui.resultLayout->addWidget(_progressIndi); + _ui.errorScrollContents->layout()->addWidget(_progressIndi); stopSpinner(); setupCustomization(); @@ -105,6 +105,11 @@ void OwncloudAdvancedSetupPage::initializePage() { WizardCommon::initErrorLabel(_ui.errorLabel); + auto labelSizeHint = _ui.errorLabel->minimumSizeHint(); + _ui.errorScroll->setMinimumSize( + labelSizeHint.width(), + qMax(1.3 * labelSizeHint.height(), _progressIndi->height())); + if (!ConfigFile().showExperimentalOptions()) { // If the layout were wrapped in a widget, the auto-grouping of the // radio buttons no longer works and there are surprising margins. @@ -181,8 +186,6 @@ void OwncloudAdvancedSetupPage::updateStatus() } _ui.syncModeLabel->setText(t); - _ui.syncModeLabel->setFixedHeight(_ui.syncModeLabel->sizeHint().height()); - wizard()->resize(wizard()->sizeHint()); setErrorString(errorStr); emit completeChanged(); } @@ -195,14 +198,12 @@ bool OwncloudAdvancedSetupPage::dataChanged() void OwncloudAdvancedSetupPage::startSpinner() { - _ui.resultLayout->setEnabled(true); _progressIndi->setVisible(true); _progressIndi->startAnimation(); } void OwncloudAdvancedSetupPage::stopSpinner() { - _ui.resultLayout->setEnabled(false); _progressIndi->setVisible(false); _progressIndi->stopAnimation(); } diff --git a/src/gui/wizard/owncloudadvancedsetuppage.ui b/src/gui/wizard/owncloudadvancedsetuppage.ui index 1b9fcaac4d..b490eacf0f 100644 --- a/src/gui/wizard/owncloudadvancedsetuppage.ui +++ b/src/gui/wizard/owncloudadvancedsetuppage.ui @@ -6,8 +6,8 @@ 0 0 - 912 - 635 + 917 + 604 @@ -454,13 +454,6 @@ - - - - TextLabel - - - @@ -478,7 +471,54 @@ - + + + QFrame::NoFrame + + + Qt::ScrollBarAlwaysOff + + + true + + + + + 0 + 0 + 899 + 68 + + + + + 0 + 0 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + TextLabel + + + + + + diff --git a/src/gui/wizard/owncloudwizardcommon.cpp b/src/gui/wizard/owncloudwizardcommon.cpp index cf27126dd4..229987ece1 100644 --- a/src/gui/wizard/owncloudwizardcommon.cpp +++ b/src/gui/wizard/owncloudwizardcommon.cpp @@ -62,9 +62,6 @@ namespace WizardCommon { errorLabel->setStyleSheet(style); errorLabel->setWordWrap(true); - auto sizePolicy = errorLabel->sizePolicy(); - sizePolicy.setRetainSizeWhenHidden(true); - errorLabel->setSizePolicy(sizePolicy); errorLabel->setVisible(false); }