mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
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>
This commit is contained in:
parent
deff3230f5
commit
f46ce2ce98
@ -207,7 +207,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="placeholderText">
|
||||
<string notr="true">https://...</string>
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@ -33,4 +33,9 @@ NextcloudTheme::NextcloudTheme()
|
||||
{
|
||||
}
|
||||
|
||||
QString NextcloudTheme::wizardUrlHint() const
|
||||
{
|
||||
return QString("https://...");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -29,6 +29,7 @@ class NextcloudTheme : public Theme
|
||||
public:
|
||||
NextcloudTheme();
|
||||
|
||||
QString wizardUrlHint() const override;
|
||||
};
|
||||
}
|
||||
#endif // NEXTCLOUD_THEME_H
|
||||
|
||||
Loading…
Reference in New Issue
Block a user