Page MenuHome GnuPG

Kleopatra: Port away from KIconLoader
Closed, ResolvedPublic

Description

We are trying to phase out/deprecate most of the API in KIconThemes in favor of QIcon API.

Kleopatra is one of the few remaining applications that still uses KIconLoader to load icons in a few places. Please port to QIcon::fromTheme() and let us know about any blockers you encounter

Event Timeline

Is the QIcon API available in QT5 ? If not we can't phase that out.

Yes, we can phase it out in master which is what Nico is talking about and which uses Qt 6/KF6. Nobody is going to remove KIconLoader from KF5.

ikloecker claimed this task.

The last two usages of KIconLoader have been remove in kleopatra master. (libkleo was already good.)

The only "remaining usage" is the usage of the enum values KIconLoader::Desktop and KIconLoader::Application in combination with KIconDialog::getIcon(). I guess this will stay.