@@ -44,7 +44,6 @@ OwncloudSetupPage::OwncloudSetupPage(QWidget *parent)
4444 const auto theme = Theme::instance ();
4545 if (theme->overrideServerUrl ().isEmpty ()) {
4646 _ui.comboBox ->hide ();
47- _ui.leUrl ->setPostfix (theme->wizardUrlPostfix ());
4847 _ui.leUrl ->setPlaceholderText (theme->wizardUrlHint ());
4948 } else if (theme->multipleOverrideServers () && theme->forceOverrideServerUrl ()) {
5049 _ui.leUrl ->hide ();
@@ -156,11 +155,6 @@ void OwncloudSetupPage::setupCustomization()
156155
157156 variant = theme->customMedia (Theme::oCSetupBottom);
158157 WizardCommon::setupCustomMedia (variant, _ui.bottomLabel );
159-
160- auto leUrlPalette = _ui.leUrl ->palette ();
161- leUrlPalette.setColor (QPalette::Text, Qt::black);
162- leUrlPalette.setColor (QPalette::Base, Qt::white);
163- _ui.leUrl ->setPalette (leUrlPalette);
164158}
165159
166160// slot hit from textChanged of the url entry field.
@@ -195,27 +189,27 @@ void OwncloudSetupPage::slotUrlChanged(const QString &url)
195189 if (newUrl != url) {
196190 _ui.leUrl ->setText (newUrl);
197191 }
198- setProxySettingsButtonEnabled (!_ui.leUrl ->fullText ().isEmpty ());
192+ setProxySettingsButtonEnabled (!_ui.leUrl ->text ().isEmpty ());
199193}
200194
201195void OwncloudSetupPage::slotUrlEditFinished ()
202196{
203- QString url = _ui.leUrl ->fullText ();
197+ QString url = _ui.leUrl ->text ();
204198 if (QUrl (url).isRelative () && !url.isEmpty ()) {
205199 // no scheme defined, set one
206200 url.prepend (" https://" );
207- _ui.leUrl ->setFullText (url);
201+ _ui.leUrl ->setText (url);
208202 }
209203}
210204
211205void OwncloudSetupPage::slotSetProxySettings ()
212206{
213207 if (!_proxySettingsDialog) {
214- _proxySettingsDialog = new WizardProxySettingsDialog{QUrl::fromUserInput (_ui.leUrl ->fullText ()), _proxySettings, this };
208+ _proxySettingsDialog = new WizardProxySettingsDialog{QUrl::fromUserInput (_ui.leUrl ->text ()), _proxySettings, this };
215209
216210 connect (_proxySettingsDialog, &WizardProxySettingsDialog::proxySettingsAccepted, this , [this ] (const OCC::WizardProxySettingsDialog::WizardProxySettings &proxySettings) { _proxySettings = proxySettings;});
217211 } else {
218- _proxySettingsDialog->setServerUrl (QUrl::fromUserInput (_ui.leUrl ->fullText ()));
212+ _proxySettingsDialog->setServerUrl (QUrl::fromUserInput (_ui.leUrl ->text ()));
219213 _proxySettingsDialog->setProxySettings (_proxySettings);
220214 }
221215
@@ -306,7 +300,7 @@ QString OwncloudSetupPage::url() const
306300 if (theme->multipleOverrideServers () && theme->forceOverrideServerUrl ()) {
307301 return _ui.comboBox ->currentData ().toString ();
308302 } else {
309- return _ui.leUrl ->fullText ().simplified ();
303+ return _ui.leUrl ->text ().simplified ();
310304 }
311305}
312306
@@ -365,7 +359,7 @@ void OwncloudSetupPage::setErrorString(const QString &err, bool retryHTTPonly)
365359 switch (retVal) {
366360 case OwncloudConnectionMethodDialog::No_TLS: {
367361 url.setScheme (" http" );
368- _ui.leUrl ->setFullText (url.toString ());
362+ _ui.leUrl ->setText (url.toString ());
369363 // skip ahead to next page, since the user would expect us to retry automatically
370364 wizard ()->next ();
371365 } break ;
0 commit comments