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

Implicitly defined onFoo properties in Connections are deprecated. #346

Open
C0rn3j opened this issue May 10, 2023 · 2 comments · May be fixed by #349
Open

Implicitly defined onFoo properties in Connections are deprecated. #346

C0rn3j opened this issue May 10, 2023 · 2 comments · May be fixed by #349

Comments

@C0rn3j
Copy link

C0rn3j commented May 10, 2023

file:///usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/AgendaEventItem.qml:26:2: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }

This applet spams this in the logs.

https://github.com/Zren/plasma-applet-eventcalendar/blob/master/package/contents/ui/AgendaEventItem.qml#L26

@Ramen-LadyHKG
Copy link

same, I installed in the AUR.

but it happens in fedora plasma widget store version as well

@Zren
Copy link
Owner

Zren commented Aug 22, 2023

I need to check if Qt 5.12 is still used in any of the common distros atm.

https://zren.github.io/2020/06/19/qml-connections-onfoo-warnings-will-get-logging-category-in-qt-5151

So why can’t we just implement the new function onFoo() {} format in Connections? Well it is not supported in Qt 5.12.
Distros using Qt 5.12 are (as of 2020):

Hmmm, looks like we're good.

  • Ubuntu 20.04 LTS: Qt 5.12.8
  • Ubuntu 22.04 LTS: Qt 5.15.3
  • Ubuntu 22.10: Qt 5.15.6
  • Ubuntu 23.04: Qt 5.15.8
  • openSUSE Leap 15.1 (2019-05): Qt 5.9.7
  • openSUSE Leap 15.2 (2020-07): Qt 5.12.7
  • openSUSE Leap 15.3 (2021-06): Qt 5.12.7
  • openSUSE Leap 15.4 (2022-06): Qt 5.15.2
  • openSUSE Leap 15.5 (2023-07): Qt 5.15.8
  • Debian 10 (2019-07): Qt 5.11.3
  • Debian 11 (2021-08): Qt 5.15.2
  • Debian 12 (2023-06): Qt 5.15.8
  • Debian 13 testing/unstable: Qt 5.15.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants