qstatusnotifieritemadaptor.cpp

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

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9