Changeset View
Changeset View
Standalone View
Standalone View
src/pulseobject.cpp
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | 68 | if (!name.isEmpty() && QIcon::hasThemeIcon(name)) { | |||
---|---|---|---|---|---|
69 | return name; | 69 | return name; | ||
70 | } | 70 | } | ||
71 | 71 | | |||
72 | name = m_properties.value(QStringLiteral("application.process.binary")).toString(); | 72 | name = m_properties.value(QStringLiteral("application.process.binary")).toString(); | ||
73 | if (!name.isEmpty() && QIcon::hasThemeIcon(name)) { | 73 | if (!name.isEmpty() && QIcon::hasThemeIcon(name)) { | ||
74 | return name; | 74 | return name; | ||
75 | } | 75 | } | ||
76 | 76 | | |||
77 | name = m_properties.value(QStringLiteral("application.name")).toString(); | ||||
78 | if (!name.isEmpty() && QIcon::hasThemeIcon(name)) { | ||||
79 | return name; | ||||
80 | } | ||||
81 | | ||||
77 | name = property("name").toString(); | 82 | name = property("name").toString(); | ||
78 | if (!name.isEmpty() && QIcon::hasThemeIcon(name)) { | 83 | if (!name.isEmpty() && QIcon::hasThemeIcon(name)) { | ||
79 | return name; | 84 | return name; | ||
80 | } | 85 | } | ||
81 | 86 | | |||
82 | return QString(); | 87 | return QString(); | ||
83 | } | 88 | } | ||
84 | 89 | | |||
85 | QVariantMap PulseObject::properties() const | 90 | QVariantMap PulseObject::properties() const | ||
86 | { | 91 | { | ||
87 | return m_properties; | 92 | return m_properties; | ||
88 | } | 93 | } | ||
89 | 94 | | |||
90 | } // QPulseAudio | 95 | } // QPulseAudio |