Show URL placeholder hint in wizard
authorStephan Beyer <s-beyer@gmx.net>
Sat, 23 May 2020 16:12:58 +0000 (18:12 +0200)
committerStephan Beyer <s-beyer@gmx.net>
Sat, 23 May 2020 16:32:15 +0000 (18:32 +0200)
commitf46ce2ce985e10f9eddfa9ff990c3ac10e2bed6e
treef4062749f9bd82c35c3f8960badef495533dbf96
parentdeff3230f50f1bfec85089d6b193d5a8905e5479
Show URL placeholder hint in wizard

In owncloudsetupnocredspage.ui, the URL input field leUrl has a
placeholder text saying "https://..." which is a very useful hint
for the user.  However, in the OwncloudSetupPage constructor, the
placeholer text is overwritten by the return string of the theme's
wizardUrlHint() method.  The NextcloudTheme class does not override
this virtual method, so an empty string is used.

To make available the "https://..." hint, it is moved from the
UI file to NextcloudTheme::wizardUrlHint().  Note that, if a
theme is used which does not allow a custom server URL, the
placeholder text is now empty.  This makes sense because the
input field is disabled in that case.

Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
src/gui/wizard/owncloudsetupnocredspage.ui
src/libsync/nextcloudtheme.cpp
src/libsync/nextcloudtheme.h