Port KDE Frameworks away from deprecated methods in Qt
Open, Needs TriagePublic

dfaure created this task.Sep 9 2019, 9:04 PM
dfaure added a comment.Sep 9 2019, 9:07 PM

I'm doing this with the classes/methods deprecated in Qt 5.14.

ngraham added a subscriber: ngraham.Sep 9 2019, 9:58 PM

Done for now, until Qt deprecates more things :)

vkrause moved this task from Backlog to Waiting on Qt Changes on the KF6 board.Nov 25 2019, 9:48 PM
ervin moved this task from Waiting on Qt Changes to Backlog on the KF6 board.Mar 27 2021, 2:26 PM
ervin moved this task from Backlog to In Progress on the KF6 board.

Remains:
plasma-framework/src/declarativeimports/core/windowthumbnail.cpp: ‘QSGTexture* QQuickWindow::createTextureFromId(uint, const QSize&, QQuickWindow::CreateTextureOptions) const’ is deprecated: Use createTextureFromNativeObject() instead [-Wdeprecated-declarations]

KFileMetaData: https://phabricator.kde.org/T14337

baloo: deprecated QMap methods (I saw an MR or a task about that, but can't find it now :|)

There is some deprecated Qt API still used in KF repos that are going to be deprecated (kdelibs4support, kdewebkit, khtml, kjsembed, kross).

phonon still has some deprecated Qt API, it's not a framework, but it seems that kdesrc-build builds it when using kdesrc-build frameworks, so I'll see about porting it (unless it's not needed, and kdesrc-build needs to be updated :)).

Phonon is an optional dependency of knotifications and knotifyconfig (they use libcanberra by default IIUC).

(And KFileMetaData task is already a sub-task of this one...).

bruns added a subscriber: bruns.Apr 14 2021, 4:12 PM

baloo: deprecated QMap methods (I saw an MR or a task about that, but can't find it now :|)

Only where required for KFileMetadata compatibility, can't be changed before KF6

baloo: deprecated QMap methods (I saw an MR or a task about that, but can't find it now :|)

Only where required for KFileMetadata compatibility, can't be changed before KF6

Thanks for the clarification. So it's only KFileMetaData, which already has a task.

Phonon is an optional dependency of knotifications and knotifyconfig (they use libcanberra by default IIUC).

libcanberra is equally deprecated upstream [1] and had its last release in 2012. We should probably have a task for that as well to find a long-term replacement.

[1] https://gitlab.gnome.org/GNOME/Initiatives/-/issues/26

alex moved this task from In Progress to Done on the KF6 board.Mar 4 2023, 8:01 AM