Commit 3a8ef4cf authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[KEditFileType] Show application icon in preference list

Makes the list a lot easier to grasp at a glance

Differential Revision: https://phabricator.kde.org/D14204
parent d95c4efc
......@@ -46,6 +46,8 @@ KServiceListItem::KServiceListItem( const KService::Ptr& pService, int kind )
else
setText( i18n( "%1 (%2)", pService->name(), pService->desktopEntryName() ) );
setIcon( QIcon::fromTheme( pService->icon() ) );
if (!pService->isApplication())
localPath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QStringLiteral("/kservices5/") + desktopPath;
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment