Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/platformsupport/dbustray/qstatusnotifieritemadaptor.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | extern const QLoggingCategory &qLcMenu(); | - | ||||||
5 | extern const QLoggingCategory &qLcTray(); | - | ||||||
6 | - | |||||||
7 | QStatusNotifierItemAdaptor::QStatusNotifierItemAdaptor(QDBusTrayIcon *parent) | - | ||||||
8 | : QDBusAbstractAdaptor(parent), m_trayIcon(parent) | - | ||||||
9 | { | - | ||||||
10 | setAutoRelaySignals(true); | - | ||||||
11 | } never executed: end of block | 0 | ||||||
12 | - | |||||||
13 | QStatusNotifierItemAdaptor::~QStatusNotifierItemAdaptor() | - | ||||||
14 | { | - | ||||||
15 | } | - | ||||||
16 | - | |||||||
17 | QString QStatusNotifierItemAdaptor::attentionIconName() const | - | ||||||
18 | { | - | ||||||
19 | return never executed: m_trayIcon->attentionIconName();return m_trayIcon->attentionIconName(); never executed: return m_trayIcon->attentionIconName(); | 0 | ||||||
20 | } | - | ||||||
21 | - | |||||||
22 | QXdgDBusImageVector QStatusNotifierItemAdaptor::attentionIconPixmap() const | - | ||||||
23 | { | - | ||||||
24 | return never executed: iconToQXdgDBusImageVector(m_trayIcon->attentionIcon());return iconToQXdgDBusImageVector(m_trayIcon->attentionIcon()); never executed: return iconToQXdgDBusImageVector(m_trayIcon->attentionIcon()); | 0 | ||||||
25 | } | - | ||||||
26 | - | |||||||
27 | QString QStatusNotifierItemAdaptor::attentionMovieName() const | - | ||||||
28 | { | - | ||||||
29 | return never executed: QString();return QString(); never executed: return QString(); | 0 | ||||||
30 | } | - | ||||||
31 | - | |||||||
32 | QString QStatusNotifierItemAdaptor::category() const | - | ||||||
33 | { | - | ||||||
34 | return never executed: m_trayIcon->category();return m_trayIcon->category(); never executed: return m_trayIcon->category(); | 0 | ||||||
35 | } | - | ||||||
36 | - | |||||||
37 | QString QStatusNotifierItemAdaptor::iconName() const | - | ||||||
38 | { | - | ||||||
39 | return never executed: m_trayIcon->iconName();return m_trayIcon->iconName(); never executed: return m_trayIcon->iconName(); | 0 | ||||||
40 | } | - | ||||||
41 | - | |||||||
42 | QXdgDBusImageVector QStatusNotifierItemAdaptor::iconPixmap() const | - | ||||||
43 | { | - | ||||||
44 | return never executed: iconToQXdgDBusImageVector(m_trayIcon->icon());return iconToQXdgDBusImageVector(m_trayIcon->icon()); never executed: return iconToQXdgDBusImageVector(m_trayIcon->icon()); | 0 | ||||||
45 | } | - | ||||||
46 | - | |||||||
47 | QString QStatusNotifierItemAdaptor::id() const | - | ||||||
48 | { | - | ||||||
49 | - | |||||||
50 | - | |||||||
51 | return never executed: QCoreApplication::applicationName();return QCoreApplication::applicationName(); never executed: return QCoreApplication::applicationName(); | 0 | ||||||
52 | } | - | ||||||
53 | - | |||||||
54 | bool QStatusNotifierItemAdaptor::itemIsMenu() const | - | ||||||
55 | { | - | ||||||
56 | - | |||||||
57 | - | |||||||
58 | - | |||||||
59 | - | |||||||
60 | return never executed: false;return false; never executed: return false; | 0 | ||||||
61 | } | - | ||||||
62 | - | |||||||
63 | QDBusObjectPath QStatusNotifierItemAdaptor::menu() const | - | ||||||
64 | { | - | ||||||
65 | return never executed: QDBusObjectPath(m_trayIcon->menu() ? "/MenuBar" : "/NO_DBUSMENU");return QDBusObjectPath(m_trayIcon->menu() ? "/MenuBar" : "/NO_DBUSMENU"); never executed: return QDBusObjectPath(m_trayIcon->menu() ? "/MenuBar" : "/NO_DBUSMENU"); | 0 | ||||||
66 | } | - | ||||||
67 | - | |||||||
68 | QString QStatusNotifierItemAdaptor::overlayIconName() const | - | ||||||
69 | { | - | ||||||
70 | return never executed: QString();return QString(); never executed: return QString(); | 0 | ||||||
71 | } | - | ||||||
72 | - | |||||||
73 | QXdgDBusImageVector QStatusNotifierItemAdaptor::overlayIconPixmap() const | - | ||||||
74 | { | - | ||||||
75 | QXdgDBusImageVector ret; | - | ||||||
76 | return never executed: ret;return ret; never executed: return ret; | 0 | ||||||
77 | } | - | ||||||
78 | - | |||||||
79 | QString QStatusNotifierItemAdaptor::status() const | - | ||||||
80 | { | - | ||||||
81 | return never executed: m_trayIcon->status();return m_trayIcon->status(); never executed: return m_trayIcon->status(); | 0 | ||||||
82 | } | - | ||||||
83 | - | |||||||
84 | QString QStatusNotifierItemAdaptor::title() const | - | ||||||
85 | { | - | ||||||
86 | - | |||||||
87 | - | |||||||
88 | - | |||||||
89 | return never executed: QCoreApplication::applicationName();return QCoreApplication::applicationName(); never executed: return QCoreApplication::applicationName(); | 0 | ||||||
90 | } | - | ||||||
91 | - | |||||||
92 | QXdgDBusToolTipStruct QStatusNotifierItemAdaptor::toolTip() const | - | ||||||
93 | { | - | ||||||
94 | QXdgDBusToolTipStruct ret; | - | ||||||
95 | if (m_trayIcon->isRequestingAttention()
| 0 | ||||||
96 | ret.title = m_trayIcon->attentionTitle(); | - | ||||||
97 | ret.subTitle = m_trayIcon->attentionMessage(); | - | ||||||
98 | ret.icon = m_trayIcon->attentionIconName(); | - | ||||||
99 | } never executed: else {end of block | 0 | ||||||
100 | ret.title = m_trayIcon->tooltip(); | - | ||||||
101 | } never executed: end of block | 0 | ||||||
102 | return never executed: ret;return ret; never executed: return ret; | 0 | ||||||
103 | } | - | ||||||
104 | - | |||||||
105 | void QStatusNotifierItemAdaptor::Activate(int x, int y) | - | ||||||
106 | { | - | ||||||
107 | for (bool qt_category_enabled = qLcTray().isDebugEnabled(); qt_category_enabled
never executed: QMessageLogger(__FILE__, 161, __PRETTY_FUNCTION__, qLcTray().categoryName()).debug() << x << y; | 0 | ||||||
108 | m_trayIcon->activated(QPlatformSystemTrayIcon::Trigger); | - | ||||||
109 | } never executed: end of block | 0 | ||||||
110 | - | |||||||
111 | void QStatusNotifierItemAdaptor::ContextMenu(int x, int y) | - | ||||||
112 | { | - | ||||||
113 | for (bool qt_category_enabled = qLcTray().isDebugEnabled(); qt_category_enabled
never executed: QMessageLogger(__FILE__, 167, __PRETTY_FUNCTION__, qLcTray().categoryName()).debug() << x << y; | 0 | ||||||
114 | m_trayIcon->activated(QPlatformSystemTrayIcon::Context); | - | ||||||
115 | } never executed: end of block | 0 | ||||||
116 | - | |||||||
117 | void QStatusNotifierItemAdaptor::Scroll(int w, const QString &s) | - | ||||||
118 | { | - | ||||||
119 | for (bool qt_category_enabled = qLcTray().isDebugEnabled(); qt_category_enabled
never executed: QMessageLogger(__FILE__, 173, __PRETTY_FUNCTION__, qLcTray().categoryName()).debug() << w << s; | 0 | ||||||
120 | - | |||||||
121 | } never executed: end of block | 0 | ||||||
122 | - | |||||||
123 | void QStatusNotifierItemAdaptor::SecondaryActivate(int x, int y) | - | ||||||
124 | { | - | ||||||
125 | for (bool qt_category_enabled = qLcTray().isDebugEnabled(); qt_category_enabled
never executed: QMessageLogger(__FILE__, 179, __PRETTY_FUNCTION__, qLcTray().categoryName()).debug() << x << y; | 0 | ||||||
126 | m_trayIcon->activated(QPlatformSystemTrayIcon::MiddleClick); | - | ||||||
127 | } never executed: end of block | 0 | ||||||
128 | - | |||||||
129 | - | |||||||
Switch to Source code | Preprocessed file |