Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/platformsupport/dbustray/qdbustrayicon.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | - | |||||||
5 | - | |||||||
6 | - | |||||||
7 | - | |||||||
8 | const QLoggingCategory &qLcTray() { static const QLoggingCategory category("qt.qpa.tray"); return executed 1 time by 1 test: category;return category; Executed by:
executed 1 time by 1 test: }return category; Executed by:
| 1 | ||||||
9 | - | |||||||
10 | static const QString KDEItemFormat = ([]() -> QString { enum { Size = sizeof(u"" "org.kde.StatusNotifierItem-%1-%2")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "org.kde.StatusNotifierItem-%1-%2" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | - | ||||||
11 | static const QString KDEWatcherService = ([]() -> QString { enum { Size = sizeof(u"" "org.kde.StatusNotifierWatcher")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "org.kde.StatusNotifierWatcher" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | - | ||||||
12 | static const QString TempFileTemplate = QDir::tempPath() + ([]() -> QString { enum { Size = sizeof(u"" "/qt-trayicon-XXXXXX.png")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "/qt-trayicon-XXXXXX.png" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | - | ||||||
13 | static const QString XdgNotificationService = ([]() -> QString { enum { Size = sizeof(u"" "org.freedesktop.Notifications")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "org.freedesktop.Notifications" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | - | ||||||
14 | static const QString XdgNotificationPath = ([]() -> QString { enum { Size = sizeof(u"" "/org/freedesktop/Notifications")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "/org/freedesktop/Notifications" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | - | ||||||
15 | static const QString DefaultAction = ([]() -> QString { enum { Size = sizeof(u"" "default")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "default" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | - | ||||||
16 | static int instanceCount = 0; | - | ||||||
17 | - | |||||||
18 | - | |||||||
19 | - | |||||||
20 | - | |||||||
21 | - | |||||||
22 | - | |||||||
23 | QDBusTrayIcon::QDBusTrayIcon() | - | ||||||
24 | : m_dbusConnection(nullptr) | - | ||||||
25 | , m_adaptor(new QStatusNotifierItemAdaptor(this)) | - | ||||||
26 | , m_menuAdaptor(nullptr) | - | ||||||
27 | , m_menu(nullptr) | - | ||||||
28 | , m_notifier(nullptr) | - | ||||||
29 | , m_instanceId(KDEItemFormat.arg(QCoreApplication::applicationPid()).arg(++instanceCount)) | - | ||||||
30 | , m_category(([]() -> QString { enum { Size = sizeof(u"" "ApplicationStatus")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "ApplicationStatus" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) | - | ||||||
31 | , m_defaultStatus(([]() -> QString { enum { Size = sizeof(u"" "Active")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Active" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) | - | ||||||
32 | , m_status(m_defaultStatus) | - | ||||||
33 | , m_tempIcon(nullptr) | - | ||||||
34 | , m_tempAttentionIcon(nullptr) | - | ||||||
35 | , m_registered(false) | - | ||||||
36 | { | - | ||||||
37 | for (bool qt_category_enabled = qLcTray().isDebugEnabled(); qt_category_enabled
never executed: QMessageLogger(__FILE__, 88, __PRETTY_FUNCTION__, qLcTray().categoryName()).debug(); | 0 | ||||||
38 | if (instanceCount == 1
| 0 | ||||||
39 | QDBusMenuItem::registerDBusTypes(); | - | ||||||
40 | qDBusRegisterMetaType<QXdgDBusImageStruct>(); | - | ||||||
41 | qDBusRegisterMetaType<QXdgDBusImageVector>(); | - | ||||||
42 | qDBusRegisterMetaType<QXdgDBusToolTipStruct>(); | - | ||||||
43 | } never executed: end of block | 0 | ||||||
44 | connect(this, qFlagLocation("2""statusChanged(QString)" "\0" __FILE__ ":" "95"), m_adaptor, qFlagLocation("2""NewStatus(QString)" "\0" __FILE__ ":" "95")); | - | ||||||
45 | connect(this, qFlagLocation("2""tooltipChanged()" "\0" __FILE__ ":" "96"), m_adaptor, qFlagLocation("2""NewToolTip()" "\0" __FILE__ ":" "96")); | - | ||||||
46 | connect(this, qFlagLocation("2""iconChanged()" "\0" __FILE__ ":" "97"), m_adaptor, qFlagLocation("2""NewIcon()" "\0" __FILE__ ":" "97")); | - | ||||||
47 | connect(this, qFlagLocation("2""attention()" "\0" __FILE__ ":" "98"), m_adaptor, qFlagLocation("2""NewAttentionIcon()" "\0" __FILE__ ":" "98")); | - | ||||||
48 | connect(this, qFlagLocation("2""attention()" "\0" __FILE__ ":" "99"), m_adaptor, qFlagLocation("2""NewTitle()" "\0" __FILE__ ":" "99")); | - | ||||||
49 | connect(&m_attentionTimer, qFlagLocation("2""timeout()" "\0" __FILE__ ":" "100"), this, qFlagLocation("1""attentionTimerExpired()" "\0" __FILE__ ":" "100")); | - | ||||||
50 | m_attentionTimer.setSingleShot(true); | - | ||||||
51 | } never executed: end of block | 0 | ||||||
52 | - | |||||||
53 | QDBusTrayIcon::~QDBusTrayIcon() | - | ||||||
54 | { | - | ||||||
55 | } | - | ||||||
56 | - | |||||||
57 | void QDBusTrayIcon::init() | - | ||||||
58 | { | - | ||||||
59 | for (bool qt_category_enabled = qLcTray().isDebugEnabled(); qt_category_enabled
never executed: QMessageLogger(__FILE__, 110, __PRETTY_FUNCTION__, qLcTray().categoryName()).debug() << "registering" << m_instanceId; | 0 | ||||||
60 | m_registered = dBusConnection()->registerTrayIcon(this); | - | ||||||
61 | } never executed: end of block | 0 | ||||||
62 | - | |||||||
63 | void QDBusTrayIcon::cleanup() | - | ||||||
64 | { | - | ||||||
65 | for (bool qt_category_enabled = qLcTray().isDebugEnabled(); qt_category_enabled
never executed: QMessageLogger(__FILE__, 116, __PRETTY_FUNCTION__, qLcTray().categoryName()).debug() << "unregistering" << m_instanceId; | 0 | ||||||
66 | if (m_registered
| 0 | ||||||
67 | dBusConnection()->unregisterTrayIcon(this); never executed: dBusConnection()->unregisterTrayIcon(this); | 0 | ||||||
68 | delete m_dbusConnection; | - | ||||||
69 | m_dbusConnection = nullptr; | - | ||||||
70 | delete m_notifier; | - | ||||||
71 | m_notifier = nullptr; | - | ||||||
72 | m_registered = false; | - | ||||||
73 | } never executed: end of block | 0 | ||||||
74 | - | |||||||
75 | void QDBusTrayIcon::attentionTimerExpired() | - | ||||||
76 | { | - | ||||||
77 | m_messageTitle = QString(); | - | ||||||
78 | m_message = QString(); | - | ||||||
79 | m_attentionIcon = QIcon(); | - | ||||||
80 | attention(); | - | ||||||
81 | tooltipChanged(); | - | ||||||
82 | setStatus(m_defaultStatus); | - | ||||||
83 | } never executed: end of block | 0 | ||||||
84 | - | |||||||
85 | void QDBusTrayIcon::setStatus(const QString &status) | - | ||||||
86 | { | - | ||||||
87 | for (bool qt_category_enabled = qLcTray().isDebugEnabled(); qt_category_enabled
never executed: QMessageLogger(__FILE__, 138, __PRETTY_FUNCTION__, qLcTray().categoryName()).debug() << status; | 0 | ||||||
88 | if (m_status == status
| 0 | ||||||
89 | return; never executed: return; | 0 | ||||||
90 | m_status = status; | - | ||||||
91 | statusChanged(m_status); | - | ||||||
92 | } never executed: end of block | 0 | ||||||
93 | - | |||||||
94 | QTemporaryFile *QDBusTrayIcon::tempIcon(const QIcon &icon) | - | ||||||
95 | { | - | ||||||
96 | - | |||||||
97 | - | |||||||
98 | static bool necessity_checked = false; | - | ||||||
99 | static bool necessary = false; | - | ||||||
100 | if (!necessity_checked
| 0 | ||||||
101 | QDBusConnection session = QDBusConnection::sessionBus(); | - | ||||||
102 | uint pid = session.interface()->servicePid(KDEWatcherService).value(); | - | ||||||
103 | QString processName = QLockFilePrivate::processNameByPid(pid); | - | ||||||
104 | necessary = processName.endsWith(([]() -> QString { enum { Size = sizeof(u"" "indicator-application-service")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "indicator-application-service" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return never executed: qstring_literal_temp;return qstring_literal_temp; never executed: }()));return qstring_literal_temp; | 0 | ||||||
105 | necessity_checked = true; | - | ||||||
106 | } never executed: end of block | 0 | ||||||
107 | if (!necessary
| 0 | ||||||
108 | return never executed: nullptr;return nullptr; never executed: return nullptr; | 0 | ||||||
109 | QTemporaryFile *ret = new QTemporaryFile(TempFileTemplate, this); | - | ||||||
110 | ret->open(); | - | ||||||
111 | icon.pixmap(QSize(22, 22)).save(ret); | - | ||||||
112 | ret->close(); | - | ||||||
113 | return never executed: ret;return ret; never executed: return ret; | 0 | ||||||
114 | } | - | ||||||
115 | - | |||||||
116 | QDBusMenuConnection * QDBusTrayIcon::dBusConnection() | - | ||||||
117 | { | - | ||||||
118 | if (!m_dbusConnection
| 0 | ||||||
119 | m_dbusConnection = new QDBusMenuConnection(this, m_instanceId); | - | ||||||
120 | m_notifier = new QXdgNotificationInterface(XdgNotificationService, | - | ||||||
121 | XdgNotificationPath, m_dbusConnection->connection(), this); | - | ||||||
122 | connect(m_notifier, qFlagLocation("2""NotificationClosed(uint,uint)" "\0" __FILE__ ":" "173"), this, qFlagLocation("1""notificationClosed(uint,uint)" "\0" __FILE__ ":" "173")); | - | ||||||
123 | connect(m_notifier, qFlagLocation("2""ActionInvoked(uint,QString)" "\0" __FILE__ ":" "174"), this, qFlagLocation("1""actionInvoked(uint,QString)" "\0" __FILE__ ":" "174")); | - | ||||||
124 | } never executed: end of block | 0 | ||||||
125 | return never executed: m_dbusConnection;return m_dbusConnection; never executed: return m_dbusConnection; | 0 | ||||||
126 | } | - | ||||||
127 | - | |||||||
128 | void QDBusTrayIcon::updateIcon(const QIcon &icon) | - | ||||||
129 | { | - | ||||||
130 | m_iconName = icon.name(); | - | ||||||
131 | m_icon = icon; | - | ||||||
132 | if (m_iconName.isEmpty()
| 0 | ||||||
133 | if (m_tempIcon
| 0 | ||||||
134 | delete m_tempIcon; never executed: delete m_tempIcon; | 0 | ||||||
135 | m_tempIcon = tempIcon(icon); | - | ||||||
136 | if (m_tempIcon
| 0 | ||||||
137 | m_iconName = m_tempIcon->fileName(); never executed: m_iconName = m_tempIcon->fileName(); | 0 | ||||||
138 | } never executed: end of block | 0 | ||||||
139 | for (bool qt_category_enabled = qLcTray().isDebugEnabled(); qt_category_enabled
never executed: QMessageLogger(__FILE__, 190, __PRETTY_FUNCTION__, qLcTray().categoryName()).debug() << m_iconName << icon.availableSizes(); | 0 | ||||||
140 | iconChanged(); | - | ||||||
141 | } never executed: end of block | 0 | ||||||
142 | - | |||||||
143 | void QDBusTrayIcon::updateToolTip(const QString &tooltip) | - | ||||||
144 | { | - | ||||||
145 | for (bool qt_category_enabled = qLcTray().isDebugEnabled(); qt_category_enabled
never executed: QMessageLogger(__FILE__, 196, __PRETTY_FUNCTION__, qLcTray().categoryName()).debug() << tooltip; | 0 | ||||||
146 | m_tooltip = tooltip; | - | ||||||
147 | tooltipChanged(); | - | ||||||
148 | } never executed: end of block | 0 | ||||||
149 | - | |||||||
150 | QPlatformMenu *QDBusTrayIcon::createMenu() const | - | ||||||
151 | { | - | ||||||
152 | return never executed: new QDBusPlatformMenu();return new QDBusPlatformMenu(); never executed: return new QDBusPlatformMenu(); | 0 | ||||||
153 | } | - | ||||||
154 | - | |||||||
155 | void QDBusTrayIcon::updateMenu(QPlatformMenu * menu) | - | ||||||
156 | { | - | ||||||
157 | for (bool qt_category_enabled = qLcTray().isDebugEnabled(); qt_category_enabled
never executed: QMessageLogger(__FILE__, 208, __PRETTY_FUNCTION__, qLcTray().categoryName()).debug() << menu; | 0 | ||||||
158 | QDBusPlatformMenu *newMenu = qobject_cast<QDBusPlatformMenu *>(menu); | - | ||||||
159 | if (m_menu != newMenu
| 0 | ||||||
160 | if (m_menu
| 0 | ||||||
161 | dBusConnection()->unregisterTrayIconMenu(this); | - | ||||||
162 | delete m_menuAdaptor; | - | ||||||
163 | } never executed: end of block | 0 | ||||||
164 | m_menu = newMenu; | - | ||||||
165 | m_menuAdaptor = new QDBusMenuAdaptor(m_menu); | - | ||||||
166 | - | |||||||
167 | connect(m_menu, qFlagLocation("2""propertiesUpdated(QDBusMenuItemList,QDBusMenuItemKeysList)" "\0" __FILE__ ":" "218"), | - | ||||||
168 | m_menuAdaptor, qFlagLocation("2""ItemsPropertiesUpdated(QDBusMenuItemList,QDBusMenuItemKeysList)" "\0" __FILE__ ":" "219")); | - | ||||||
169 | connect(m_menu, qFlagLocation("2""updated(uint,int)" "\0" __FILE__ ":" "220"), | - | ||||||
170 | m_menuAdaptor, qFlagLocation("2""LayoutUpdated(uint,int)" "\0" __FILE__ ":" "221")); | - | ||||||
171 | dBusConnection()->registerTrayIconMenu(this); | - | ||||||
172 | } never executed: end of block | 0 | ||||||
173 | } never executed: end of block | 0 | ||||||
174 | - | |||||||
175 | void QDBusTrayIcon::showMessage(const QString &title, const QString &msg, const QIcon &icon, | - | ||||||
176 | QPlatformSystemTrayIcon::MessageIcon iconType, int msecs) | - | ||||||
177 | { | - | ||||||
178 | m_messageTitle = title; | - | ||||||
179 | m_message = msg; | - | ||||||
180 | m_attentionIcon = icon; | - | ||||||
181 | QStringList notificationActions; | - | ||||||
182 | switch (iconType) { | - | ||||||
183 | case never executed: Information:case Information: never executed: case Information: | 0 | ||||||
184 | m_attentionIconName = ([]() -> QString { enum { Size = sizeof(u"" "dialog-information")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "dialog-information" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return never executed: qstring_literal_temp;return qstring_literal_temp; never executed: }());return qstring_literal_temp; | 0 | ||||||
185 | break; never executed: break; | 0 | ||||||
186 | case never executed: Warning:case Warning: never executed: case Warning: | 0 | ||||||
187 | m_attentionIconName = ([]() -> QString { enum { Size = sizeof(u"" "dialog-warning")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "dialog-warning" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return never executed: qstring_literal_temp;return qstring_literal_temp; never executed: }());return qstring_literal_temp; | 0 | ||||||
188 | break; never executed: break; | 0 | ||||||
189 | case never executed: Critical:case Critical: never executed: case Critical: | 0 | ||||||
190 | m_attentionIconName = ([]() -> QString { enum { Size = sizeof(u"" "dialog-error")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "dialog-error" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return never executed: qstring_literal_temp;return qstring_literal_temp; never executed: }());return qstring_literal_temp; | 0 | ||||||
191 | - | |||||||
192 | - | |||||||
193 | - | |||||||
194 | notificationActions << DefaultAction << tr("OK"); | - | ||||||
195 | break; never executed: break; | 0 | ||||||
196 | default never executed: :default: never executed: default: | 0 | ||||||
197 | m_attentionIconName.clear(); | - | ||||||
198 | break; never executed: break; | 0 | ||||||
199 | } | - | ||||||
200 | if (m_attentionIconName.isEmpty()
| 0 | ||||||
201 | if (m_tempAttentionIcon
| 0 | ||||||
202 | delete m_tempAttentionIcon; never executed: delete m_tempAttentionIcon; | 0 | ||||||
203 | m_tempAttentionIcon = tempIcon(icon); | - | ||||||
204 | if (m_tempAttentionIcon
| 0 | ||||||
205 | m_attentionIconName = m_tempAttentionIcon->fileName(); never executed: m_attentionIconName = m_tempAttentionIcon->fileName(); | 0 | ||||||
206 | } never executed: end of block | 0 | ||||||
207 | for (bool qt_category_enabled = qLcTray().isDebugEnabled(); qt_category_enabled
never executed: QMessageLogger(__FILE__, 258, __PRETTY_FUNCTION__, qLcTray().categoryName()).debug() << title << msg << QPlatformSystemTrayIcon::metaObject()->enumerator( QPlatformSystemTrayIcon::staticMetaObject.indexOfEnumerator("MessageIcon")).valueToKey(iconType) << m_attentionIconName << msecs; | 0 | ||||||
208 | QPlatformSystemTrayIcon::metaObject()->enumerator( never executed: QMessageLogger(__FILE__, 258, __PRETTY_FUNCTION__, qLcTray().categoryName()).debug() << title << msg << QPlatformSystemTrayIcon::metaObject()->enumerator( QPlatformSystemTrayIcon::staticMetaObject.indexOfEnumerator("MessageIcon")).valueToKey(iconType) << m_attentionIconName << msecs; | 0 | ||||||
209 | QPlatformSystemTrayIcon::staticMetaObject.indexOfEnumerator("MessageIcon")).valueToKey(iconType) never executed: QMessageLogger(__FILE__, 258, __PRETTY_FUNCTION__, qLcTray().categoryName()).debug() << title << msg << QPlatformSystemTrayIcon::metaObject()->enumerator( QPlatformSystemTrayIcon::staticMetaObject.indexOfEnumerator("MessageIcon")).valueToKey(iconType) << m_attentionIconName << msecs; | 0 | ||||||
210 | << m_attentionIconName << msecs; never executed: QMessageLogger(__FILE__, 258, __PRETTY_FUNCTION__, qLcTray().categoryName()).debug() << title << msg << QPlatformSystemTrayIcon::metaObject()->enumerator( QPlatformSystemTrayIcon::staticMetaObject.indexOfEnumerator("MessageIcon")).valueToKey(iconType) << m_attentionIconName << msecs; | 0 | ||||||
211 | setStatus(([]() -> QString { enum { Size = sizeof(u"" "NeedsAttention")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "NeedsAttention" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return never executed: qstring_literal_temp;return qstring_literal_temp; never executed: }()));return qstring_literal_temp; | 0 | ||||||
212 | m_attentionTimer.start(msecs); | - | ||||||
213 | tooltipChanged(); | - | ||||||
214 | attention(); | - | ||||||
215 | - | |||||||
216 | - | |||||||
217 | QVariantMap hints; | - | ||||||
218 | - | |||||||
219 | - | |||||||
220 | int urgency = static_cast<int>(iconType) - 1; | - | ||||||
221 | if (urgency < 0
| 0 | ||||||
222 | urgency = 0; never executed: urgency = 0; | 0 | ||||||
223 | hints.insert(QLatin1String("urgency"), QVariant(urgency)); | - | ||||||
224 | m_notifier->notify(QCoreApplication::applicationName(), 0, | - | ||||||
225 | m_attentionIconName, title, msg, notificationActions, hints, msecs); | - | ||||||
226 | } never executed: end of block | 0 | ||||||
227 | - | |||||||
228 | void QDBusTrayIcon::actionInvoked(uint id, const QString &action) | - | ||||||
229 | { | - | ||||||
230 | for (bool qt_category_enabled = qLcTray().isDebugEnabled(); qt_category_enabled
never executed: QMessageLogger(__FILE__, 281, __PRETTY_FUNCTION__, qLcTray().categoryName()).debug() << id << action; | 0 | ||||||
231 | messageClicked(); | - | ||||||
232 | } never executed: end of block | 0 | ||||||
233 | - | |||||||
234 | void QDBusTrayIcon::notificationClosed(uint id, uint reason) | - | ||||||
235 | { | - | ||||||
236 | for (bool qt_category_enabled = qLcTray().isDebugEnabled(); qt_category_enabled
never executed: QMessageLogger(__FILE__, 287, __PRETTY_FUNCTION__, qLcTray().categoryName()).debug() << id << reason; | 0 | ||||||
237 | } never executed: end of block | 0 | ||||||
238 | - | |||||||
239 | bool QDBusTrayIcon::isSystemTrayAvailable() const | - | ||||||
240 | { | - | ||||||
241 | QDBusMenuConnection * conn = const_cast<QDBusTrayIcon *>(this)->dBusConnection(); | - | ||||||
242 | for (bool qt_category_enabled = qLcTray().isDebugEnabled(); qt_category_enabled
never executed: QMessageLogger(__FILE__, 293, __PRETTY_FUNCTION__, qLcTray().categoryName()).debug() << conn->isStatusNotifierHostRegistered(); | 0 | ||||||
243 | return never executed: conn->isStatusNotifierHostRegistered();return conn->isStatusNotifierHostRegistered(); never executed: return conn->isStatusNotifierHostRegistered(); | 0 | ||||||
244 | } | - | ||||||
245 | - | |||||||
246 | - | |||||||
Switch to Source code | Preprocessed file |