Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UserStatusSelector: set focusPolicy on accept button #7906

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

nilsding
Copy link
Member

otherwise the status text won't be set on macOS as the text box never loses its focus

Qt.StrongFocus is the default focusPolicy on all platforms except for macOS, there it's Qt.TabFocus

the other buttons of the UserStatusSelector don't need that focusPolicy as they do not modify the model from values in the view

see also:

otherwise the status text won't be set on macOS as the text box never
loses its focus

`Qt.StrongFocus` is the default focusPolicy on all platforms except for
macOS, there it's `Qt.TabFocus`

the other buttons of the UserStatusSelector don't need that focusPolicy
as they do not modify the model from values in the view

see also:
- https://bugreports.qt.io/browse/QTBUG-110295
- https://codebrowser.dev/qt6/qtdeclarative/src/quicktemplates/qquickabstractbutton.cpp.html#_ZN27QQuickAbstractButtonPrivate4initEv

Signed-off-by: Jyrki Gadinger <[email protected]>
@nilsding nilsding added this to the 3.16.0 milestone Feb 21, 2025
@nilsding nilsding self-assigned this Feb 21, 2025
@nilsding
Copy link
Member Author

/backport to stable-3.16

Copy link

Artifact containing the AppImage: nextcloud-appimage-pr-7906.zip

SHA256 checksum: 5496f3f9c440bb1bd830bc8eabd3ae0b0d8dfdcc86a4881c24bb171d70abdc1e

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@mgallien mgallien enabled auto-merge February 21, 2025 09:56
@mgallien mgallien merged commit 0919bb9 into master Feb 21, 2025
14 of 16 checks passed
@mgallien mgallien deleted the bugfix/set-status-macos branch February 21, 2025 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants