Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Maintenance:3714
plasma5-desktop.openSUSE_13.2_Update
0010-Add-icon-fallback-to-the-Recent-Apps-model...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0010-Add-icon-fallback-to-the-Recent-Apps-model.patch of Package plasma5-desktop.openSUSE_13.2_Update
From 38d5caa8931bc3afd64540ba7695b016fb6c1dae Mon Sep 17 00:00:00 2001 From: Eike Hein <hein@kde.org> Date: Thu, 2 Apr 2015 19:00:41 +0200 Subject: [PATCH 10/11] Add icon fallback to the Recent Apps model. --- applets/kicker/plugin/recentappsmodel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/applets/kicker/plugin/recentappsmodel.cpp b/applets/kicker/plugin/recentappsmodel.cpp index 3c64114b674d43d9bf11882a9d68ff9e464d916c..9917cdb6ceba972ae10e2b6aa28101731aba4e2e 100644 --- a/applets/kicker/plugin/recentappsmodel.cpp +++ b/applets/kicker/plugin/recentappsmodel.cpp @@ -26,6 +26,8 @@ #include <QX11Info> #endif +#include <QIcon> + #include <KLocalizedString> #include <KRun> #include <KService> @@ -55,7 +57,7 @@ QVariant RecentAppsModel::data(const QModelIndex &index, int role) const if (role == Qt::DisplayRole) { return service->name(); } else if (role == Qt::DecorationRole) { - return service->icon().isEmpty() ? QLatin1String("unknown") : service->icon(); + return QIcon::fromTheme(service->icon(), QIcon::fromTheme("unknown")); } else if (role == Kicker::FavoriteIdRole) { return QVariant("app:" + storageId); } else if (role == Kicker::HasActionListRole) { -- 2.3.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor