Changeset View
Changeset View
Standalone View
Standalone View
src/client.cpp
Show All 35 Lines | |||||
36 | 36 | | |||
37 | void Client::update(const pa_client_info *info) | 37 | void Client::update(const pa_client_info *info) | ||
38 | { | 38 | { | ||
39 | updatePulseObject(info); | 39 | updatePulseObject(info); | ||
40 | 40 | | |||
41 | QString infoName = QString::fromUtf8(info->name); | 41 | QString infoName = QString::fromUtf8(info->name); | ||
42 | if (m_name != infoName) { | 42 | if (m_name != infoName) { | ||
43 | m_name = infoName; | 43 | m_name = infoName; | ||
44 | emit nameChanged(); | 44 | Q_EMIT nameChanged(); | ||
45 | } | 45 | } | ||
46 | } | 46 | } | ||
47 | 47 | | |||
48 | QString Client::name() const | 48 | QString Client::name() const | ||
49 | { | 49 | { | ||
50 | return m_name; | 50 | return m_name; | ||
51 | } | 51 | } | ||
52 | 52 | | |||
53 | } // QPulseAudio | 53 | } // QPulseAudio |