owncloud / client

🖥️ Desktop Syncing Client for ownCloud
GNU General Public License v2.0
1.4k stars 663 forks source link

[QA] 3.0.0 wizard: server URL hint only shown if focus outside #9810

Closed gabi18 closed 2 years ago

gabi18 commented 2 years ago

Pre-submission Checks

Describe the bug

The server URL configured with branding option wizardUrlHint is not shown if the focus is on the input field. It's only visible if the focus is outside.

Expected behavior

The hint should also be visible when focus is inside the input field.

Steps to reproduce the issue

  1. set QString wizardUrlHint() const { return QStringLiteral("https://demo.owncloud.org"); } in btrtesting-theme.h
  2. compile
  3. start client and add an account
  4. check server URL input field

Screenshots

Focus inside server URL input field:

no-server-hint

Focus outside:

server-URL-hint

Logs

No response

Client version number

btr-client 3.0.0 git master (21 June 2022)

Desktop environment (Linux only)

openSUSE 15.3

Client package version and origin (Linux only)

No response

Installation path (Windows only)

No response

Server information

No response

Additional context

No response

gabi18 commented 2 years ago

Note: the option wizardUrlPostfix works like expected.

server-postfix

gabi18 commented 2 years ago

Same problem seen on Windows 11 21H2 with testpilotcloud-3.0.0-daily20220622.7850.x64.msi, the URL hint is only shown if the focus is outside the server address field.

TheOneRing commented 2 years ago

Probably an issue with the style sheet

TheOneRing commented 2 years ago

Was disabled in Qt 9 years ago for centered text. https://github.com/qt/qtbase/blame/v5.15.3-lts-lgpl/src/widgets/widgets/qlineedit_p.h#L192