qxcbconnection.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/plugins/platforms/xcb/qxcbconnection.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2015 The Qt Company Ltd.-
4** Contact: http://www.qt.io/licensing/-
5**-
6** This file is part of the plugins of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL21$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see http://www.qt.io/terms-conditions. For further-
15** information use the contact form at http://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 2.1 or version 3 as published by the Free-
20** Software Foundation and appearing in the file LICENSE.LGPLv21 and-
21** LICENSE.LGPLv3 included in the packaging of this file. Please review the-
22** following information to ensure the GNU Lesser General Public License-
23** requirements will be met: https://www.gnu.org/licenses/lgpl.html and-
24** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.-
25**-
26** As a special exception, The Qt Company gives you certain additional-
27** rights. These rights are described in The Qt Company LGPL Exception-
28** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.-
29**-
30** $QT_END_LICENSE$-
31**-
32****************************************************************************/-
33-
34#include <QtGui/private/qguiapplication_p.h>-
35#include <QtGui/private/qhighdpiscaling_p.h>-
36#include <QtCore/QDebug>-
37-
38#include "qxcbconnection.h"-
39#include "qxcbkeyboard.h"-
40#include "qxcbscreen.h"-
41#include "qxcbwindow.h"-
42#include "qxcbclipboard.h"-
43#include "qxcbdrag.h"-
44#include "qxcbwmsupport.h"-
45#include "qxcbnativeinterface.h"-
46#include "qxcbintegration.h"-
47#include "qxcbsystemtraytracker.h"-
48#include "qxcbglintegrationfactory.h"-
49#include "qxcbglintegration.h"-
50-
51#include <QSocketNotifier>-
52#include <QAbstractEventDispatcher>-
53#include <QTimer>-
54#include <QByteArray>-
55#include <QScopedPointer>-
56-
57#include <algorithm>-
58-
59#include <stdio.h>-
60#include <errno.h>-
61#include <xcb/shm.h>-
62#include <xcb/sync.h>-
63#include <xcb/xfixes.h>-
64#include <xcb/xinerama.h>-
65-
66#ifdef XCB_USE_XLIB-
67#include <X11/Xlib.h>-
68#include <X11/Xlib-xcb.h>-
69#include <X11/Xlibint.h>-
70#include <X11/Xutil.h>-
71#endif-
72-
73#if defined(XCB_USE_XINPUT2)-
74#include <X11/extensions/XI2proto.h>-
75#endif-
76-
77#ifdef XCB_USE_RENDER-
78#include <xcb/render.h>-
79#endif-
80-
81#if defined(Q_CC_GNU) && defined(Q_OF_ELF)-
82static xcb_generic_event_t *local_xcb_poll_for_queued_event(xcb_connection_t *c)-
83 __attribute__((weakref("xcb_poll_for_queued_event")));-
84-
85static inline void checkXcbPollForQueuedEvent()-
86{ }-
87#else-
88#include <dlfcn.h>-
89typedef xcb_generic_event_t * (*XcbPollForQueuedEventFunctionPointer)(xcb_connection_t *c);-
90static XcbPollForQueuedEventFunctionPointer local_xcb_poll_for_queued_event;-
91-
92static inline void checkXcbPollForQueuedEvent()-
93{-
94#ifdef RTLD_DEFAULT-
95 local_xcb_poll_for_queued_event = (XcbPollForQueuedEventFunctionPointer)dlsym(RTLD_DEFAULT, "xcb_poll_for_queued_event");-
96#endif-
97}-
98#endif-
99-
100QT_BEGIN_NAMESPACE-
101-
102Q_LOGGING_CATEGORY(lcQpaXInput, "qt.qpa.input")
executed 7746 times by 125 tests: return category;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
7746
103Q_LOGGING_CATEGORY(lcQpaXInputDevices, "qt.qpa.input.devices")
executed 3225 times by 5 tests: return category;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
3225
104Q_LOGGING_CATEGORY(lcQpaXInputEvents, "qt.qpa.input.events")
executed 3528 times by 68 tests: return category;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
3528
105Q_LOGGING_CATEGORY(lcQpaScreen, "qt.qpa.screen")
executed 1161 times by 5 tests: return category;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
1161
106-
107// this event type was added in libxcb 1.10,-
108// but we support also older version-
109#ifndef XCB_GE_GENERIC-
110#define XCB_GE_GENERIC 35-
111#endif-
112-
113#if defined(XCB_USE_XINPUT2)-
114// Starting from the xcb version 1.9.3 struct xcb_ge_event_t has changed:-
115// - "pad0" became "extension"-
116// - "pad1" and "pad" became "pad0"-
117// New and old version of this struct share the following fields:-
118typedef struct qt_xcb_ge_event_t {-
119 uint8_t response_type;-
120 uint8_t extension;-
121 uint16_t sequence;-
122 uint32_t length;-
123 uint16_t event_type;-
124} qt_xcb_ge_event_t;-
125-
126static inline bool isXIEvent(xcb_generic_event_t *event, int opCode)-
127{-
128 qt_xcb_ge_event_t *e = (qt_xcb_ge_event_t *)event;-
129 return e->extension == opCode;
executed 7499 times by 69 tests: return e->extension == opCode;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
7499
130}-
131#endif // XCB_USE_XINPUT2-
132-
133#ifdef XCB_USE_XLIB-
134static const char * const xcbConnectionErrors[] = {-
135 "No error", /* Error 0 */-
136 "I/O error", /* XCB_CONN_ERROR */-
137 "Unsupported extension used", /* XCB_CONN_CLOSED_EXT_NOTSUPPORTED */-
138 "Out of memory", /* XCB_CONN_CLOSED_MEM_INSUFFICIENT */-
139 "Maximum allowed requested length exceeded", /* XCB_CONN_CLOSED_REQ_LEN_EXCEED */-
140 "Failed to parse display string", /* XCB_CONN_CLOSED_PARSE_ERR */-
141 "No such screen on display", /* XCB_CONN_CLOSED_INVALID_SCREEN */-
142 "Error during FD passing" /* XCB_CONN_CLOSED_FDPASSING_FAILED */-
143};-
144-
145static int nullErrorHandler(Display *, XErrorEvent *)-
146{-
147 return 0;
never executed: return 0;
0
148}-
149-
150static int ioErrorHandler(Display *dpy)-
151{-
152 xcb_connection_t *conn = XGetXCBConnection(dpy);-
153 if (conn != NULL) {
conn != __nullDescription
TRUEnever evaluated
FALSEnever evaluated
0
154 /* Print a message with a textual description of the error */-
155 int code = xcb_connection_has_error(conn);-
156 const char *str = "Unknown error";-
157 int arrayLength = sizeof(xcbConnectionErrors) / sizeof(xcbConnectionErrors[0]);-
158 if (code >= 0 && code < arrayLength)
code >= 0Description
TRUEnever evaluated
FALSEnever evaluated
code < arrayLengthDescription
TRUEnever evaluated
FALSEnever evaluated
0
159 str = xcbConnectionErrors[code];
never executed: str = xcbConnectionErrors[code];
0
160-
161 qWarning("The X11 connection broke: %s (code %d)", str, code);-
162 }
never executed: end of block
0
163 return _XDefaultIOError(dpy);
never executed: return _XDefaultIOError(dpy);
0
164}-
165#endif-
166-
167QXcbScreen* QXcbConnection::findScreenForCrtc(xcb_window_t rootWindow, xcb_randr_crtc_t crtc)-
168{-
169 foreach (QXcbScreen *screen, m_screens) {-
170 if (screen->root() == rootWindow && screen->crtc() == crtc)
screen->root() == rootWindowDescription
TRUEnever evaluated
FALSEnever evaluated
screen->crtc() == crtcDescription
TRUEnever evaluated
FALSEnever evaluated
0
171 return screen;
never executed: return screen;
0
172 }
never executed: end of block
0
173-
174 return 0;
never executed: return 0;
0
175}-
176-
177QXcbScreen* QXcbConnection::findScreenForOutput(xcb_window_t rootWindow, xcb_randr_output_t output)-
178{-
179 foreach (QXcbScreen *screen, m_screens) {-
180 if (screen->root() == rootWindow && screen->output() == output)
screen->root() == rootWindowDescription
TRUEnever evaluated
FALSEnever evaluated
screen->output() == outputDescription
TRUEnever evaluated
FALSEnever evaluated
0
181 return screen;
never executed: return screen;
0
182 }
never executed: end of block
0
183-
184 return 0;
never executed: return 0;
0
185}-
186-
187QXcbVirtualDesktop* QXcbConnection::virtualDesktopForRootWindow(xcb_window_t rootWindow)-
188{-
189 foreach (QXcbVirtualDesktop *virtualDesktop, m_virtualDesktops) {-
190 if (virtualDesktop->screen()->root == rootWindow)
virtualDesktop... == rootWindowDescription
TRUEnever evaluated
FALSEnever evaluated
0
191 return virtualDesktop;
never executed: return virtualDesktop;
0
192 }
never executed: end of block
0
193-
194 return 0;
never executed: return 0;
0
195}-
196-
197/*!-
198 \brief Synchronizes the screen list, adds new screens, removes deleted ones-
199*/-
200void QXcbConnection::updateScreens(const xcb_randr_notify_event_t *event)-
201{-
202 if (event->subCode == XCB_RANDR_NOTIFY_CRTC_CHANGE) {
event->subCode...FY_CRTC_CHANGEDescription
TRUEnever evaluated
FALSEnever evaluated
0
203 xcb_randr_crtc_change_t crtc = event->u.cc;-
204 QXcbVirtualDesktop *virtualDesktop = virtualDesktopForRootWindow(crtc.window);-
205 if (!virtualDesktop)
!virtualDesktopDescription
TRUEnever evaluated
FALSEnever evaluated
0
206 // Not for us-
207 return;
never executed: return;
0
208-
209 QXcbScreen *screen = findScreenForCrtc(crtc.window, crtc.crtc);-
210 qCDebug(lcQpaScreen) << "QXcbConnection: XCB_RANDR_NOTIFY_CRTC_CHANGE:" << crtc.crtc
never executed: QMessageLogger(__FILE__, 210, __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug() << "QXcbConnection: XCB_RANDR_NOTIFY_CRTC_CHANGE:" << crtc.crtc << "mode" << crtc.mode << "relevant screen" << screen;
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
211 << "mode" << crtc.mode << "relevant screen" << screen;
never executed: QMessageLogger(__FILE__, 210, __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug() << "QXcbConnection: XCB_RANDR_NOTIFY_CRTC_CHANGE:" << crtc.crtc << "mode" << crtc.mode << "relevant screen" << screen;
0
212 // Only update geometry when there's a valid mode on the CRTC-
213 // CRTC with node mode could mean that output has been disabled, and we'll-
214 // get RRNotifyOutputChange notification for that.-
215 if (screen && crtc.mode) {
screenDescription
TRUEnever evaluated
FALSEnever evaluated
crtc.modeDescription
TRUEnever evaluated
FALSEnever evaluated
0
216 if (crtc.rotation == XCB_RANDR_ROTATION_ROTATE_90 ||
crtc.rotation ...TION_ROTATE_90Description
TRUEnever evaluated
FALSEnever evaluated
0
217 crtc.rotation == XCB_RANDR_ROTATION_ROTATE_270)
crtc.rotation ...ION_ROTATE_270Description
TRUEnever evaluated
FALSEnever evaluated
0
218 std::swap(crtc.width, crtc.height);
never executed: std::swap(crtc.width, crtc.height);
0
219 screen->updateGeometry(QRect(crtc.x, crtc.y, crtc.width, crtc.height), crtc.rotation);-
220 if (screen->mode() != crtc.mode)
screen->mode() != crtc.modeDescription
TRUEnever evaluated
FALSEnever evaluated
0
221 screen->updateRefreshRate(crtc.mode);
never executed: screen->updateRefreshRate(crtc.mode);
0
222 }
never executed: end of block
0
223-
224 } else if (event->subCode == XCB_RANDR_NOTIFY_OUTPUT_CHANGE) {
never executed: end of block
event->subCode..._OUTPUT_CHANGEDescription
TRUEnever evaluated
FALSEnever evaluated
0
225 xcb_randr_output_change_t output = event->u.oc;-
226 QXcbVirtualDesktop *virtualDesktop = virtualDesktopForRootWindow(output.window);-
227 if (!virtualDesktop)
!virtualDesktopDescription
TRUEnever evaluated
FALSEnever evaluated
0
228 // Not for us-
229 return;
never executed: return;
0
230-
231 QXcbScreen *screen = findScreenForOutput(output.window, output.output);-
232 qCDebug(lcQpaScreen) << "QXcbConnection: XCB_RANDR_NOTIFY_OUTPUT_CHANGE:" << output.output;
never executed: QMessageLogger(__FILE__, 232, __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug() << "QXcbConnection: XCB_RANDR_NOTIFY_OUTPUT_CHANGE:" << output.output;
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
233-
234 if (screen && output.connection == XCB_RANDR_CONNECTION_DISCONNECTED) {
screenDescription
TRUEnever evaluated
FALSEnever evaluated
output.connect...N_DISCONNECTEDDescription
TRUEnever evaluated
FALSEnever evaluated
0
235 qCDebug(lcQpaScreen) << "screen" << screen->name() << "has been disconnected";
never executed: QMessageLogger(__FILE__, 235, __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug() << "screen" << screen->name() << "has been disconnected";
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
236 destroyScreen(screen);-
237 } else if (!screen && output.connection == XCB_RANDR_CONNECTION_CONNECTED) {
never executed: end of block
!screenDescription
TRUEnever evaluated
FALSEnever evaluated
output.connect...TION_CONNECTEDDescription
TRUEnever evaluated
FALSEnever evaluated
0
238 // New XRandR output is available and it's enabled-
239 if (output.crtc != XCB_NONE && output.mode != XCB_NONE) {
output.crtc != 0LDescription
TRUEnever evaluated
FALSEnever evaluated
output.mode != 0LDescription
TRUEnever evaluated
FALSEnever evaluated
0
240 xcb_randr_get_output_info_cookie_t outputInfoCookie =-
241 xcb_randr_get_output_info(xcb_connection(), output.output, output.config_timestamp);-
242 QScopedPointer<xcb_randr_get_output_info_reply_t, QScopedPointerPodDeleter> outputInfo(-
243 xcb_randr_get_output_info_reply(xcb_connection(), outputInfoCookie, NULL));-
244-
245 // Find a fake screen-
246 foreach (QPlatformScreen *scr, virtualDesktop->screens()) {-
247 QXcbScreen *xcbScreen = (QXcbScreen *)scr;-
248 if (xcbScreen->output() == XCB_NONE) {
xcbScreen->output() == 0LDescription
TRUEnever evaluated
FALSEnever evaluated
0
249 screen = xcbScreen;-
250 break;
never executed: break;
0
251 }-
252 }
never executed: end of block
0
253-
254 if (screen) {
screenDescription
TRUEnever evaluated
FALSEnever evaluated
0
255 QString nameWas = screen->name();-
256 // Transform the fake screen into a physical screen-
257 screen->setOutput(output.output, outputInfo.data());-
258 updateScreen(screen, output);-
259 qCDebug(lcQpaScreen) << "output" << screen->name()
never executed: QMessageLogger(__FILE__, 259, __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug() << "output" << screen->name() << "is connected and enabled; was fake:" << nameWas;
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
260 << "is connected and enabled; was fake:" << nameWas;
never executed: QMessageLogger(__FILE__, 259, __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug() << "output" << screen->name() << "is connected and enabled; was fake:" << nameWas;
0
261 } else {
never executed: end of block
0
262 screen = createScreen(virtualDesktop, output, outputInfo.data());-
263 qCDebug(lcQpaScreen) << "output" << screen->name() << "is connected and enabled";
never executed: QMessageLogger(__FILE__, 263, __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug() << "output" << screen->name() << "is connected and enabled";
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
264 }
never executed: end of block
0
265 QHighDpiScaling::updateHighDpiScaling();-
266 }
never executed: end of block
0
267 } else if (screen) {
never executed: end of block
screenDescription
TRUEnever evaluated
FALSEnever evaluated
0
268 if (output.crtc == XCB_NONE && output.mode == XCB_NONE) {
output.crtc == 0LDescription
TRUEnever evaluated
FALSEnever evaluated
output.mode == 0LDescription
TRUEnever evaluated
FALSEnever evaluated
0
269 // Screen has been disabled-
270 xcb_randr_get_output_info_cookie_t outputInfoCookie =-
271 xcb_randr_get_output_info(xcb_connection(), output.output, output.config_timestamp);-
272 QScopedPointer<xcb_randr_get_output_info_reply_t, QScopedPointerPodDeleter> outputInfo(-
273 xcb_randr_get_output_info_reply(xcb_connection(), outputInfoCookie, NULL));-
274 if (outputInfo->crtc == XCB_NONE) {
outputInfo->crtc == 0LDescription
TRUEnever evaluated
FALSEnever evaluated
0
275 qCDebug(lcQpaScreen) << "output" << screen->name() << "has been disabled";
never executed: QMessageLogger(__FILE__, 275, __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug() << "output" << screen->name() << "has been disabled";
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
276 destroyScreen(screen);-
277 } else {
never executed: end of block
0
278 qCDebug(lcQpaScreen) << "output" << screen->name() << "has been temporarily disabled for the mode switch";
never executed: QMessageLogger(__FILE__, 278, __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug() << "output" << screen->name() << "has been temporarily disabled for the mode switch";
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
279 // Reset crtc to skip RRCrtcChangeNotify events,-
280 // because they may be invalid in the middle of the mode switch-
281 screen->setCrtc(XCB_NONE);-
282 }
never executed: end of block
0
283 } else {-
284 updateScreen(screen, output);-
285 qCDebug(lcQpaScreen) << "output has changed" << screen;
never executed: QMessageLogger(__FILE__, 285, __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug() << "output has changed" << screen;
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
286 }
never executed: end of block
0
287 }-
288-
289 qCDebug(lcQpaScreen) << "primary output is" << m_screens.first()->name();
never executed: QMessageLogger(__FILE__, 289, __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug() << "primary output is" << m_screens.first()->name();
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
290 }
never executed: end of block
0
291}
never executed: end of block
0
292-
293bool QXcbConnection::checkOutputIsPrimary(xcb_window_t rootWindow, xcb_randr_output_t output)-
294{-
295 xcb_generic_error_t *error = 0;-
296 xcb_randr_get_output_primary_cookie_t primaryCookie =-
297 xcb_randr_get_output_primary(xcb_connection(), rootWindow);-
298 QScopedPointer<xcb_randr_get_output_primary_reply_t, QScopedPointerPodDeleter> primary (-
299 xcb_randr_get_output_primary_reply(xcb_connection(), primaryCookie, &error));-
300 if (!primary || error) {
!primaryDescription
TRUEnever evaluated
FALSEnever evaluated
errorDescription
TRUEnever evaluated
FALSEnever evaluated
0
301 qWarning("failed to get the primary output of the screen");-
302 free(error);-
303 error = NULL;-
304 }
never executed: end of block
0
305 const bool isPrimary = primary ? (primary->output == output) : false;
primaryDescription
TRUEnever evaluated
FALSEnever evaluated
0
306-
307 return isPrimary;
never executed: return isPrimary;
0
308}-
309-
310void QXcbConnection::updateScreen(QXcbScreen *screen, const xcb_randr_output_change_t &outputChange)-
311{-
312 screen->setCrtc(outputChange.crtc); // Set the new crtc, because it can be invalid-
313 screen->updateGeometry(outputChange.config_timestamp);-
314 if (screen->mode() != outputChange.mode)
screen->mode()...putChange.modeDescription
TRUEnever evaluated
FALSEnever evaluated
0
315 screen->updateRefreshRate(outputChange.mode);
never executed: screen->updateRefreshRate(outputChange.mode);
0
316 // Only screen which belongs to the primary virtual desktop can be a primary screen-
317 if (screen->screenNumber() == m_primaryScreenNumber) {
screen->screen...ryScreenNumberDescription
TRUEnever evaluated
FALSEnever evaluated
0
318 if (!screen->isPrimary() && checkOutputIsPrimary(outputChange.window, outputChange.output)) {
!screen->isPrimary()Description
TRUEnever evaluated
FALSEnever evaluated
checkOutputIsP...Change.output)Description
TRUEnever evaluated
FALSEnever evaluated
0
319 screen->setPrimary(true);-
320-
321 // If the screen became primary, reshuffle the order in QGuiApplicationPrivate-
322 const int idx = m_screens.indexOf(screen);-
323 if (idx > 0) {
idx > 0Description
TRUEnever evaluated
FALSEnever evaluated
0
324 m_screens.first()->setPrimary(false);-
325 m_screens.swap(0, idx);-
326 }
never executed: end of block
0
327 screen->virtualDesktop()->setPrimaryScreen(screen);-
328 QXcbIntegration::instance()->setPrimaryScreen(screen);-
329 }
never executed: end of block
0
330 }
never executed: end of block
0
331}
never executed: end of block
0
332-
333QXcbScreen *QXcbConnection::createScreen(QXcbVirtualDesktop *virtualDesktop,-
334 const xcb_randr_output_change_t &outputChange,-
335 xcb_randr_get_output_info_reply_t *outputInfo)-
336{-
337 QXcbScreen *screen = new QXcbScreen(this, virtualDesktop, outputChange.output, outputInfo);-
338 // Only screen which belongs to the primary virtual desktop can be a primary screen-
339 if (screen->screenNumber() == m_primaryScreenNumber)
screen->screen...ryScreenNumberDescription
TRUEnever evaluated
FALSEnever evaluated
0
340 screen->setPrimary(checkOutputIsPrimary(outputChange.window, outputChange.output));
never executed: screen->setPrimary(checkOutputIsPrimary(outputChange.window, outputChange.output));
0
341-
342 if (screen->isPrimary()) {
screen->isPrimary()Description
TRUEnever evaluated
FALSEnever evaluated
0
343 if (!m_screens.isEmpty())
!m_screens.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
0
344 m_screens.first()->setPrimary(false);
never executed: m_screens.first()->setPrimary(false);
0
345-
346 m_screens.prepend(screen);-
347 } else {
never executed: end of block
0
348 m_screens.append(screen);-
349 }
never executed: end of block
0
350 virtualDesktop->addScreen(screen);-
351 QXcbIntegration::instance()->screenAdded(screen, screen->isPrimary());-
352-
353 return screen;
never executed: return screen;
0
354}-
355-
356void QXcbConnection::destroyScreen(QXcbScreen *screen)-
357{-
358 QXcbVirtualDesktop *virtualDesktop = screen->virtualDesktop();-
359 if (virtualDesktop->screens().count() == 1) {
virtualDesktop...).count() == 1Description
TRUEnever evaluated
FALSEnever evaluated
0
360 // If there are no other screens on the same virtual desktop,-
361 // then transform the physical screen into a fake screen.-
362 const QString nameWas = screen->name();-
363 screen->setOutput(XCB_NONE, Q_NULLPTR);-
364 qCDebug(lcQpaScreen) << "transformed" << nameWas << "to fake" << screen;
never executed: QMessageLogger(__FILE__, 364, __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug() << "transformed" << nameWas << "to fake" << screen;
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
365 } else {
never executed: end of block
0
366 // There is more than one screen on the same virtual desktop, remove the screen-
367 m_screens.removeOne(screen);-
368 virtualDesktop->removeScreen(screen);-
369-
370 // When primary screen is removed, set the new primary screen-
371 // which belongs to the primary virtual desktop.-
372 if (screen->isPrimary()) {
screen->isPrimary()Description
TRUEnever evaluated
FALSEnever evaluated
0
373 QXcbScreen *newPrimary = (QXcbScreen *)virtualDesktop->screens().at(0);-
374 newPrimary->setPrimary(true);-
375 const int idx = m_screens.indexOf(newPrimary);-
376 if (idx > 0)
idx > 0Description
TRUEnever evaluated
FALSEnever evaluated
0
377 m_screens.swap(0, idx);
never executed: m_screens.swap(0, idx);
0
378 QXcbIntegration::instance()->setPrimaryScreen(newPrimary);-
379 }
never executed: end of block
0
380-
381 QXcbIntegration::instance()->destroyScreen(screen);-
382 }
never executed: end of block
0
383}-
384-
385void QXcbConnection::initializeScreens()-
386{-
387 xcb_screen_iterator_t it = xcb_setup_roots_iterator(m_setup);-
388 int xcbScreenNumber = 0; // screen number in the xcb sense-
389 QXcbScreen *primaryScreen = Q_NULLPTR;-
390 while (it.rem) {
it.remDescription
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
391 // Each "screen" in xcb terminology is a virtual desktop,-
392 // potentially a collection of separate juxtaposed monitors.-
393 // But we want a separate QScreen for each output (e.g. DVI-I-1, VGA-1, etc.)-
394 // which will become virtual siblings.-
395 xcb_screen_t *xcbScreen = it.data;-
396 QXcbVirtualDesktop *virtualDesktop = new QXcbVirtualDesktop(this, xcbScreen, xcbScreenNumber);-
397 m_virtualDesktops.append(virtualDesktop);-
398 QList<QPlatformScreen *> siblings;-
399 if (has_randr_extension) {
has_randr_extensionDescription
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
0-129
400 xcb_generic_error_t *error = NULL;-
401 // RRGetScreenResourcesCurrent is fast but it may return nothing if the-
402 // configuration is not initialized wrt to the hardware. We should call-
403 // RRGetScreenResources in this case.-
404 QScopedPointer<xcb_randr_get_screen_resources_reply_t, QScopedPointerPodDeleter> resources;-
405 xcb_randr_get_screen_resources_current_cookie_t resourcesCookie =-
406 xcb_randr_get_screen_resources_current(xcb_connection(), xcbScreen->root);-
407 QScopedPointer<xcb_randr_get_screen_resources_current_reply_t, QScopedPointerPodDeleter> resources_current(-
408 xcb_randr_get_screen_resources_current_reply(xcb_connection(), resourcesCookie, &error));-
409 if (!resources_current || error) {
!resources_currentDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
errorDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
410 qWarning("failed to get the current screen resources");-
411 free(error);-
412 } else {
never executed: end of block
0
413 xcb_timestamp_t timestamp;-
414 xcb_randr_output_t *outputs = Q_NULLPTR;-
415 int outputCount = xcb_randr_get_screen_resources_current_outputs_length(resources_current.data());-
416 if (outputCount) {
outputCountDescription
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
0-129
417 timestamp = resources_current->config_timestamp;-
418 outputs = xcb_randr_get_screen_resources_current_outputs(resources_current.data());-
419 } else {
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
420 xcb_randr_get_screen_resources_cookie_t resourcesCookie =-
421 xcb_randr_get_screen_resources(xcb_connection(), xcbScreen->root);-
422 resources.reset(xcb_randr_get_screen_resources_reply(xcb_connection(), resourcesCookie, &error));-
423 if (!resources || error) {
!resourcesDescription
TRUEnever evaluated
FALSEnever evaluated
errorDescription
TRUEnever evaluated
FALSEnever evaluated
0
424 qWarning("failed to get the screen resources");-
425 free(error);-
426 } else {
never executed: end of block
0
427 timestamp = resources->config_timestamp;-
428 outputCount = xcb_randr_get_screen_resources_outputs_length(resources.data());-
429 outputs = xcb_randr_get_screen_resources_outputs(resources.data());-
430 }
never executed: end of block
0
431 }-
432-
433 if (outputCount) {
outputCountDescription
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
0-129
434 xcb_randr_get_output_primary_cookie_t primaryCookie =-
435 xcb_randr_get_output_primary(xcb_connection(), xcbScreen->root);-
436 QScopedPointer<xcb_randr_get_output_primary_reply_t, QScopedPointerPodDeleter> primary(-
437 xcb_randr_get_output_primary_reply(xcb_connection(), primaryCookie, &error));-
438 if (!primary || error) {
!primaryDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
errorDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
439 qWarning("failed to get the primary output of the screen");-
440 free(error);-
441 } else {
never executed: end of block
0
442 for (int i = 0; i < outputCount; i++) {
i < outputCountDescription
TRUEevaluated 1032 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129-1032
443 QScopedPointer<xcb_randr_get_output_info_reply_t, QScopedPointerPodDeleter> output(-
444 xcb_randr_get_output_info_reply(xcb_connection(),-
445 xcb_randr_get_output_info_unchecked(xcb_connection(), outputs[i], timestamp), NULL));-
446-
447 // Invalid, disconnected or disabled output-
448 if (output == NULL)
output == __nullDescription
TRUEnever evaluated
FALSEevaluated 1032 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-1032
449 continue;
never executed: continue;
0
450-
451 if (output->connection != XCB_RANDR_CONNECTION_CONNECTED) {
output->connec...TION_CONNECTEDDescription
TRUEevaluated 903 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129-903
452 qCDebug(lcQpaScreen, "Output %s is not connected", qPrintable(
never executed: QMessageLogger( __FILE__ , 454 , __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug("Output %s is not connected", QString(QString::fromUtf8((const char*)xcb_randr_get_output_info_name(output.data()), xcb_randr_get_output_info_name_length(output.data()))).toLocal8Bit().constData()) ;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 903 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-903
453 QString::fromUtf8((const char*)xcb_randr_get_output_info_name(output.data()),
never executed: QMessageLogger( __FILE__ , 454 , __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug("Output %s is not connected", QString(QString::fromUtf8((const char*)xcb_randr_get_output_info_name(output.data()), xcb_randr_get_output_info_name_length(output.data()))).toLocal8Bit().constData()) ;
0
454 xcb_randr_get_output_info_name_length(output.data()))));
never executed: QMessageLogger( __FILE__ , 454 , __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug("Output %s is not connected", QString(QString::fromUtf8((const char*)xcb_randr_get_output_info_name(output.data()), xcb_randr_get_output_info_name_length(output.data()))).toLocal8Bit().constData()) ;
0
455 continue;
executed 903 times by 5 tests: continue;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
903
456 }-
457-
458 if (output->crtc == XCB_NONE) {
output->crtc == 0LDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
459 qCDebug(lcQpaScreen, "Output %s is not enabled", qPrintable(
never executed: QMessageLogger( __FILE__ , 461 , __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug("Output %s is not enabled", QString(QString::fromUtf8((const char*)xcb_randr_get_output_info_name(output.data()), xcb_randr_get_output_info_name_length(output.data()))).toLocal8Bit().constData()) ;
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
460 QString::fromUtf8((const char*)xcb_randr_get_output_info_name(output.data()),
never executed: QMessageLogger( __FILE__ , 461 , __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug("Output %s is not enabled", QString(QString::fromUtf8((const char*)xcb_randr_get_output_info_name(output.data()), xcb_randr_get_output_info_name_length(output.data()))).toLocal8Bit().constData()) ;
0
461 xcb_randr_get_output_info_name_length(output.data()))));
never executed: QMessageLogger( __FILE__ , 461 , __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug("Output %s is not enabled", QString(QString::fromUtf8((const char*)xcb_randr_get_output_info_name(output.data()), xcb_randr_get_output_info_name_length(output.data()))).toLocal8Bit().constData()) ;
0
462 continue;
never executed: continue;
0
463 }-
464-
465 QXcbScreen *screen = new QXcbScreen(this, virtualDesktop, outputs[i], output.data());-
466 siblings << screen;-
467 m_screens << screen;-
468-
469 // There can be multiple outputs per screen, use either-
470 // the first or an exact match. An exact match isn't-
471 // always available if primary->output is XCB_NONE-
472 // or currently disconnected output.-
473 if (m_primaryScreenNumber == xcbScreenNumber) {
m_primaryScree...cbScreenNumberDescription
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
0-129
474 if (!primaryScreen || (primary && outputs[i] == primary->output)) {
!primaryScreenDescription
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
primaryDescription
TRUEnever evaluated
FALSEnever evaluated
outputs[i] == primary->outputDescription
TRUEnever evaluated
FALSEnever evaluated
0-129
475 if (primaryScreen)
primaryScreenDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
476 primaryScreen->setPrimary(false);
never executed: primaryScreen->setPrimary(false);
0
477 primaryScreen = screen;-
478 primaryScreen->setPrimary(true);-
479 siblings.prepend(siblings.takeLast());-
480 }
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
481 }
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
482 }
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
483 }
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
484 }-
485 }
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
486 } else if (has_xinerama_extension) {
has_xinerama_extensionDescription
TRUEnever evaluated
FALSEnever evaluated
0
487 // Xinerama is available-
488 xcb_xinerama_query_screens_cookie_t cookie = xcb_xinerama_query_screens(m_connection);-
489 xcb_xinerama_query_screens_reply_t *screens = xcb_xinerama_query_screens_reply(m_connection,-
490 cookie,-
491 Q_NULLPTR);-
492 if (screens) {
screensDescription
TRUEnever evaluated
FALSEnever evaluated
0
493 xcb_xinerama_screen_info_iterator_t it = xcb_xinerama_query_screens_screen_info_iterator(screens);-
494 while (it.rem) {
it.remDescription
TRUEnever evaluated
FALSEnever evaluated
0
495 xcb_xinerama_screen_info_t *screen_info = it.data;-
496 QXcbScreen *screen = new QXcbScreen(this, virtualDesktop,-
497 XCB_NONE, Q_NULLPTR,-
498 screen_info, it.index);-
499 siblings << screen;-
500 m_screens << screen;-
501 xcb_xinerama_screen_info_next(&it);-
502 }
never executed: end of block
0
503 free(screens);-
504 }
never executed: end of block
0
505 }
never executed: end of block
0
506 if (siblings.isEmpty()) {
siblings.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
507 // If there are no XRandR outputs or XRandR extension is missing,-
508 // then create a fake/legacy screen.-
509 QXcbScreen *screen = new QXcbScreen(this, virtualDesktop, XCB_NONE, Q_NULLPTR);-
510 qCDebug(lcQpaScreen) << "created fake screen" << screen;
never executed: QMessageLogger(__FILE__, 510, __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug() << "created fake screen" << screen;
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
511 m_screens << screen;-
512 if (m_primaryScreenNumber == xcbScreenNumber) {
m_primaryScree...cbScreenNumberDescription
TRUEnever evaluated
FALSEnever evaluated
0
513 primaryScreen = screen;-
514 primaryScreen->setPrimary(true);-
515 }
never executed: end of block
0
516 siblings << screen;-
517 }
never executed: end of block
0
518 virtualDesktop->setScreens(siblings);-
519 xcb_screen_next(&it);-
520 ++xcbScreenNumber;-
521 } // for each xcb screen
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
522-
523 foreach (QXcbVirtualDesktop *virtualDesktop, m_virtualDesktops)-
524 virtualDesktop->subscribeToXFixesSelectionNotify();
executed 129 times by 5 tests: virtualDesktop->subscribeToXFixesSelectionNotify();
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
525-
526 if (m_virtualDesktops.isEmpty()) {
m_virtualDesktops.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
527 qFatal("QXcbConnection: no screens available");-
528 } else {
never executed: end of block
0
529 // Ensure the primary screen is first on the list-
530 if (primaryScreen) {
primaryScreenDescription
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
0-129
531 if (m_screens.first() != primaryScreen) {
m_screens.firs... primaryScreenDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
532 m_screens.removeOne(primaryScreen);-
533 m_screens.prepend(primaryScreen);-
534 }
never executed: end of block
0
535 }
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
536-
537 // Push the screens to QGuiApplication-
538 foreach (QXcbScreen *screen, m_screens) {-
539 qCDebug(lcQpaScreen) << "adding" << screen << "(Primary:" << screen->isPrimary() << ")";
never executed: QMessageLogger(__FILE__, 539, __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug() << "adding" << screen << "(Primary:" << screen->isPrimary() << ")";
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
540 QXcbIntegration::instance()->screenAdded(screen, screen->isPrimary());-
541 }
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
542-
543 qCDebug(lcQpaScreen) << "primary output is" << m_screens.first()->name();
never executed: QMessageLogger(__FILE__, 543, __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug() << "primary output is" << m_screens.first()->name();
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
544 }
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
545}-
546-
547QXcbConnection::QXcbConnection(QXcbNativeInterface *nativeInterface, bool canGrabServer, xcb_visualid_t defaultVisualId, const char *displayName)-
548 : m_connection(0)-
549 , m_canGrabServer(canGrabServer)-
550 , m_defaultVisualId(defaultVisualId)-
551 , m_primaryScreenNumber(0)-
552 , m_displayName(displayName ? QByteArray(displayName) : qgetenv("DISPLAY"))-
553 , m_nativeInterface(nativeInterface)-
554#ifdef XCB_USE_XLIB-
555 , m_xlib_display(0)-
556#endif-
557 , xfixes_first_event(0)-
558 , xrandr_first_event(0)-
559 , xkb_first_event(0)-
560 , has_xinerama_extension(false)-
561 , has_shape_extension(false)-
562 , has_randr_extension(false)-
563 , has_input_shape(false)-
564 , has_xkb(false)-
565 , m_buttons(0)-
566 , m_focusWindow(0)-
567 , m_mouseGrabber(0)-
568 , m_mousePressWindow(0)-
569 , m_clientLeader(0)-
570 , m_systemTrayTracker(0)-
571 , m_glIntegration(Q_NULLPTR)-
572 , m_xiGrab(false)-
573 , m_qtSelectionOwner(0)-
574{-
575#ifdef XCB_USE_XLIB-
576 Display *dpy = XOpenDisplay(m_displayName.constData());-
577 if (dpy) {
dpyDescription
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
0-129
578 m_primaryScreenNumber = DefaultScreen(dpy);-
579 m_connection = XGetXCBConnection(dpy);-
580 XSetEventQueueOwner(dpy, XCBOwnsEventQueue);-
581 XSetErrorHandler(nullErrorHandler);-
582 XSetIOErrorHandler(ioErrorHandler);-
583 m_xlib_display = dpy;-
584 }
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
585#else-
586 m_connection = xcb_connect(m_displayName.constData(), &m_primaryScreenNumber);-
587#endif //XCB_USE_XLIB-
588-
589 if (!m_connection || xcb_connection_has_error(m_connection))
!m_connectionDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
xcb_connection...(m_connection)Description
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
590 qFatal("QXcbConnection: Could not connect to display %s", m_displayName.constData());
never executed: QMessageLogger(__FILE__, 590, __PRETTY_FUNCTION__).fatal("QXcbConnection: Could not connect to display %s", m_displayName.constData());
0
591-
592-
593 m_reader = new QXcbEventReader(this);-
594 m_reader->start();-
595-
596 xcb_extension_t *extensions[] = {-
597 &xcb_shm_id, &xcb_xfixes_id, &xcb_randr_id, &xcb_shape_id, &xcb_sync_id,-
598#ifndef QT_NO_XKB-
599 &xcb_xkb_id,-
600#endif-
601#ifdef XCB_USE_RENDER-
602 &xcb_render_id,-
603#endif-
604 0-
605 };-
606-
607 for (xcb_extension_t **ext_it = extensions; *ext_it; ++ext_it)
*ext_itDescription
TRUEevaluated 903 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129-903
608 xcb_prefetch_extension_data (m_connection, *ext_it);
executed 903 times by 5 tests: xcb_prefetch_extension_data (m_connection, *ext_it);
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
903
609-
610 m_setup = xcb_get_setup(xcb_connection());-
611-
612 initializeAllAtoms();-
613-
614 m_time = XCB_CURRENT_TIME;-
615 m_netWmUserTime = XCB_CURRENT_TIME;-
616-
617 if (!qEnvironmentVariableIsSet("QT_XCB_NO_XRANDR"))
!qEnvironmentV...CB_NO_XRANDR")Description
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
0-129
618 initializeXRandr();
executed 129 times by 5 tests: initializeXRandr();
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
619 if (!has_randr_extension)
!has_randr_extensionDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
620 initializeXinerama();
never executed: initializeXinerama();
0
621 initializeXFixes();-
622 initializeScreens();-
623-
624 initializeXRender();-
625#if defined(XCB_USE_XINPUT2)-
626 m_xi2Enabled = false;-
627 if (!qEnvironmentVariableIsSet("QT_XCB_NO_XI2"))
!qEnvironmentV...T_XCB_NO_XI2")Description
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
0-129
628 initializeXInput2();
executed 129 times by 5 tests: initializeXInput2();
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
629#endif-
630 initializeXShape();-
631 initializeXKB();-
632-
633 m_wmSupport.reset(new QXcbWMSupport(this));-
634 m_keyboard = new QXcbKeyboard(this);-
635#ifndef QT_NO_CLIPBOARD-
636 m_clipboard = new QXcbClipboard(this);-
637#endif-
638#ifndef QT_NO_DRAGANDDROP-
639 m_drag = new QXcbDrag(this);-
640#endif-
641-
642 m_startupId = qgetenv("DESKTOP_STARTUP_ID");-
643 if (!m_startupId.isNull())
!m_startupId.isNull()Description
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
644 qunsetenv("DESKTOP_STARTUP_ID");
never executed: qunsetenv("DESKTOP_STARTUP_ID");
0
645-
646-
647 QStringList glIntegrationNames;-
648 glIntegrationNames << QStringLiteral("xcb_glx") << QStringLiteral("xcb_egl");
executed 129 times by 5 tests: return qstring_literal_temp;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
executed 129 times by 5 tests: return qstring_literal_temp;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
649 QString glIntegrationName = QString::fromLocal8Bit(qgetenv("QT_XCB_GL_INTEGRATION"));-
650 if (!glIntegrationName.isEmpty()) {
!glIntegrationName.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
651 qCDebug(QT_XCB_GLINTEGRATION) << "QT_XCB_GL_INTEGRATION is set to" << glIntegrationName;
never executed: QMessageLogger(__FILE__, 651, __PRETTY_FUNCTION__, QT_XCB_GLINTEGRATION().categoryName()).debug() << "QT_XCB_GL_INTEGRATION is set to" << glIntegrationName;
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
652 if (glIntegrationName != QLatin1String("none")) {
glIntegrationN...String("none")Description
TRUEnever evaluated
FALSEnever evaluated
0
653 glIntegrationNames.removeAll(glIntegrationName);-
654 glIntegrationNames.prepend(glIntegrationName);-
655 } else {
never executed: end of block
0
656 glIntegrationNames.clear();-
657 }
never executed: end of block
0
658 }-
659-
660 qCDebug(QT_XCB_GLINTEGRATION) << "Choosing xcb gl-integration based on following priority\n" << glIntegrationNames;
never executed: QMessageLogger(__FILE__, 660, __PRETTY_FUNCTION__, QT_XCB_GLINTEGRATION().categoryName()).debug() << "Choosing xcb gl-integration based on following priority\n" << glIntegrationNames;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
661 for (int i = 0; i < glIntegrationNames.size() && !m_glIntegration; i++) {
i < glIntegrationNames.size()Description
TRUEevaluated 258 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
!m_glIntegrationDescription
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-258
662 m_glIntegration = QXcbGlIntegrationFactory::create(glIntegrationNames.at(i));-
663 if (m_glIntegration && !m_glIntegration->initialize(this)) {
m_glIntegrationDescription
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
!m_glIntegrati...itialize(this)Description
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
664 qCDebug(QT_XCB_GLINTEGRATION) << "Failed to initialize xcb gl-integration" << glIntegrationNames.at(i);
never executed: QMessageLogger(__FILE__, 664, __PRETTY_FUNCTION__, QT_XCB_GLINTEGRATION().categoryName()).debug() << "Failed to initialize xcb gl-integration" << glIntegrationNames.at(i);
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
665 delete m_glIntegration;-
666 m_glIntegration = Q_NULLPTR;-
667 }
never executed: end of block
0
668 }
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
669 if (!m_glIntegration)
!m_glIntegrationDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
670 qCDebug(QT_XCB_GLINTEGRATION) << "Failed to create xcb gl-integration";
never executed: QMessageLogger(__FILE__, 670, __PRETTY_FUNCTION__, QT_XCB_GLINTEGRATION().categoryName()).debug() << "Failed to create xcb gl-integration";
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
671-
672 sync();-
673}
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
674-
675QXcbConnection::~QXcbConnection()-
676{-
677#ifndef QT_NO_CLIPBOARD-
678 delete m_clipboard;-
679#endif-
680#ifndef QT_NO_DRAGANDDROP-
681 delete m_drag;-
682#endif-
683-
684#if defined(XCB_USE_XINPUT2)-
685 finalizeXInput2();-
686#endif-
687-
688 if (m_reader->isRunning()) {
m_reader->isRunning()Description
TRUEevaluated 341 times by 220 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
FALSEnever evaluated
0-341
689 sendConnectionEvent(QXcbAtom::_QT_CLOSE_CONNECTION);-
690 m_reader->wait();-
691 }
executed 341 times by 220 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
341
692-
693 delete m_reader;-
694-
695 QXcbIntegration *integration = QXcbIntegration::instance();-
696 // Delete screens in reverse order to avoid crash in case of multiple screens-
697 while (!m_screens.isEmpty())
!m_screens.isEmpty()Description
TRUEevaluated 341 times by 220 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
FALSEevaluated 341 times by 220 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
341
698 integration->destroyScreen(m_screens.takeLast());
executed 341 times by 220 tests: integration->destroyScreen(m_screens.takeLast());
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
341
699-
700 while (!m_virtualDesktops.isEmpty())
!m_virtualDesktops.isEmpty()Description
TRUEevaluated 341 times by 220 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
FALSEevaluated 341 times by 220 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
341
701 delete m_virtualDesktops.takeLast();
executed 341 times by 220 tests: delete m_virtualDesktops.takeLast();
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
341
702-
703 delete m_glIntegration;-
704-
705#ifdef XCB_USE_XLIB-
706 XCloseDisplay((Display *)m_xlib_display);-
707#else-
708 xcb_disconnect(xcb_connection());-
709#endif-
710-
711 delete m_keyboard;-
712}
executed 341 times by 220 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
341
713-
714QXcbScreen *QXcbConnection::primaryScreen() const-
715{-
716 if (!m_screens.isEmpty()) {
!m_screens.isEmpty()Description
TRUEevaluated 4739 times by 139 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
FALSEnever evaluated
0-4739
717 Q_ASSERT(m_screens.first()->screenNumber() == primaryScreenNumber());-
718 return m_screens.first();
executed 4739 times by 139 tests: return m_screens.first();
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
4739
719 }-
720-
721 return Q_NULLPTR;
never executed: return nullptr;
0
722}-
723-
724void QXcbConnection::addWindowEventListener(xcb_window_t id, QXcbWindowEventListener *eventListener)-
725{-
726 m_mapper.insert(id, eventListener);-
727}
executed 4461 times by 128 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
4461
728-
729void QXcbConnection::removeWindowEventListener(xcb_window_t id)-
730{-
731 m_mapper.remove(id);-
732}
executed 4453 times by 239 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
4453
733-
734QXcbWindowEventListener *QXcbConnection::windowEventListenerFromId(xcb_window_t id)-
735{-
736 return m_mapper.value(id, 0);
executed 231939 times by 113 tests: return m_mapper.value(id, 0);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
231939
737}-
738-
739QXcbWindow *QXcbConnection::platformWindowFromId(xcb_window_t id)-
740{-
741 QXcbWindowEventListener *listener = m_mapper.value(id, 0);-
742 if (listener)
listenerDescription
TRUEevaluated 3315 times by 94 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEevaluated 1146 times by 64 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • ...
1146-3315
743 return listener->toWindow();
executed 3315 times by 94 tests: return listener->toWindow();
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
3315
744 return 0;
executed 1146 times by 64 tests: return 0;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • ...
1146
745}-
746-
747#define HANDLE_PLATFORM_WINDOW_EVENT(event_t, windowMember, handler) \-
748{ \-
749 event_t *e = (event_t *)event; \-
750 if (QXcbWindowEventListener *eventListener = windowEventListenerFromId(e->windowMember)) { \-
751 handled = eventListener->handleGenericEvent(event, &result); \-
752 if (!handled) \-
753 eventListener->handler(e); \-
754 } \-
755} \-
756break;-
757-
758#define HANDLE_KEYBOARD_EVENT(event_t, handler) \-
759{ \-
760 event_t *e = (event_t *)event; \-
761 if (QXcbWindowEventListener *eventListener = windowEventListenerFromId(e->event)) { \-
762 handled = eventListener->handleGenericEvent(event, &result); \-
763 if (!handled) \-
764 m_keyboard->handler(e); \-
765 } \-
766} \-
767break;-
768-
769//#define XCB_EVENT_DEBUG-
770-
771void printXcbEvent(const char *message, xcb_generic_event_t *event)-
772{-
773#ifdef XCB_EVENT_DEBUG-
774#define PRINT_XCB_EVENT(ev) \-
775 case ev: \-
776 qDebug("QXcbConnection: %s: %d - %s - sequence: %d", message, int(ev), #ev, event->sequence); \-
777 break;-
778-
779 switch (event->response_type & ~0x80) {-
780 PRINT_XCB_EVENT(XCB_KEY_PRESS);-
781 PRINT_XCB_EVENT(XCB_KEY_RELEASE);-
782 PRINT_XCB_EVENT(XCB_BUTTON_PRESS);-
783 PRINT_XCB_EVENT(XCB_BUTTON_RELEASE);-
784 PRINT_XCB_EVENT(XCB_MOTION_NOTIFY);-
785 PRINT_XCB_EVENT(XCB_ENTER_NOTIFY);-
786 PRINT_XCB_EVENT(XCB_LEAVE_NOTIFY);-
787 PRINT_XCB_EVENT(XCB_FOCUS_IN);-
788 PRINT_XCB_EVENT(XCB_FOCUS_OUT);-
789 PRINT_XCB_EVENT(XCB_KEYMAP_NOTIFY);-
790 PRINT_XCB_EVENT(XCB_EXPOSE);-
791 PRINT_XCB_EVENT(XCB_GRAPHICS_EXPOSURE);-
792 PRINT_XCB_EVENT(XCB_NO_EXPOSURE);-
793 PRINT_XCB_EVENT(XCB_VISIBILITY_NOTIFY);-
794 PRINT_XCB_EVENT(XCB_CREATE_NOTIFY);-
795 PRINT_XCB_EVENT(XCB_DESTROY_NOTIFY);-
796 PRINT_XCB_EVENT(XCB_UNMAP_NOTIFY);-
797 PRINT_XCB_EVENT(XCB_MAP_NOTIFY);-
798 PRINT_XCB_EVENT(XCB_MAP_REQUEST);-
799 PRINT_XCB_EVENT(XCB_REPARENT_NOTIFY);-
800 PRINT_XCB_EVENT(XCB_CONFIGURE_NOTIFY);-
801 PRINT_XCB_EVENT(XCB_CONFIGURE_REQUEST);-
802 PRINT_XCB_EVENT(XCB_GRAVITY_NOTIFY);-
803 PRINT_XCB_EVENT(XCB_RESIZE_REQUEST);-
804 PRINT_XCB_EVENT(XCB_CIRCULATE_NOTIFY);-
805 PRINT_XCB_EVENT(XCB_CIRCULATE_REQUEST);-
806 PRINT_XCB_EVENT(XCB_PROPERTY_NOTIFY);-
807 PRINT_XCB_EVENT(XCB_SELECTION_CLEAR);-
808 PRINT_XCB_EVENT(XCB_SELECTION_REQUEST);-
809 PRINT_XCB_EVENT(XCB_SELECTION_NOTIFY);-
810 PRINT_XCB_EVENT(XCB_COLORMAP_NOTIFY);-
811 PRINT_XCB_EVENT(XCB_CLIENT_MESSAGE);-
812 PRINT_XCB_EVENT(XCB_MAPPING_NOTIFY);-
813 PRINT_XCB_EVENT(XCB_GE_GENERIC);-
814 default:-
815 qDebug("QXcbConnection: %s: unknown event - response_type: %d - sequence: %d", message, int(event->response_type & ~0x80), int(event->sequence));-
816 }-
817#else-
818 Q_UNUSED(message);-
819 Q_UNUSED(event);-
820#endif-
821}
executed 240621 times by 117 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
240621
822-
823const char *xcb_errors[] =-
824{-
825 "Success",-
826 "BadRequest",-
827 "BadValue",-
828 "BadWindow",-
829 "BadPixmap",-
830 "BadAtom",-
831 "BadCursor",-
832 "BadFont",-
833 "BadMatch",-
834 "BadDrawable",-
835 "BadAccess",-
836 "BadAlloc",-
837 "BadColor",-
838 "BadGC",-
839 "BadIDChoice",-
840 "BadName",-
841 "BadLength",-
842 "BadImplementation",-
843 "Unknown"-
844};-
845-
846const char *xcb_protocol_request_codes[] =-
847{-
848 "Null",-
849 "CreateWindow",-
850 "ChangeWindowAttributes",-
851 "GetWindowAttributes",-
852 "DestroyWindow",-
853 "DestroySubwindows",-
854 "ChangeSaveSet",-
855 "ReparentWindow",-
856 "MapWindow",-
857 "MapSubwindows",-
858 "UnmapWindow",-
859 "UnmapSubwindows",-
860 "ConfigureWindow",-
861 "CirculateWindow",-
862 "GetGeometry",-
863 "QueryTree",-
864 "InternAtom",-
865 "GetAtomName",-
866 "ChangeProperty",-
867 "DeleteProperty",-
868 "GetProperty",-
869 "ListProperties",-
870 "SetSelectionOwner",-
871 "GetSelectionOwner",-
872 "ConvertSelection",-
873 "SendEvent",-
874 "GrabPointer",-
875 "UngrabPointer",-
876 "GrabButton",-
877 "UngrabButton",-
878 "ChangeActivePointerGrab",-
879 "GrabKeyboard",-
880 "UngrabKeyboard",-
881 "GrabKey",-
882 "UngrabKey",-
883 "AllowEvents",-
884 "GrabServer",-
885 "UngrabServer",-
886 "QueryPointer",-
887 "GetMotionEvents",-
888 "TranslateCoords",-
889 "WarpPointer",-
890 "SetInputFocus",-
891 "GetInputFocus",-
892 "QueryKeymap",-
893 "OpenFont",-
894 "CloseFont",-
895 "QueryFont",-
896 "QueryTextExtents",-
897 "ListFonts",-
898 "ListFontsWithInfo",-
899 "SetFontPath",-
900 "GetFontPath",-
901 "CreatePixmap",-
902 "FreePixmap",-
903 "CreateGC",-
904 "ChangeGC",-
905 "CopyGC",-
906 "SetDashes",-
907 "SetClipRectangles",-
908 "FreeGC",-
909 "ClearArea",-
910 "CopyArea",-
911 "CopyPlane",-
912 "PolyPoint",-
913 "PolyLine",-
914 "PolySegment",-
915 "PolyRectangle",-
916 "PolyArc",-
917 "FillPoly",-
918 "PolyFillRectangle",-
919 "PolyFillArc",-
920 "PutImage",-
921 "GetImage",-
922 "PolyText8",-
923 "PolyText16",-
924 "ImageText8",-
925 "ImageText16",-
926 "CreateColormap",-
927 "FreeColormap",-
928 "CopyColormapAndFree",-
929 "InstallColormap",-
930 "UninstallColormap",-
931 "ListInstalledColormaps",-
932 "AllocColor",-
933 "AllocNamedColor",-
934 "AllocColorCells",-
935 "AllocColorPlanes",-
936 "FreeColors",-
937 "StoreColors",-
938 "StoreNamedColor",-
939 "QueryColors",-
940 "LookupColor",-
941 "CreateCursor",-
942 "CreateGlyphCursor",-
943 "FreeCursor",-
944 "RecolorCursor",-
945 "QueryBestSize",-
946 "QueryExtension",-
947 "ListExtensions",-
948 "ChangeKeyboardMapping",-
949 "GetKeyboardMapping",-
950 "ChangeKeyboardControl",-
951 "GetKeyboardControl",-
952 "Bell",-
953 "ChangePointerControl",-
954 "GetPointerControl",-
955 "SetScreenSaver",-
956 "GetScreenSaver",-
957 "ChangeHosts",-
958 "ListHosts",-
959 "SetAccessControl",-
960 "SetCloseDownMode",-
961 "KillClient",-
962 "RotateProperties",-
963 "ForceScreenSaver",-
964 "SetPointerMapping",-
965 "GetPointerMapping",-
966 "SetModifierMapping",-
967 "GetModifierMapping",-
968 "Unknown"-
969};-
970-
971#ifdef Q_XCB_DEBUG-
972void QXcbConnection::log(const char *file, int line, int sequence)-
973{-
974 QMutexLocker locker(&m_callLogMutex);-
975 CallInfo info;-
976 info.sequence = sequence;-
977 info.file = file;-
978 info.line = line;-
979 m_callLog << info;-
980}-
981#endif-
982-
983void QXcbConnection::handleXcbError(xcb_generic_error_t *error)-
984{-
985 long result = 0;-
986 QAbstractEventDispatcher* dispatcher = QAbstractEventDispatcher::instance();-
987 if (dispatcher && dispatcher->filterNativeEvent(m_nativeInterface->genericEventFilterType(), error, &result))
dispatcherDescription
TRUEnever evaluated
FALSEnever evaluated
dispatcher->fi...rror, &result)Description
TRUEnever evaluated
FALSEnever evaluated
0
988 return;
never executed: return;
0
989-
990 uint clamped_error_code = qMin<uint>(error->error_code, (sizeof(xcb_errors) / sizeof(xcb_errors[0])) - 1);-
991 uint clamped_major_code = qMin<uint>(error->major_code, (sizeof(xcb_protocol_request_codes) / sizeof(xcb_protocol_request_codes[0])) - 1);-
992-
993 qWarning("QXcbConnection: XCB error: %d (%s), sequence: %d, resource id: %d, major code: %d (%s), minor code: %d",-
994 int(error->error_code), xcb_errors[clamped_error_code],-
995 int(error->sequence), int(error->resource_id),-
996 int(error->major_code), xcb_protocol_request_codes[clamped_major_code],-
997 int(error->minor_code));-
998#ifdef Q_XCB_DEBUG-
999 QMutexLocker locker(&m_callLogMutex);-
1000 int i = 0;-
1001 for (; i < m_callLog.size(); ++i) {-
1002 if (m_callLog.at(i).sequence == error->sequence) {-
1003 qDebug("Caused by: %s:%d", qPrintable(m_callLog.at(i).file), m_callLog.at(i).line);-
1004 break;-
1005 } else if (m_callLog.at(i).sequence > error->sequence) {-
1006 qDebug("Caused some time before: %s:%d", qPrintable(m_callLog.at(i).file), m_callLog.at(i).line);-
1007 if (i > 0)-
1008 qDebug("and after: %s:%d", qPrintable(m_callLog.at(i-1).file), m_callLog.at(i-1).line);-
1009 break;-
1010 }-
1011 }-
1012 if (i == m_callLog.size() && !m_callLog.isEmpty())-
1013 qDebug("Caused some time after: %s:%d", qPrintable(m_callLog.first().file), m_callLog.first().line);-
1014#endif-
1015}
never executed: end of block
0
1016-
1017static Qt::MouseButtons translateMouseButtons(int s)-
1018{-
1019 Qt::MouseButtons ret = 0;-
1020 if (s & XCB_BUTTON_MASK_1)
s & XCB_BUTTON_MASK_1Description
TRUEnever evaluated
FALSEnever evaluated
0
1021 ret |= Qt::LeftButton;
never executed: ret |= Qt::LeftButton;
0
1022 if (s & XCB_BUTTON_MASK_2)
s & XCB_BUTTON_MASK_2Description
TRUEnever evaluated
FALSEnever evaluated
0
1023 ret |= Qt::MidButton;
never executed: ret |= Qt::MidButton;
0
1024 if (s & XCB_BUTTON_MASK_3)
s & XCB_BUTTON_MASK_3Description
TRUEnever evaluated
FALSEnever evaluated
0
1025 ret |= Qt::RightButton;
never executed: ret |= Qt::RightButton;
0
1026 return ret;
never executed: return ret;
0
1027}-
1028-
1029Qt::MouseButton QXcbConnection::translateMouseButton(xcb_button_t s)-
1030{-
1031 switch (s) {-
1032 case 1: return Qt::LeftButton;
executed 386 times by 17 tests: return Qt::LeftButton;
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
executed 386 times by 17 tests: case 1:
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
386
1033 case 2: return Qt::MidButton;
executed 386 times by 17 tests: return Qt::MidButton;
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
executed 386 times by 17 tests: case 2:
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
386
1034 case 3: return Qt::RightButton;
executed 386 times by 17 tests: return Qt::RightButton;
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
executed 386 times by 17 tests: case 3:
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
386
1035 // Button values 4-7 were already handled as Wheel events, and won't occur here.-
1036 case 8: return Qt::BackButton; // Also known as Qt::ExtraButton1
executed 386 times by 17 tests: return Qt::BackButton;
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
executed 386 times by 17 tests: case 8:
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
386
1037 case 9: return Qt::ForwardButton; // Also known as Qt::ExtraButton2
executed 386 times by 17 tests: return Qt::ForwardButton;
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
executed 386 times by 17 tests: case 9:
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
386
1038 case 10: return Qt::ExtraButton3;
executed 386 times by 17 tests: return Qt::ExtraButton3;
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
executed 386 times by 17 tests: case 10:
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
386
1039 case 11: return Qt::ExtraButton4;
executed 386 times by 17 tests: return Qt::ExtraButton4;
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
executed 386 times by 17 tests: case 11:
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
386
1040 case 12: return Qt::ExtraButton5;
executed 386 times by 17 tests: return Qt::ExtraButton5;
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
executed 386 times by 17 tests: case 12:
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
386
1041 case 13: return Qt::ExtraButton6;
executed 386 times by 17 tests: return Qt::ExtraButton6;
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
executed 386 times by 17 tests: case 13:
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
386
1042 case 14: return Qt::ExtraButton7;
executed 386 times by 17 tests: return Qt::ExtraButton7;
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
executed 386 times by 17 tests: case 14:
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
386
1043 case 15: return Qt::ExtraButton8;
executed 386 times by 17 tests: return Qt::ExtraButton8;
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
executed 386 times by 17 tests: case 15:
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
386
1044 case 16: return Qt::ExtraButton9;
never executed: return Qt::ExtraButton9;
never executed: case 16:
0
1045 case 17: return Qt::ExtraButton10;
never executed: return Qt::ExtraButton10;
never executed: case 17:
0
1046 case 18: return Qt::ExtraButton11;
never executed: return Qt::ExtraButton11;
never executed: case 18:
0
1047 case 19: return Qt::ExtraButton12;
never executed: return Qt::ExtraButton12;
never executed: case 19:
0
1048 case 20: return Qt::ExtraButton13;
never executed: return Qt::ExtraButton13;
never executed: case 20:
0
1049 case 21: return Qt::ExtraButton14;
never executed: return Qt::ExtraButton14;
never executed: case 21:
0
1050 case 22: return Qt::ExtraButton15;
never executed: return Qt::ExtraButton15;
never executed: case 22:
0
1051 case 23: return Qt::ExtraButton16;
never executed: return Qt::ExtraButton16;
never executed: case 23:
0
1052 case 24: return Qt::ExtraButton17;
never executed: return Qt::ExtraButton17;
never executed: case 24:
0
1053 case 25: return Qt::ExtraButton18;
never executed: return Qt::ExtraButton18;
never executed: case 25:
0
1054 case 26: return Qt::ExtraButton19;
never executed: return Qt::ExtraButton19;
never executed: case 26:
0
1055 case 27: return Qt::ExtraButton20;
never executed: return Qt::ExtraButton20;
never executed: case 27:
0
1056 case 28: return Qt::ExtraButton21;
never executed: return Qt::ExtraButton21;
never executed: case 28:
0
1057 case 29: return Qt::ExtraButton22;
never executed: return Qt::ExtraButton22;
never executed: case 29:
0
1058 case 30: return Qt::ExtraButton23;
never executed: return Qt::ExtraButton23;
never executed: case 30:
0
1059 case 31: return Qt::ExtraButton24;
never executed: return Qt::ExtraButton24;
never executed: case 31:
0
1060 default: return Qt::NoButton;
executed 1544 times by 17 tests: return Qt::NoButton;
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
executed 1544 times by 17 tests: default:
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
1544
1061 }-
1062}-
1063-
1064#ifndef QT_NO_XKB-
1065namespace {-
1066 typedef union {-
1067 /* All XKB events share these fields. */-
1068 struct {-
1069 uint8_t response_type;-
1070 uint8_t xkbType;-
1071 uint16_t sequence;-
1072 xcb_timestamp_t time;-
1073 uint8_t deviceID;-
1074 } any;-
1075 xcb_xkb_new_keyboard_notify_event_t new_keyboard_notify;-
1076 xcb_xkb_map_notify_event_t map_notify;-
1077 xcb_xkb_state_notify_event_t state_notify;-
1078 } _xkb_event;-
1079}-
1080#endif-
1081-
1082void QXcbConnection::handleXcbEvent(xcb_generic_event_t *event)-
1083{-
1084#ifdef Q_XCB_DEBUG-
1085 {-
1086 QMutexLocker locker(&m_callLogMutex);-
1087 int i = 0;-
1088 for (; i < m_callLog.size(); ++i)-
1089 if (m_callLog.at(i).sequence >= event->sequence)-
1090 break;-
1091 m_callLog.remove(0, i);-
1092 }-
1093#endif-
1094-
1095 long result = 0;-
1096 QAbstractEventDispatcher* dispatcher = QAbstractEventDispatcher::instance();-
1097 bool handled = dispatcher && dispatcher->filterNativeEvent(m_nativeInterface->genericEventFilterType(), event, &result);
dispatcherDescription
TRUEevaluated 240611 times by 113 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
FALSEevaluated 10 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_qclipboard - unknown status
  • tst_qlineedit - unknown status
  • tst_qplaintextedit - unknown status
  • tst_qtextedit - unknown status
dispatcher->fi...vent, &result)Description
TRUEnever evaluated
FALSEevaluated 240611 times by 113 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
0-240611
1098-
1099 uint response_type = event->response_type & ~0x80;-
1100-
1101 if (!handled) {
!handledDescription
TRUEevaluated 240621 times by 117 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
FALSEnever evaluated
0-240621
1102 switch (response_type) {-
1103 case XCB_EXPOSE:
executed 651 times by 43 tests: case 12:
Executed by:
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QPainter
  • ...
651
1104 HANDLE_PLATFORM_WINDOW_EVENT(xcb_expose_event_t, window, handleExposeEvent);
executed 323 times by 20 tests: eventListener->handleExposeEvent(e);
Executed by:
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QCompleter
  • tst_QDialog
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMessageBox
  • tst_QOpenGLWindow
  • tst_QPushButton
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
  • tst_languageChange
executed 323 times by 20 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QCompleter
  • tst_QDialog
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMessageBox
  • tst_QOpenGLWindow
  • tst_QPushButton
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
  • tst_languageChange
executed 651 times by 43 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QPainter
  • ...
QXcbWindowEven...mId(e->window)Description
TRUEevaluated 323 times by 20 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QCompleter
  • tst_QDialog
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMessageBox
  • tst_QOpenGLWindow
  • tst_QPushButton
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
  • tst_languageChange
FALSEevaluated 328 times by 37 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QListView
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QOpenGLWidget
  • tst_QPainter
  • tst_QPlainTextEdit
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • ...
!handledDescription
TRUEevaluated 323 times by 20 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QCompleter
  • tst_QDialog
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMessageBox
  • tst_QOpenGLWindow
  • tst_QPushButton
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
  • tst_languageChange
FALSEnever evaluated
0-651
1105-
1106 // press/release/motion is only delivered here when XI 2.2+ is _not_ in use-
1107 case XCB_BUTTON_PRESS: {
never executed: case 4:
0
1108 xcb_button_press_event_t *ev = (xcb_button_press_event_t *)event;-
1109 m_keyboard->updateXKBStateFromCore(ev->state);-
1110 // the event explicitly contains the state of the three first buttons,-
1111 // the rest we need to manage ourselves-
1112 m_buttons = (m_buttons & ~0x7) | translateMouseButtons(ev->state);-
1113 m_buttons |= translateMouseButton(ev->detail);-
1114 if (Q_UNLIKELY(lcQpaXInputEvents().isDebugEnabled()))
__builtin_expe...led()), false)Description
TRUEnever evaluated
FALSEnever evaluated
0
1115 qCDebug(lcQpaXInputEvents, "legacy mouse press, button %d state %X", ev->detail, static_cast<unsigned int>(m_buttons));
never executed: QMessageLogger(__FILE__, 1115, __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("legacy mouse press, button %d state %X", ev->detail, static_cast<unsigned int>(m_buttons));
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
1116 HANDLE_PLATFORM_WINDOW_EVENT(xcb_button_press_event_t, event, handleButtonPressEvent);
never executed: eventListener->handleButtonPressEvent(e);
never executed: end of block
never executed: break;
QXcbWindowEven...omId(e->event)Description
TRUEnever evaluated
FALSEnever evaluated
!handledDescription
TRUEnever evaluated
FALSEnever evaluated
0
1117 }-
1118 case XCB_BUTTON_RELEASE: {
never executed: case 5:
0
1119 xcb_button_release_event_t *ev = (xcb_button_release_event_t *)event;-
1120 m_keyboard->updateXKBStateFromCore(ev->state);-
1121 m_buttons = (m_buttons & ~0x7) | translateMouseButtons(ev->state);-
1122 m_buttons &= ~translateMouseButton(ev->detail);-
1123 if (Q_UNLIKELY(lcQpaXInputEvents().isDebugEnabled()))
__builtin_expe...led()), false)Description
TRUEnever evaluated
FALSEnever evaluated
0
1124 qCDebug(lcQpaXInputEvents, "legacy mouse release, button %d state %X", ev->detail, static_cast<unsigned int>(m_buttons));
never executed: QMessageLogger(__FILE__, 1124, __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("legacy mouse release, button %d state %X", ev->detail, static_cast<unsigned int>(m_buttons));
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
1125 HANDLE_PLATFORM_WINDOW_EVENT(xcb_button_release_event_t, event, handleButtonReleaseEvent);
never executed: eventListener->handleButtonReleaseEvent(e);
never executed: end of block
never executed: break;
QXcbWindowEven...omId(e->event)Description
TRUEnever evaluated
FALSEnever evaluated
!handledDescription
TRUEnever evaluated
FALSEnever evaluated
0
1126 }-
1127 case XCB_MOTION_NOTIFY: {
never executed: case 6:
0
1128 xcb_motion_notify_event_t *ev = (xcb_motion_notify_event_t *)event;-
1129 m_keyboard->updateXKBStateFromCore(ev->state);-
1130 m_buttons = (m_buttons & ~0x7) | translateMouseButtons(ev->state);-
1131 if (Q_UNLIKELY(lcQpaXInputEvents().isDebugEnabled()))
__builtin_expe...led()), false)Description
TRUEnever evaluated
FALSEnever evaluated
0
1132 qCDebug(lcQpaXInputEvents, "legacy mouse move %d,%d button %d state %X", ev->event_x, ev->event_y,
never executed: QMessageLogger( __FILE__ , 1133 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("legacy mouse move %d,%d button %d state %X", ev->event_x, ev->event_y, ev->detail, static_cast<unsigned int>(m_buttons)) ;
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
1133 ev->detail, static_cast<unsigned int>(m_buttons));
never executed: QMessageLogger( __FILE__ , 1133 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("legacy mouse move %d,%d button %d state %X", ev->event_x, ev->event_y, ev->detail, static_cast<unsigned int>(m_buttons)) ;
0
1134 HANDLE_PLATFORM_WINDOW_EVENT(xcb_motion_notify_event_t, event, handleMotionNotifyEvent);
never executed: eventListener->handleMotionNotifyEvent(e);
never executed: end of block
never executed: break;
QXcbWindowEven...omId(e->event)Description
TRUEnever evaluated
FALSEnever evaluated
!handledDescription
TRUEnever evaluated
FALSEnever evaluated
0
1135 }-
1136-
1137 case XCB_CONFIGURE_NOTIFY:
executed 6535 times by 109 tests: case 22:
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
6535
1138 HANDLE_PLATFORM_WINDOW_EVENT(xcb_configure_notify_event_t, event, handleConfigureNotifyEvent);
executed 5816 times by 108 tests: eventListener->handleConfigureNotifyEvent(e);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
executed 5816 times by 108 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
executed 6535 times by 109 tests: break;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
QXcbWindowEven...omId(e->event)Description
TRUEevaluated 5816 times by 108 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
FALSEevaluated 719 times by 68 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFormLayout
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • ...
!handledDescription
TRUEevaluated 5816 times by 108 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
0-6535
1139 case XCB_MAP_NOTIFY:
executed 2735 times by 106 tests: case 19:
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2735
1140 HANDLE_PLATFORM_WINDOW_EVENT(xcb_map_notify_event_t, event, handleMapNotifyEvent);
executed 2514 times by 104 tests: eventListener->handleMapNotifyEvent(e);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
executed 2514 times by 104 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
executed 2735 times by 106 tests: break;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
QXcbWindowEven...omId(e->event)Description
TRUEevaluated 2514 times by 104 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 221 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QListView
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QPainter
  • tst_QPlainTextEdit
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTabWidget
  • tst_QTableView
  • ...
!handledDescription
TRUEevaluated 2514 times by 104 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEnever evaluated
0-2735
1141 case XCB_UNMAP_NOTIFY:
executed 2573 times by 89 tests: case 18:
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsAnchorLayout
  • ...
2573
1142 HANDLE_PLATFORM_WINDOW_EVENT(xcb_unmap_notify_event_t, event, handleUnmapNotifyEvent);
executed 85 times by 28 tests: eventListener->handleUnmapNotifyEvent(e);
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QLabel
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QScrollBar
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QWidget
  • ...
executed 85 times by 28 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QLabel
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QScrollBar
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QWidget
  • ...
executed 2573 times by 89 tests: break;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsAnchorLayout
  • ...
QXcbWindowEven...omId(e->event)Description
TRUEevaluated 85 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QLabel
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QScrollBar
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QWidget
  • ...
FALSEevaluated 2488 times by 89 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsAnchorLayout
  • ...
!handledDescription
TRUEevaluated 85 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QLabel
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QScrollBar
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QWidget
  • ...
FALSEnever evaluated
0-2573
1143 case XCB_DESTROY_NOTIFY:
executed 3767 times by 98 tests: case 17:
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • ...
3767
1144 HANDLE_PLATFORM_WINDOW_EVENT(xcb_destroy_notify_event_t, event, handleDestroyNotifyEvent);
never executed: eventListener->handleDestroyNotifyEvent(e);
never executed: end of block
executed 3767 times by 98 tests: break;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • ...
QXcbWindowEven...omId(e->event)Description
TRUEnever evaluated
FALSEevaluated 3767 times by 98 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • ...
!handledDescription
TRUEnever evaluated
FALSEnever evaluated
0-3767
1145 case XCB_CLIENT_MESSAGE:
executed 4076 times by 97 tests: case 33:
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
4076
1146 handleClientMessageEvent((xcb_client_message_event_t *)event);-
1147 break;
executed 4076 times by 97 tests: break;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
4076
1148 case XCB_ENTER_NOTIFY:
executed 829 times by 69 tests: case 7:
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
829
1149#ifdef XCB_USE_XINPUT22-
1150 if (isAtLeastXI22() && xi2MouseEvents())
isAtLeastXI22()Description
TRUEevaluated 829 times by 69 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
FALSEnever evaluated
xi2MouseEvents()Description
TRUEevaluated 829 times by 69 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
FALSEnever evaluated
0-829
1151 break;
executed 829 times by 69 tests: break;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
829
1152#endif-
1153 HANDLE_PLATFORM_WINDOW_EVENT(xcb_enter_notify_event_t, event, handleEnterNotifyEvent);
never executed: eventListener->handleEnterNotifyEvent(e);
never executed: end of block
never executed: break;
QXcbWindowEven...omId(e->event)Description
TRUEnever evaluated
FALSEnever evaluated
!handledDescription
TRUEnever evaluated
FALSEnever evaluated
0
1154 case XCB_LEAVE_NOTIFY:
executed 785 times by 58 tests: case 8:
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QItemView
  • tst_QLabel
  • tst_QLineEdit
  • ...
785
1155#ifdef XCB_USE_XINPUT22-
1156 if (isAtLeastXI22() && xi2MouseEvents())
isAtLeastXI22()Description
TRUEevaluated 785 times by 58 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QItemView
  • tst_QLabel
  • tst_QLineEdit
  • ...
FALSEnever evaluated
xi2MouseEvents()Description
TRUEevaluated 785 times by 58 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QItemView
  • tst_QLabel
  • tst_QLineEdit
  • ...
FALSEnever evaluated
0-785
1157 break;
executed 785 times by 58 tests: break;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QItemView
  • tst_QLabel
  • tst_QLineEdit
  • ...
785
1158#endif-
1159 m_keyboard->updateXKBStateFromCore(((xcb_leave_notify_event_t *)event)->state);-
1160 HANDLE_PLATFORM_WINDOW_EVENT(xcb_leave_notify_event_t, event, handleLeaveNotifyEvent);
never executed: eventListener->handleLeaveNotifyEvent(e);
never executed: end of block
never executed: break;
QXcbWindowEven...omId(e->event)Description
TRUEnever evaluated
FALSEnever evaluated
!handledDescription
TRUEnever evaluated
FALSEnever evaluated
0
1161 case XCB_FOCUS_IN:
executed 3358 times by 105 tests: case 9:
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
3358
1162 HANDLE_PLATFORM_WINDOW_EVENT(xcb_focus_in_event_t, event, handleFocusInEvent);
executed 2617 times by 103 tests: eventListener->handleFocusInEvent(e);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
executed 2617 times by 103 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
executed 3358 times by 105 tests: break;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
QXcbWindowEven...omId(e->event)Description
TRUEevaluated 2617 times by 103 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 741 times by 61 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QInputDialog
  • tst_QItemView
  • ...
!handledDescription
TRUEevaluated 2617 times by 103 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEnever evaluated
0-3358
1163 case XCB_FOCUS_OUT:
executed 2760 times by 89 tests: case 10:
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsAnchorLayout
  • ...
2760
1164 HANDLE_PLATFORM_WINDOW_EVENT(xcb_focus_out_event_t, event, handleFocusOutEvent);
executed 415 times by 48 tests: eventListener->handleFocusOutEvent(e);
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMdiArea
  • ...
executed 415 times by 48 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMdiArea
  • ...
executed 2760 times by 89 tests: break;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsAnchorLayout
  • ...
QXcbWindowEven...omId(e->event)Description
TRUEevaluated 415 times by 48 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMdiArea
  • ...
FALSEevaluated 2345 times by 88 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsAnchorLayout
  • ...
!handledDescription
TRUEevaluated 415 times by 48 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMdiArea
  • ...
FALSEnever evaluated
0-2760
1165 case XCB_KEY_PRESS:
never executed: case 2:
0
1166 {-
1167 xcb_key_press_event_t *kp = (xcb_key_press_event_t *)event;-
1168 m_keyboard->updateXKBStateFromCore(kp->state);-
1169 setTime(kp->time);-
1170 HANDLE_KEYBOARD_EVENT(xcb_key_press_event_t, handleKeyPressEvent);
never executed: m_keyboard->handleKeyPressEvent(e);
never executed: end of block
never executed: break;
QXcbWindowEven...omId(e->event)Description
TRUEnever evaluated
FALSEnever evaluated
!handledDescription
TRUEnever evaluated
FALSEnever evaluated
0
1171 }-
1172 case XCB_KEY_RELEASE:
never executed: case 3:
0
1173 m_keyboard->updateXKBStateFromCore(((xcb_key_release_event_t *)event)->state);-
1174 HANDLE_KEYBOARD_EVENT(xcb_key_release_event_t, handleKeyReleaseEvent);
never executed: m_keyboard->handleKeyReleaseEvent(e);
never executed: end of block
never executed: break;
QXcbWindowEven...omId(e->event)Description
TRUEnever evaluated
FALSEnever evaluated
!handledDescription
TRUEnever evaluated
FALSEnever evaluated
0
1175 case XCB_MAPPING_NOTIFY:
never executed: case 34:
0
1176 m_keyboard->handleMappingNotifyEvent((xcb_mapping_notify_event_t *)event);-
1177 break;
never executed: break;
0
1178 case XCB_SELECTION_REQUEST:
executed 10 times by 5 tests: case 30:
Executed by:
  • tst_QApplication
  • tst_qclipboard - unknown status
  • tst_qlineedit - unknown status
  • tst_qplaintextedit - unknown status
  • tst_qtextedit - unknown status
10
1179 {-
1180 xcb_selection_request_event_t *sr = (xcb_selection_request_event_t *)event;-
1181#ifndef QT_NO_DRAGANDDROP-
1182 if (sr->selection == atom(QXcbAtom::XdndSelection))
sr->selection ...XdndSelection)Description
TRUEnever evaluated
FALSEevaluated 10 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_qclipboard - unknown status
  • tst_qlineedit - unknown status
  • tst_qplaintextedit - unknown status
  • tst_qtextedit - unknown status
0-10
1183 m_drag->handleSelectionRequest(sr);
never executed: m_drag->handleSelectionRequest(sr);
0
1184 else-
1185#endif-
1186 {-
1187#ifndef QT_NO_CLIPBOARD-
1188 m_clipboard->handleSelectionRequest(sr);-
1189#endif-
1190 }
executed 10 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_qclipboard - unknown status
  • tst_qlineedit - unknown status
  • tst_qplaintextedit - unknown status
  • tst_qtextedit - unknown status
10
1191 break;
executed 10 times by 5 tests: break;
Executed by:
  • tst_QApplication
  • tst_qclipboard - unknown status
  • tst_qlineedit - unknown status
  • tst_qplaintextedit - unknown status
  • tst_qtextedit - unknown status
10
1192 }-
1193 case XCB_SELECTION_CLEAR:
executed 15 times by 3 tests: case 29:
Executed by:
  • tst_QClipboard
  • tst_QPlainTextEdit
  • tst_QTextEdit
15
1194 setTime(((xcb_selection_clear_event_t *)event)->time);-
1195#ifndef QT_NO_CLIPBOARD-
1196 m_clipboard->handleSelectionClearRequest((xcb_selection_clear_event_t *)event);-
1197#endif-
1198 handled = true;-
1199 break;
executed 15 times by 3 tests: break;
Executed by:
  • tst_QClipboard
  • tst_QPlainTextEdit
  • tst_QTextEdit
15
1200 case XCB_SELECTION_NOTIFY:
never executed: case 31:
0
1201 setTime(((xcb_selection_notify_event_t *)event)->time);-
1202 handled = false;-
1203 break;
never executed: break;
0
1204 case XCB_PROPERTY_NOTIFY:
executed 207475 times by 113 tests: case 28:
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
207475
1205 {-
1206 xcb_property_notify_event_t *pn = (xcb_property_notify_event_t *)event;-
1207 if (pn->atom == atom(QXcbAtom::_NET_WORKAREA)) {
pn->atom == at..._NET_WORKAREA)Description
TRUEnever evaluated
FALSEevaluated 207475 times by 113 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
0-207475
1208 QXcbVirtualDesktop *virtualDesktop = virtualDesktopForRootWindow(pn->window);-
1209 if (virtualDesktop)
virtualDesktopDescription
TRUEnever evaluated
FALSEnever evaluated
0
1210 virtualDesktop->updateWorkArea();
never executed: virtualDesktop->updateWorkArea();
0
1211 } else {
never executed: end of block
0
1212 HANDLE_PLATFORM_WINDOW_EVENT(xcb_property_notify_event_t, window, handlePropertyNotifyEvent);
executed 103172 times by 112 tests: eventListener->handlePropertyNotifyEvent(e);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
executed 103172 times by 112 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
executed 207475 times by 113 tests: break;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
QXcbWindowEven...mId(e->window)Description
TRUEevaluated 103172 times by 112 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
FALSEevaluated 104303 times by 101 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
!handledDescription
TRUEevaluated 103172 times by 112 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
FALSEnever evaluated
0-207475
1213 }-
1214 break;
never executed: break;
0
1215 }-
1216#if defined(XCB_USE_XINPUT2)-
1217 case XCB_GE_GENERIC:
executed 2085 times by 69 tests: case 35:
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
2085
1218 // Here the windowEventListener is invoked from xi2HandleEvent()-
1219 if (m_xi2Enabled && isXIEvent(event, m_xiOpCode))
m_xi2EnabledDescription
TRUEevaluated 2085 times by 69 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
FALSEnever evaluated
isXIEvent(event, m_xiOpCode)Description
TRUEevaluated 2085 times by 69 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
FALSEnever evaluated
0-2085
1220 xi2HandleEvent(reinterpret_cast<xcb_ge_event_t *>(event));
executed 2085 times by 69 tests: xi2HandleEvent(reinterpret_cast<xcb_ge_event_t *>(event));
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
2085
1221 break;
executed 2085 times by 69 tests: break;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
2085
1222#endif-
1223 default:
executed 2967 times by 108 tests: default:
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
2967
1224 handled = false;-
1225 break;
executed 2967 times by 108 tests: break;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
2967
1226 }-
1227 }-
1228-
1229 if (!handled) {
!handledDescription
TRUEevaluated 240606 times by 117 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
FALSEevaluated 15 times by 3 tests
Evaluated by:
  • tst_QClipboard
  • tst_QPlainTextEdit
  • tst_QTextEdit
15-240606
1230 if (response_type == xfixes_first_event + XCB_XFIXES_SELECTION_NOTIFY) {
response_type ...irst_event + 0Description
TRUEevaluated 67 times by 6 tests
Evaluated by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QTextEdit
FALSEevaluated 240539 times by 117 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
67-240539
1231 xcb_xfixes_selection_notify_event_t *notify_event = (xcb_xfixes_selection_notify_event_t *)event;-
1232 setTime(notify_event->timestamp);-
1233#ifndef QT_NO_CLIPBOARD-
1234 m_clipboard->handleXFixesSelectionRequest(notify_event);-
1235#endif-
1236 foreach (QXcbVirtualDesktop *virtualDesktop, m_virtualDesktops)-
1237 virtualDesktop->handleXFixesSelectionNotify(notify_event);
executed 67 times by 6 tests: virtualDesktop->handleXFixesSelectionNotify(notify_event);
Executed by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QTextEdit
67
1238-
1239 handled = true;-
1240 } else if (has_randr_extension && response_type == xrandr_first_event + XCB_RANDR_NOTIFY) {
executed 67 times by 6 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QTextEdit
has_randr_extensionDescription
TRUEevaluated 240539 times by 117 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
FALSEnever evaluated
response_type ...irst_event + 1Description
TRUEnever evaluated
FALSEevaluated 240539 times by 117 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
0-240539
1241 updateScreens((xcb_randr_notify_event_t *)event);-
1242 handled = true;-
1243 } else if (has_randr_extension && response_type == xrandr_first_event + XCB_RANDR_SCREEN_CHANGE_NOTIFY) {
never executed: end of block
has_randr_extensionDescription
TRUEevaluated 240539 times by 117 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
FALSEnever evaluated
response_type ...irst_event + 0Description
TRUEnever evaluated
FALSEevaluated 240539 times by 117 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
0-240539
1244 xcb_randr_screen_change_notify_event_t *change_event = (xcb_randr_screen_change_notify_event_t *)event;-
1245 foreach (QXcbScreen *s, m_screens) {-
1246 if (s->root() == change_event->root )
s->root() == c...ge_event->rootDescription
TRUEnever evaluated
FALSEnever evaluated
0
1247 s->handleScreenChange(change_event);
never executed: s->handleScreenChange(change_event);
0
1248 }
never executed: end of block
0
1249 handled = true;-
1250#ifndef QT_NO_XKB-
1251 } else if (response_type == xkb_first_event) { // https://bugs.freedesktop.org/show_bug.cgi?id=51295
never executed: end of block
response_type ...kb_first_eventDescription
TRUEnever evaluated
FALSEevaluated 240539 times by 117 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
0-240539
1252 _xkb_event *xkb_event = reinterpret_cast<_xkb_event *>(event);-
1253 if (xkb_event->any.deviceID == m_keyboard->coreDeviceId()) {
xkb_event->any...coreDeviceId()Description
TRUEnever evaluated
FALSEnever evaluated
0
1254 switch (xkb_event->any.xkbType) {-
1255 // XkbNewKkdNotify and XkbMapNotify together capture all sorts of keymap-
1256 // updates (e.g. xmodmap, xkbcomp, setxkbmap), with minimal redundent recompilations.-
1257 case XCB_XKB_STATE_NOTIFY:
never executed: case 2:
0
1258 m_keyboard->updateXKBState(&xkb_event->state_notify);-
1259 handled = true;-
1260 break;
never executed: break;
0
1261 case XCB_XKB_MAP_NOTIFY:
never executed: case 1:
0
1262 m_keyboard->handleMappingNotifyEvent(&xkb_event->map_notify);-
1263 handled = true;-
1264 break;
never executed: break;
0
1265 case XCB_XKB_NEW_KEYBOARD_NOTIFY: {
never executed: case 0:
0
1266 xcb_xkb_new_keyboard_notify_event_t *ev = &xkb_event->new_keyboard_notify;-
1267 if (ev->changed & XCB_XKB_NKN_DETAIL_KEYCODES)
ev->changed & ...ETAIL_KEYCODESDescription
TRUEnever evaluated
FALSEnever evaluated
0
1268 m_keyboard->updateKeymap();
never executed: m_keyboard->updateKeymap();
0
1269 break;
never executed: break;
0
1270 }-
1271 default:
never executed: default:
0
1272 break;
never executed: break;
0
1273 }-
1274 }-
1275#endif-
1276 }
never executed: end of block
0
1277 }
executed 240606 times by 117 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
240606
1278-
1279 if (!handled && m_glIntegration)
!handledDescription
TRUEevaluated 240539 times by 117 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
FALSEevaluated 82 times by 6 tests
Evaluated by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QTextEdit
m_glIntegrationDescription
TRUEevaluated 240539 times by 117 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
FALSEnever evaluated
0-240539
1280 handled = m_glIntegration->handleXcbEvent(event, response_type);
executed 240539 times by 117 tests: handled = m_glIntegration->handleXcbEvent(event, response_type);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
240539
1281-
1282 if (handled)
handledDescription
TRUEevaluated 82 times by 6 tests
Evaluated by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QTextEdit
FALSEevaluated 240539 times by 117 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
82-240539
1283 printXcbEvent("Handled XCB event", event);
executed 82 times by 6 tests: printXcbEvent("Handled XCB event", event);
Executed by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QTextEdit
82
1284 else-
1285 printXcbEvent("Unhandled XCB event", event);
executed 240539 times by 117 tests: printXcbEvent("Unhandled XCB event", event);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
240539
1286}-
1287-
1288void QXcbConnection::addPeekFunc(PeekFunc f)-
1289{-
1290 m_peekFuncs.append(f);-
1291}
executed 2549 times by 103 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2549
1292-
1293QXcbEventReader::QXcbEventReader(QXcbConnection *connection)-
1294 : m_connection(connection)-
1295{-
1296 checkXcbPollForQueuedEvent();-
1297}
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
1298-
1299void QXcbEventReader::start()-
1300{-
1301 if (local_xcb_poll_for_queued_event) {
local_xcb_poll...r_queued_eventDescription
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
0-129
1302 connect(this, SIGNAL(eventPending()), m_connection, SLOT(processXcbEvents()), Qt::QueuedConnection);-
1303 connect(this, SIGNAL(finished()), m_connection, SLOT(processXcbEvents()));-
1304 QThread::start();-
1305 } else {
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
1306 // Must be done after we have an event-dispatcher. By posting a method invocation-
1307 // we are sure that by the time the method is called we have an event-dispatcher.-
1308 QMetaObject::invokeMethod(this, "registerForEvents", Qt::QueuedConnection);-
1309 }
never executed: end of block
0
1310}-
1311-
1312void QXcbEventReader::registerForEvents()-
1313{-
1314 QSocketNotifier *notifier = new QSocketNotifier(xcb_get_file_descriptor(m_connection->xcb_connection()), QSocketNotifier::Read, this);-
1315 connect(notifier, SIGNAL(activated(int)), m_connection, SLOT(processXcbEvents()));-
1316-
1317 QAbstractEventDispatcher *dispatcher = QGuiApplicationPrivate::eventDispatcher;-
1318 connect(dispatcher, SIGNAL(aboutToBlock()), m_connection, SLOT(processXcbEvents()));-
1319 connect(dispatcher, SIGNAL(awake()), m_connection, SLOT(processXcbEvents()));-
1320}
never executed: end of block
0
1321-
1322void QXcbEventReader::registerEventDispatcher(QAbstractEventDispatcher *dispatcher)-
1323{-
1324 // flush the xcb connection before the EventDispatcher is going to block-
1325 // In the non-threaded case processXcbEvents is called before going to block,-
1326 // which flushes the connection.-
1327 if (local_xcb_poll_for_queued_event)
local_xcb_poll...r_queued_eventDescription
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
0-129
1328 connect(dispatcher, SIGNAL(aboutToBlock()), m_connection, SLOT(flush()));
executed 129 times by 5 tests: connect(dispatcher, qFlagLocation("2""aboutToBlock()" "\0" __FILE__ ":" "1328"), m_connection, qFlagLocation("1""flush()" "\0" __FILE__ ":" "1328"));
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
1329}
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
1330-
1331void QXcbEventReader::run()-
1332{-
1333 xcb_generic_event_t *event;-
1334 while (m_connection && (event = xcb_wait_for_event(m_connection->xcb_connection()))) {
m_connectionDescription
TRUEevaluated 123207 times by 156 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • ...
FALSEevaluated 341 times by 220 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
(event = xcb_w...connection()))Description
TRUEevaluated 123419 times by 343 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • ...
FALSEnever evaluated
0-123419
1335 m_mutex.lock();-
1336 addEvent(event);-
1337 while (m_connection && (event = local_xcb_poll_for_queued_event(m_connection->xcb_connection())))
m_connectionDescription
TRUEevaluated 258762 times by 240 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • ...
FALSEevaluated 341 times by 220 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
(event = local...connection()))Description
TRUEevaluated 135684 times by 234 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • ...
FALSEevaluated 123078 times by 155 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • ...
341-258762
1338 addEvent(event);
executed 135684 times by 234 tests: addEvent(event);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • ...
135684
1339 m_mutex.unlock();-
1340 emit eventPending();-
1341 }
executed 123419 times by 343 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • ...
123419
1342-
1343 m_mutex.lock();-
1344 for (int i = 0; i < m_events.size(); ++i)
i < m_events.size()Description
TRUEevaluated 14923 times by 220 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
FALSEevaluated 341 times by 220 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
341-14923
1345 free(m_events.at(i));
executed 14923 times by 220 tests: free(m_events.at(i));
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
14923
1346 m_events.clear();-
1347 m_mutex.unlock();-
1348}
executed 341 times by 220 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
341
1349-
1350void QXcbEventReader::addEvent(xcb_generic_event_t *event)-
1351{-
1352 if ((event->response_type & ~0x80) == XCB_CLIENT_MESSAGE
(event->respon...& ~0x80) == 33Description
TRUEevaluated 4483 times by 321 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
FALSEevaluated 254620 times by 240 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • ...
4483-254620
1353 && ((xcb_client_message_event_t *)event)->type == m_connection->atom(QXcbAtom::_QT_CLOSE_CONNECTION))
((xcb_client_m...SE_CONNECTION)Description
TRUEevaluated 341 times by 220 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
FALSEevaluated 4142 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
341-4142
1354 m_connection = 0;
executed 341 times by 220 tests: m_connection = 0;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
341
1355 m_events << event;-
1356}
executed 259103 times by 343 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • ...
259103
1357-
1358QXcbEventArray *QXcbEventReader::lock()-
1359{-
1360 m_mutex.lock();-
1361 if (!local_xcb_poll_for_queued_event) {
!local_xcb_pol...r_queued_eventDescription
TRUEnever evaluated
FALSEevaluated 363833 times by 118 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
0-363833
1362 while (xcb_generic_event_t *event = xcb_poll_for_event(m_connection->xcb_connection()))
xcb_generic_ev..._connection())Description
TRUEnever evaluated
FALSEnever evaluated
0
1363 m_events << event;
never executed: m_events << event;
0
1364 }
never executed: end of block
0
1365 return &m_events;
executed 363833 times by 118 tests: return &m_events;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
363833
1366}-
1367-
1368void QXcbEventReader::unlock()-
1369{-
1370 m_mutex.unlock();-
1371}
executed 363833 times by 118 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
363833
1372-
1373void QXcbConnection::setFocusWindow(QXcbWindow *w)-
1374{-
1375 m_focusWindow = w;-
1376}
executed 5646 times by 105 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
5646
1377void QXcbConnection::setMouseGrabber(QXcbWindow *w)-
1378{-
1379 m_mouseGrabber = w;-
1380 m_mousePressWindow = Q_NULLPTR;-
1381}
executed 368 times by 21 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidgetAction
368
1382void QXcbConnection::setMousePressWindow(QXcbWindow *w)-
1383{-
1384 m_mousePressWindow = w;-
1385}
never executed: end of block
0
1386-
1387void QXcbConnection::grabServer()-
1388{-
1389 if (m_canGrabServer)
m_canGrabServerDescription
TRUEevaluated 19 times by 19 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QWidget
FALSEnever evaluated
0-19
1390 xcb_grab_server(m_connection);
executed 19 times by 19 tests: xcb_grab_server(m_connection);
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QWidget
19
1391}
executed 19 times by 19 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QWidget
19
1392-
1393void QXcbConnection::ungrabServer()-
1394{-
1395 if (m_canGrabServer)
m_canGrabServerDescription
TRUEevaluated 19 times by 19 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QWidget
FALSEnever evaluated
0-19
1396 xcb_ungrab_server(m_connection);
executed 19 times by 19 tests: xcb_ungrab_server(m_connection);
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QWidget
19
1397}
executed 19 times by 19 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QWidget
19
1398-
1399void QXcbConnection::sendConnectionEvent(QXcbAtom::Atom a, uint id)-
1400{-
1401 xcb_client_message_event_t event;-
1402 memset(&event, 0, sizeof(event));-
1403-
1404 const xcb_window_t eventListener = xcb_generate_id(m_connection);-
1405 xcb_screen_iterator_t it = xcb_setup_roots_iterator(m_setup);-
1406 xcb_screen_t *screen = it.data;-
1407 Q_XCB_CALL(xcb_create_window(m_connection, XCB_COPY_FROM_PARENT,-
1408 eventListener, screen->root,-
1409 0, 0, 1, 1, 0, XCB_WINDOW_CLASS_INPUT_ONLY,-
1410 screen->root_visual, 0, 0));-
1411-
1412 event.response_type = XCB_CLIENT_MESSAGE;-
1413 event.format = 32;-
1414 event.sequence = 0;-
1415 event.window = eventListener;-
1416 event.type = atom(a);-
1417 event.data.data32[0] = id;-
1418-
1419 Q_XCB_CALL(xcb_send_event(xcb_connection(), false, eventListener, XCB_EVENT_MASK_NO_EVENT, (const char *)&event));-
1420 Q_XCB_CALL(xcb_destroy_window(m_connection, eventListener));-
1421 xcb_flush(xcb_connection());-
1422}
executed 341 times by 220 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
341
1423-
1424namespace-
1425{-
1426 class PropertyNotifyEvent {-
1427 public:-
1428 PropertyNotifyEvent(xcb_window_t win, xcb_atom_t property)-
1429 : window(win), type(XCB_PROPERTY_NOTIFY), atom(property) {}
executed 5 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QTextEdit
5
1430 xcb_window_t window;-
1431 int type;-
1432 xcb_atom_t atom;-
1433 bool checkEvent(xcb_generic_event_t *event) const {-
1434 if (!event)
!eventDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QApplication
FALSEevaluated 54 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QTextEdit
2-54
1435 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QApplication
2
1436 if ((event->response_type & ~0x80) != type) {
(event->respon...~0x80) != typeDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QApplication
FALSEevaluated 45 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QTextEdit
9-45
1437 return false;
executed 9 times by 1 test: return false;
Executed by:
  • tst_QApplication
9
1438 } else {-
1439 xcb_property_notify_event_t *pn = (xcb_property_notify_event_t *)event;-
1440 if ((pn->window == window) && (pn->atom == atom))
(pn->window == window)Description
TRUEevaluated 12 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QTextEdit
FALSEevaluated 33 times by 1 test
Evaluated by:
  • tst_QApplication
(pn->atom == atom)Description
TRUEevaluated 5 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QTextEdit
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QApplication
5-33
1441 return true;
executed 5 times by 5 tests: return true;
Executed by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QTextEdit
5
1442 }
executed 40 times by 1 test: end of block
Executed by:
  • tst_QApplication
40
1443 return false;
executed 40 times by 1 test: return false;
Executed by:
  • tst_QApplication
40
1444 }-
1445 };-
1446}-
1447-
1448xcb_timestamp_t QXcbConnection::getTimestamp()-
1449{-
1450 // send a dummy event to myself to get the timestamp from X server.-
1451 xcb_window_t root_win = rootWindow();-
1452 xcb_change_property(xcb_connection(), XCB_PROP_MODE_APPEND, root_win, atom(QXcbAtom::CLIP_TEMPORARY),-
1453 XCB_ATOM_INTEGER, 32, 0, NULL);-
1454-
1455 connection()->flush();-
1456 PropertyNotifyEvent checker(root_win, atom(QXcbAtom::CLIP_TEMPORARY));-
1457-
1458 xcb_generic_event_t *event = 0;-
1459 // lets keep this inside a loop to avoid a possible race condition, where-
1460 // reader thread has not yet had the time to acquire the mutex in order-
1461 // to add the new set of events to its event queue-
1462 while (!event) {
!eventDescription
TRUEevaluated 5 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QTextEdit
FALSEevaluated 5 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QTextEdit
5
1463 connection()->sync();-
1464 event = checkEvent(checker);-
1465 }
executed 5 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QTextEdit
5
1466-
1467 xcb_property_notify_event_t *pn = (xcb_property_notify_event_t *)event;-
1468 xcb_timestamp_t timestamp = pn->time;-
1469 free(event);-
1470-
1471 xcb_delete_property(xcb_connection(), root_win, atom(QXcbAtom::CLIP_TEMPORARY));-
1472-
1473 return timestamp;
executed 5 times by 5 tests: return timestamp;
Executed by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QTextEdit
5
1474}-
1475-
1476xcb_window_t QXcbConnection::getSelectionOwner(xcb_atom_t atom) const-
1477{-
1478 xcb_connection_t *c = xcb_connection();-
1479 xcb_get_selection_owner_cookie_t cookie = xcb_get_selection_owner(c, atom);-
1480 xcb_get_selection_owner_reply_t *reply;-
1481 reply = xcb_get_selection_owner_reply(c, cookie, 0);-
1482 xcb_window_t win = reply->owner;-
1483 free(reply);-
1484 return win;
executed 346 times by 11 tests: return win;
Executed by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
346
1485}-
1486-
1487xcb_window_t QXcbConnection::getQtSelectionOwner()-
1488{-
1489 if (!m_qtSelectionOwner) {
!m_qtSelectionOwnerDescription
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
1490 xcb_screen_t *xcbScreen = primaryVirtualDesktop()->screen();-
1491 int x = 0, y = 0, w = 3, h = 3;-
1492 m_qtSelectionOwner = xcb_generate_id(xcb_connection());-
1493 Q_XCB_CALL(xcb_create_window(xcb_connection(),-
1494 XCB_COPY_FROM_PARENT, // depth -- same as root-
1495 m_qtSelectionOwner, // window id-
1496 xcbScreen->root, // parent window id-
1497 x, y, w, h,-
1498 0, // border width-
1499 XCB_WINDOW_CLASS_INPUT_OUTPUT, // window class-
1500 xcbScreen->root_visual, // visual-
1501 0, // value mask-
1502 0)); // value list-
1503 }
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
1504 return m_qtSelectionOwner;
executed 258 times by 5 tests: return m_qtSelectionOwner;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
258
1505}-
1506-
1507xcb_window_t QXcbConnection::rootWindow()-
1508{-
1509 QXcbScreen *s = primaryScreen();-
1510 return s ? s->root() : 0;
executed 4354 times by 134 tests: return s ? s->root() : 0;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
sDescription
TRUEevaluated 4354 times by 134 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
FALSEnever evaluated
0-4354
1511}-
1512-
1513xcb_window_t QXcbConnection::clientLeader()-
1514{-
1515 if (m_clientLeader == 0) {
m_clientLeader == 0Description
TRUEevaluated 156 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEevaluated 4365 times by 108 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
156-4365
1516 m_clientLeader = xcb_generate_id(xcb_connection());-
1517 QXcbScreen *screen = primaryScreen();-
1518 Q_XCB_CALL(xcb_create_window(xcb_connection(),-
1519 XCB_COPY_FROM_PARENT,-
1520 m_clientLeader,-
1521 screen->root(),-
1522 0, 0, 1, 1,-
1523 0,-
1524 XCB_WINDOW_CLASS_INPUT_OUTPUT,-
1525 screen->screen()->root_visual,-
1526 0, 0));-
1527#ifndef QT_NO_DEBUG-
1528 QByteArray ba("Qt client leader window");-
1529 Q_XCB_CALL(xcb_change_property(xcb_connection(),-
1530 XCB_PROP_MODE_REPLACE,-
1531 m_clientLeader,-
1532 atom(QXcbAtom::_NET_WM_NAME),-
1533 atom(QXcbAtom::UTF8_STRING),-
1534 8,-
1535 ba.length(),-
1536 ba.constData()));-
1537#endif-
1538 Q_XCB_CALL(xcb_change_property(xcb_connection(),-
1539 XCB_PROP_MODE_REPLACE,-
1540 m_clientLeader,-
1541 atom(QXcbAtom::WM_CLIENT_LEADER),-
1542 XCB_ATOM_WINDOW,-
1543 32,-
1544 1,-
1545 &m_clientLeader));-
1546-
1547#if !defined(QT_NO_SESSIONMANAGER) && defined(XCB_USE_SM)-
1548 // If we are session managed, inform the window manager about it-
1549 QByteArray session = qGuiApp->sessionId().toLatin1();-
1550 if (!session.isEmpty()) {
!session.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 156 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
0-156
1551 Q_XCB_CALL(xcb_change_property(xcb_connection(),-
1552 XCB_PROP_MODE_REPLACE,-
1553 m_clientLeader,-
1554 atom(QXcbAtom::SM_CLIENT_ID),-
1555 XCB_ATOM_STRING,-
1556 8,-
1557 session.length(),-
1558 session.constData()));-
1559 }
never executed: end of block
0
1560#endif-
1561 }
executed 156 times by 125 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
156
1562 return m_clientLeader;
executed 4521 times by 125 tests: return m_clientLeader;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
4521
1563}-
1564-
1565#ifdef XCB_USE_XLIB-
1566void *QXcbConnection::xlib_display() const-
1567{-
1568 return m_xlib_display;
executed 283563 times by 132 tests: return m_xlib_display;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • ...
283563
1569}-
1570-
1571void *QXcbConnection::createVisualInfoForDefaultVisualId() const-
1572{-
1573 if (m_defaultVisualId == UINT_MAX)
m_defaultVisua...647 * 2U + 1U)Description
TRUEnever evaluated
FALSEnever evaluated
0
1574 return 0;
never executed: return 0;
0
1575 XVisualInfo info;-
1576 memset(&info, 0, sizeof info);-
1577 info.visualid = m_defaultVisualId;-
1578-
1579 int count = 0;-
1580 XVisualInfo *retVisual = XGetVisualInfo(DISPLAY_FROM_XCB(this), VisualIDMask, &info, &count);-
1581 Q_ASSERT(count < 2);-
1582 return retVisual;
never executed: return retVisual;
0
1583}-
1584-
1585#endif-
1586-
1587#if defined(XCB_USE_XINPUT2)-
1588// it is safe to cast XI_* events here as long as we are only touching the first 32 bytes,-
1589// after that position event needs memmove, see xi2PrepareXIGenericDeviceEvent-
1590static inline bool isXIType(xcb_generic_event_t *event, int opCode, uint16_t type)-
1591{-
1592 if (!isXIEvent(event, opCode))
!isXIEvent(event, opCode)Description
TRUEevaluated 1477 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QItemView
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
FALSEevaluated 3937 times by 69 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
1477-3937
1593 return false;
executed 1477 times by 11 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QItemView
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
1477
1594-
1595 xXIGenericDeviceEvent *xiEvent = reinterpret_cast<xXIGenericDeviceEvent *>(event);-
1596 return xiEvent->evtype == type;
executed 3937 times by 69 tests: return xiEvent->evtype == type;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
3937
1597}-
1598#endif-
1599static inline bool isValid(xcb_generic_event_t *event)-
1600{-
1601 return event && (event->response_type & ~0x80);
executed 344631 times by 109 tests: return event && (event->response_type & ~0x80);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
eventDescription
TRUEevaluated 344554 times by 109 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
FALSEevaluated 77 times by 10 tests
Evaluated by:
  • tst_QApplication
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QTreeWidget
  • tst_QWidget
(event->response_type & ~0x80)Description
TRUEevaluated 344554 times by 109 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
FALSEnever evaluated
0-344631
1602}-
1603-
1604/*! \internal-
1605-
1606 Compresses events of the same type to avoid swamping the event queue.-
1607 If event compression is not desired there are several options what developers can do:-
1608-
1609 1) Write responsive applications. We drop events that have been buffered in the event-
1610 queue while waiting on unresponsive GUI thread.-
1611 2) Use QAbstractNativeEventFilter to get all events from X connection. This is not optimal-
1612 because it requires working with native event types.-
1613 3) Or add public API to Qt for disabling event compression QTBUG-44964-
1614-
1615*/-
1616bool QXcbConnection::compressEvent(xcb_generic_event_t *event, int currentIndex, QXcbEventArray *eventqueue) const-
1617{-
1618 uint responseType = event->response_type & ~0x80;-
1619 int nextIndex = currentIndex + 1;-
1620-
1621 if (responseType == XCB_MOTION_NOTIFY) {
responseType == 6Description
TRUEnever evaluated
FALSEevaluated 241505 times by 113 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
0-241505
1622 // compress XCB_MOTION_NOTIFY notify events-
1623 for (int j = nextIndex; j < eventqueue->size(); ++j) {
j < eventqueue->size()Description
TRUEnever evaluated
FALSEnever evaluated
0
1624 xcb_generic_event_t *next = eventqueue->at(j);-
1625 if (!isValid(next))
!isValid(next)Description
TRUEnever evaluated
FALSEnever evaluated
0
1626 continue;
never executed: continue;
0
1627 if (next->response_type == XCB_MOTION_NOTIFY)
next->response_type == 6Description
TRUEnever evaluated
FALSEnever evaluated
0
1628 return true;
never executed: return true;
0
1629 }
never executed: end of block
0
1630 return false;
never executed: return false;
0
1631 }-
1632#if defined(XCB_USE_XINPUT2)-
1633 // compress XI_* events-
1634 if (responseType == XCB_GE_GENERIC) {
responseType == 35Description
TRUEevaluated 2155 times by 69 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
FALSEevaluated 239350 times by 113 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
2155-239350
1635 if (!m_xi2Enabled)
!m_xi2EnabledDescription
TRUEnever evaluated
FALSEevaluated 2155 times by 69 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
0-2155
1636 return false;
never executed: return false;
0
1637-
1638 // compress XI_Motion, but not from tablet devices-
1639 if (isXIType(event, m_xiOpCode, XI_Motion)) {
isXIType(event, m_xiOpCode, 6)Description
TRUEevaluated 480 times by 18 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
FALSEevaluated 1675 times by 69 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
480-1675
1640#ifndef QT_NO_TABLETEVENT-
1641 xXIDeviceEvent *xdev = reinterpret_cast<xXIDeviceEvent *>(event);-
1642 if (const_cast<QXcbConnection *>(this)->tabletDataForDevice(xdev->sourceid))
const_cast<QXc...dev->sourceid)Description
TRUEnever evaluated
FALSEevaluated 480 times by 18 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
0-480
1643 return false;
never executed: return false;
0
1644#endif // QT_NO_TABLETEVENT-
1645 for (int j = nextIndex; j < eventqueue->size(); ++j) {
j < eventqueue->size()Description
TRUEevaluated 1584 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QItemView
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
FALSEevaluated 410 times by 18 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
410-1584
1646 xcb_generic_event_t *next = eventqueue->at(j);-
1647 if (!isValid(next))
!isValid(next)Description
TRUEnever evaluated
FALSEevaluated 1584 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QItemView
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
0-1584
1648 continue;
never executed: continue;
0
1649 if (isXIType(next, m_xiOpCode, XI_Motion))
isXIType(next, m_xiOpCode, 6)Description
TRUEevaluated 70 times by 4 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemView
  • tst_QMenuBar
  • tst_QTableView
FALSEevaluated 1514 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QItemView
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
70-1514
1650 return true;
executed 70 times by 4 tests: return true;
Executed by:
  • tst_QAbstractItemView
  • tst_QItemView
  • tst_QMenuBar
  • tst_QTableView
70
1651 }
executed 1514 times by 11 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QItemView
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
1514
1652 return false;
executed 410 times by 18 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWidget
  • tst_QWindow
410
1653 }-
1654#ifdef XCB_USE_XINPUT22-
1655 // compress XI_TouchUpdate for the same touch point id-
1656 if (isXIType(event, m_xiOpCode, XI_TouchUpdate)) {
isXIType(event..._xiOpCode, 19)Description
TRUEnever evaluated
FALSEevaluated 1675 times by 69 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
0-1675
1657 xXIDeviceEvent *xiDeviceEvent = reinterpret_cast<xXIDeviceEvent *>(event);-
1658 uint32_t id = xiDeviceEvent->detail % INT_MAX;-
1659 for (int j = nextIndex; j < eventqueue->size(); ++j) {
j < eventqueue->size()Description
TRUEnever evaluated
FALSEnever evaluated
0
1660 xcb_generic_event_t *next = eventqueue->at(j);-
1661 if (!isValid(next))
!isValid(next)Description
TRUEnever evaluated
FALSEnever evaluated
0
1662 continue;
never executed: continue;
0
1663 if (isXIType(next, m_xiOpCode, XI_TouchUpdate)) {
isXIType(next, m_xiOpCode, 19)Description
TRUEnever evaluated
FALSEnever evaluated
0
1664 xXIDeviceEvent *xiDeviceNextEvent = reinterpret_cast<xXIDeviceEvent *>(next);-
1665 if (id == xiDeviceNextEvent->detail % INT_MAX)
id == xiDevice...l % 2147483647Description
TRUEnever evaluated
FALSEnever evaluated
0
1666 return true;
never executed: return true;
0
1667 }
never executed: end of block
0
1668 }
never executed: end of block
0
1669 return false;
never executed: return false;
0
1670 }-
1671#endif-
1672 return false;
executed 1675 times by 69 tests: return false;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
1675
1673 }-
1674#endif-
1675 if (responseType == XCB_CONFIGURE_NOTIFY) {
responseType == 22Description
TRUEevaluated 7359 times by 109 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
FALSEevaluated 231991 times by 113 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
7359-231991
1676 // compress multiple configure notify events for the same window-
1677 for (int j = nextIndex; j < eventqueue->size(); ++j) {
j < eventqueue->size()Description
TRUEevaluated 343047 times by 109 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
FALSEevaluated 6535 times by 109 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
6535-343047
1678 xcb_generic_event_t *next = eventqueue->at(j);-
1679 if (isValid(next) && next->response_type == XCB_CONFIGURE_NOTIFY
isValid(next)Description
TRUEevaluated 342970 times by 109 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
FALSEevaluated 77 times by 10 tests
Evaluated by:
  • tst_QApplication
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QTreeWidget
  • tst_QWidget
next->response_type == 22Description
TRUEevaluated 5715 times by 85 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • ...
FALSEevaluated 337255 times by 109 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
77-342970
1680 && ((xcb_configure_notify_event_t *)next)->event == ((xcb_configure_notify_event_t*)event)->event)
((xcb_configur...)event)->eventDescription
TRUEevaluated 824 times by 80 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • ...
FALSEevaluated 4891 times by 50 tests
Evaluated by:
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • ...
824-4891
1681 {-
1682 return true;
executed 824 times by 80 tests: return true;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • ...
824
1683 }-
1684 }
executed 342223 times by 109 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
342223
1685 return false;
executed 6535 times by 109 tests: return false;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
6535
1686 }-
1687-
1688 return false;
executed 231991 times by 113 tests: return false;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
231991
1689}-
1690-
1691void QXcbConnection::processXcbEvents()-
1692{-
1693 int connection_error = xcb_connection_has_error(xcb_connection());-
1694 if (connection_error) {
connection_errorDescription
TRUEnever evaluated
FALSEevaluated 117565 times by 113 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
0-117565
1695 qWarning("The X11 connection broke (error %d). Did the X11 server die?", connection_error);-
1696 exit(1);
never executed: exit(1);
0
1697 }-
1698-
1699 QXcbEventArray *eventqueue = m_reader->lock();-
1700-
1701 for (int i = 0; i < eventqueue->size(); ++i) {
i < eventqueue->size()Description
TRUEevaluated 244166 times by 113 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
FALSEevaluated 117565 times by 113 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
117565-244166
1702 xcb_generic_event_t *event = eventqueue->at(i);-
1703 if (!event)
!eventDescription
TRUEevaluated 2661 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
FALSEevaluated 241505 times by 113 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
2661-241505
1704 continue;
executed 2661 times by 106 tests: continue;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
2661
1705 QScopedPointer<xcb_generic_event_t, QScopedPointerPodDeleter> eventGuard(event);-
1706 (*eventqueue)[i] = 0;-
1707-
1708 if (!(event->response_type & ~0x80)) {
!(event->respo..._type & ~0x80)Description
TRUEnever evaluated
FALSEevaluated 241505 times by 113 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
0-241505
1709 handleXcbError((xcb_generic_error_t *)event);-
1710 continue;
never executed: continue;
0
1711 }-
1712-
1713 if (compressEvent(event, i, eventqueue))
compressEvent(...i, eventqueue)Description
TRUEevaluated 894 times by 80 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • ...
FALSEevaluated 240611 times by 113 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
894-240611
1714 continue;
executed 894 times by 80 tests: continue;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • ...
894
1715-
1716 bool accepted = false;-
1717 if (clipboard()->processIncr())
clipboard()->processIncr()Description
TRUEnever evaluated
FALSEevaluated 240611 times by 113 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
0-240611
1718 clipboard()->incrTransactionPeeker(event, accepted);
never executed: clipboard()->incrTransactionPeeker(event, accepted);
0
1719 if (accepted)
acceptedDescription
TRUEnever evaluated
FALSEevaluated 240611 times by 113 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
0-240611
1720 continue;
never executed: continue;
0
1721-
1722 QVector<PeekFunc>::iterator it = m_peekFuncs.begin();-
1723 while (it != m_peekFuncs.end()) {
it != m_peekFuncs.end()Description
TRUEevaluated 118494 times by 84 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsEffect
  • ...
FALSEevaluated 240611 times by 113 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
118494-240611
1724 // These callbacks return true if the event is what they were-
1725 // waiting for, remove them from the list in that case.-
1726 if ((*it)(this, event))
(*it)(this, event)Description
TRUEevaluated 451 times by 43 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • ...
FALSEevaluated 118043 times by 84 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsEffect
  • ...
451-118043
1727 it = m_peekFuncs.erase(it);
executed 451 times by 43 tests: it = m_peekFuncs.erase(it);
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • ...
451
1728 else-
1729 ++it;
executed 118043 times by 84 tests: ++it;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsEffect
  • ...
118043
1730 }-
1731 m_reader->unlock();-
1732 handleXcbEvent(event);-
1733 m_reader->lock();-
1734 }
executed 240611 times by 113 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
240611
1735-
1736 eventqueue->clear();-
1737-
1738 m_reader->unlock();-
1739-
1740 // Indicate with a null event that the event the callbacks are waiting for-
1741 // is not in the queue currently.-
1742 Q_FOREACH (PeekFunc f, m_peekFuncs)-
1743 f(this, 0);
executed 1995 times by 81 tests: f(this, 0);
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • ...
1995
1744 m_peekFuncs.clear();-
1745-
1746 xcb_flush(xcb_connection());-
1747}
executed 117565 times by 113 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
117565
1748-
1749void QXcbConnection::handleClientMessageEvent(const xcb_client_message_event_t *event)-
1750{-
1751 if (event->format != 32)
event->format != 32Description
TRUEnever evaluated
FALSEevaluated 4076 times by 97 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
0-4076
1752 return;
never executed: return;
0
1753-
1754#ifndef QT_NO_DRAGANDDROP-
1755 if (event->type == atom(QXcbAtom::XdndStatus)) {
event->type ==...m::XdndStatus)Description
TRUEnever evaluated
FALSEevaluated 4076 times by 97 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
0-4076
1756 drag()->handleStatus(event);-
1757 } else if (event->type == atom(QXcbAtom::XdndFinished)) {
never executed: end of block
event->type ==...:XdndFinished)Description
TRUEnever evaluated
FALSEevaluated 4076 times by 97 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
0-4076
1758 drag()->handleFinished(event);-
1759 }
never executed: end of block
0
1760#endif-
1761 if (m_systemTrayTracker && event->type == atom(QXcbAtom::MANAGER))
m_systemTrayTrackerDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QSystemTrayIcon
FALSEevaluated 4074 times by 96 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
event->type ==...Atom::MANAGER)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QSystemTrayIcon
0-4074
1762 m_systemTrayTracker->notifyManagerClientMessageEvent(event);
never executed: m_systemTrayTracker->notifyManagerClientMessageEvent(event);
0
1763-
1764 QXcbWindow *window = platformWindowFromId(event->window);-
1765 if (!window)
!windowDescription
TRUEevaluated 842 times by 52 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QLabel
  • ...
FALSEevaluated 3234 times by 94 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
842-3234
1766 return;
executed 842 times by 52 tests: return;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QLabel
  • ...
842
1767-
1768 window->handleClientMessageEvent(event);-
1769}
executed 3234 times by 94 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
3234
1770-
1771xcb_generic_event_t *QXcbConnection::checkEvent(int type)-
1772{-
1773 QXcbEventArray *eventqueue = m_reader->lock();-
1774-
1775 for (int i = 0; i < eventqueue->size(); ++i) {
i < eventqueue->size()Description
TRUEnever evaluated
FALSEnever evaluated
0
1776 xcb_generic_event_t *event = eventqueue->at(i);-
1777 if (event && event->response_type == type) {
eventDescription
TRUEnever evaluated
FALSEnever evaluated
event->response_type == typeDescription
TRUEnever evaluated
FALSEnever evaluated
0
1778 (*eventqueue)[i] = 0;-
1779 m_reader->unlock();-
1780 return event;
never executed: return event;
0
1781 }-
1782 }
never executed: end of block
0
1783-
1784 m_reader->unlock();-
1785-
1786 return 0;
never executed: return 0;
0
1787}-
1788-
1789static const char * xcb_atomnames = {-
1790 // window-manager <-> client protocols-
1791 "WM_PROTOCOLS\0"-
1792 "WM_DELETE_WINDOW\0"-
1793 "WM_TAKE_FOCUS\0"-
1794 "_NET_WM_PING\0"-
1795 "_NET_WM_CONTEXT_HELP\0"-
1796 "_NET_WM_SYNC_REQUEST\0"-
1797 "_NET_WM_SYNC_REQUEST_COUNTER\0"-
1798 "MANAGER\0"-
1799 "_NET_SYSTEM_TRAY_OPCODE\0"-
1800-
1801 // ICCCM window state-
1802 "WM_STATE\0"-
1803 "WM_CHANGE_STATE\0"-
1804 "WM_CLASS\0"-
1805 "WM_NAME\0"-
1806-
1807 // Session management-
1808 "WM_CLIENT_LEADER\0"-
1809 "WM_WINDOW_ROLE\0"-
1810 "SM_CLIENT_ID\0"-
1811-
1812 // Clipboard-
1813 "CLIPBOARD\0"-
1814 "INCR\0"-
1815 "TARGETS\0"-
1816 "MULTIPLE\0"-
1817 "TIMESTAMP\0"-
1818 "SAVE_TARGETS\0"-
1819 "CLIP_TEMPORARY\0"-
1820 "_QT_SELECTION\0"-
1821 "_QT_CLIPBOARD_SENTINEL\0"-
1822 "_QT_SELECTION_SENTINEL\0"-
1823 "CLIPBOARD_MANAGER\0"-
1824-
1825 "RESOURCE_MANAGER\0"-
1826-
1827 "_XSETROOT_ID\0"-
1828-
1829 "_QT_SCROLL_DONE\0"-
1830 "_QT_INPUT_ENCODING\0"-
1831-
1832 "_QT_CLOSE_CONNECTION\0"-
1833-
1834 "_MOTIF_WM_HINTS\0"-
1835-
1836 "DTWM_IS_RUNNING\0"-
1837 "ENLIGHTENMENT_DESKTOP\0"-
1838 "_DT_SAVE_MODE\0"-
1839 "_SGI_DESKS_MANAGER\0"-
1840-
1841 // EWMH (aka NETWM)-
1842 "_NET_SUPPORTED\0"-
1843 "_NET_VIRTUAL_ROOTS\0"-
1844 "_NET_WORKAREA\0"-
1845-
1846 "_NET_MOVERESIZE_WINDOW\0"-
1847 "_NET_WM_MOVERESIZE\0"-
1848-
1849 "_NET_WM_NAME\0"-
1850 "_NET_WM_ICON_NAME\0"-
1851 "_NET_WM_ICON\0"-
1852-
1853 "_NET_WM_PID\0"-
1854-
1855 "_NET_WM_WINDOW_OPACITY\0"-
1856-
1857 "_NET_WM_STATE\0"-
1858 "_NET_WM_STATE_ABOVE\0"-
1859 "_NET_WM_STATE_BELOW\0"-
1860 "_NET_WM_STATE_FULLSCREEN\0"-
1861 "_NET_WM_STATE_MAXIMIZED_HORZ\0"-
1862 "_NET_WM_STATE_MAXIMIZED_VERT\0"-
1863 "_NET_WM_STATE_MODAL\0"-
1864 "_NET_WM_STATE_STAYS_ON_TOP\0"-
1865 "_NET_WM_STATE_DEMANDS_ATTENTION\0"-
1866-
1867 "_NET_WM_USER_TIME\0"-
1868 "_NET_WM_USER_TIME_WINDOW\0"-
1869 "_NET_WM_FULL_PLACEMENT\0"-
1870-
1871 "_NET_WM_WINDOW_TYPE\0"-
1872 "_NET_WM_WINDOW_TYPE_DESKTOP\0"-
1873 "_NET_WM_WINDOW_TYPE_DOCK\0"-
1874 "_NET_WM_WINDOW_TYPE_TOOLBAR\0"-
1875 "_NET_WM_WINDOW_TYPE_MENU\0"-
1876 "_NET_WM_WINDOW_TYPE_UTILITY\0"-
1877 "_NET_WM_WINDOW_TYPE_SPLASH\0"-
1878 "_NET_WM_WINDOW_TYPE_DIALOG\0"-
1879 "_NET_WM_WINDOW_TYPE_DROPDOWN_MENU\0"-
1880 "_NET_WM_WINDOW_TYPE_POPUP_MENU\0"-
1881 "_NET_WM_WINDOW_TYPE_TOOLTIP\0"-
1882 "_NET_WM_WINDOW_TYPE_NOTIFICATION\0"-
1883 "_NET_WM_WINDOW_TYPE_COMBO\0"-
1884 "_NET_WM_WINDOW_TYPE_DND\0"-
1885 "_NET_WM_WINDOW_TYPE_NORMAL\0"-
1886 "_KDE_NET_WM_WINDOW_TYPE_OVERRIDE\0"-
1887-
1888 "_KDE_NET_WM_FRAME_STRUT\0"-
1889 "_NET_FRAME_EXTENTS\0"-
1890-
1891 "_NET_STARTUP_INFO\0"-
1892 "_NET_STARTUP_INFO_BEGIN\0"-
1893-
1894 "_NET_SUPPORTING_WM_CHECK\0"-
1895-
1896 "_NET_WM_CM_S0\0"-
1897-
1898 "_NET_SYSTEM_TRAY_VISUAL\0"-
1899-
1900 "_NET_ACTIVE_WINDOW\0"-
1901-
1902 // Property formats-
1903 "TEXT\0"-
1904 "UTF8_STRING\0"-
1905 "CARDINAL\0"-
1906-
1907 // xdnd-
1908 "XdndEnter\0"-
1909 "XdndPosition\0"-
1910 "XdndStatus\0"-
1911 "XdndLeave\0"-
1912 "XdndDrop\0"-
1913 "XdndFinished\0"-
1914 "XdndTypeList\0"-
1915 "XdndActionList\0"-
1916-
1917 "XdndSelection\0"-
1918-
1919 "XdndAware\0"-
1920 "XdndProxy\0"-
1921-
1922 "XdndActionCopy\0"-
1923 "XdndActionLink\0"-
1924 "XdndActionMove\0"-
1925 "XdndActionPrivate\0"-
1926-
1927 // Motif DND-
1928 "_MOTIF_DRAG_AND_DROP_MESSAGE\0"-
1929 "_MOTIF_DRAG_INITIATOR_INFO\0"-
1930 "_MOTIF_DRAG_RECEIVER_INFO\0"-
1931 "_MOTIF_DRAG_WINDOW\0"-
1932 "_MOTIF_DRAG_TARGETS\0"-
1933-
1934 "XmTRANSFER_SUCCESS\0"-
1935 "XmTRANSFER_FAILURE\0"-
1936-
1937 // Xkb-
1938 "_XKB_RULES_NAMES\0"-
1939-
1940 // XEMBED-
1941 "_XEMBED\0"-
1942 "_XEMBED_INFO\0"-
1943-
1944 // XInput2-
1945 "Button Left\0"-
1946 "Button Middle\0"-
1947 "Button Right\0"-
1948 "Button Wheel Up\0"-
1949 "Button Wheel Down\0"-
1950 "Button Horiz Wheel Left\0"-
1951 "Button Horiz Wheel Right\0"-
1952 "Abs MT Position X\0"-
1953 "Abs MT Position Y\0"-
1954 "Abs MT Touch Major\0"-
1955 "Abs MT Touch Minor\0"-
1956 "Abs MT Orientation\0"-
1957 "Abs MT Pressure\0"-
1958 "Abs MT Tracking ID\0"-
1959 "Max Contacts\0"-
1960 "Rel X\0"-
1961 "Rel Y\0"-
1962 // XInput2 tablet-
1963 "Abs X\0"-
1964 "Abs Y\0"-
1965 "Abs Pressure\0"-
1966 "Abs Tilt X\0"-
1967 "Abs Tilt Y\0"-
1968 "Abs Wheel\0"-
1969 "Abs Distance\0"-
1970 "Wacom Serial IDs\0"-
1971 "INTEGER\0"-
1972 "Rel Horiz Wheel\0"-
1973 "Rel Vert Wheel\0"-
1974 "Rel Horiz Scroll\0"-
1975 "Rel Vert Scroll\0"-
1976 "_XSETTINGS_SETTINGS\0"-
1977 "_COMPIZ_DECOR_PENDING\0"-
1978 "_COMPIZ_DECOR_REQUEST\0"-
1979 "_COMPIZ_DECOR_DELETE_PIXMAP\0"-
1980 "_COMPIZ_TOOLKIT_ACTION\0"-
1981 "_GTK_LOAD_ICONTHEMES\0"-
1982 // \0\0 terminates loop.-
1983};-
1984-
1985QXcbAtom::Atom QXcbConnection::qatom(xcb_atom_t xatom) const-
1986{-
1987 return static_cast<QXcbAtom::Atom>(std::find(m_allAtoms, m_allAtoms + QXcbAtom::NAtoms, xatom) - m_allAtoms);
executed 11880 times by 71 tests: return static_cast<QXcbAtom::Atom>(std::find(m_allAtoms, m_allAtoms + QXcbAtom::NAtoms, xatom) - m_allAtoms);
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
11880
1988}-
1989-
1990void QXcbConnection::initializeAllAtoms() {-
1991 const char *names[QXcbAtom::NAtoms];-
1992 const char *ptr = xcb_atomnames;-
1993-
1994 int i = 0;-
1995 while (*ptr) {
*ptrDescription
TRUEevaluated 18963 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129-18963
1996 names[i++] = ptr;-
1997 while (*ptr)
*ptrDescription
TRUEevaluated 318243 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 18963 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
18963-318243
1998 ++ptr;
executed 318243 times by 5 tests: ++ptr;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
318243
1999 ++ptr;-
2000 }
executed 18963 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
18963
2001-
2002 Q_ASSERT(i == QXcbAtom::NPredefinedAtoms);-
2003-
2004 QByteArray settings_atom_name("_QT_SETTINGS_TIMESTAMP_");-
2005 settings_atom_name += m_displayName;-
2006 names[i++] = settings_atom_name;-
2007-
2008 xcb_intern_atom_cookie_t cookies[QXcbAtom::NAtoms];-
2009-
2010 Q_ASSERT(i == QXcbAtom::NAtoms);-
2011 for (i = 0; i < QXcbAtom::NAtoms; ++i)
i < QXcbAtom::NAtomsDescription
TRUEevaluated 19092 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129-19092
2012 cookies[i] = xcb_intern_atom(xcb_connection(), false, strlen(names[i]), names[i]);
executed 19092 times by 5 tests: cookies[i] = xcb_intern_atom(xcb_connection(), false, strlen(names[i]), names[i]);
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
19092
2013-
2014 for (i = 0; i < QXcbAtom::NAtoms; ++i) {
i < QXcbAtom::NAtomsDescription
TRUEevaluated 19092 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129-19092
2015 xcb_intern_atom_reply_t *reply = xcb_intern_atom_reply(xcb_connection(), cookies[i], 0);-
2016 m_allAtoms[i] = reply->atom;-
2017 free(reply);-
2018 }
executed 19092 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
19092
2019}
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
2020-
2021xcb_atom_t QXcbConnection::internAtom(const char *name)-
2022{-
2023 if (!name || *name == 0)
!nameDescription
TRUEnever evaluated
FALSEevaluated 333 times by 133 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
*name == 0Description
TRUEnever evaluated
FALSEevaluated 333 times by 133 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
0-333
2024 return XCB_NONE;
never executed: return 0L;
0
2025-
2026 xcb_intern_atom_cookie_t cookie = xcb_intern_atom(xcb_connection(), false, strlen(name), name);-
2027 xcb_intern_atom_reply_t *reply = xcb_intern_atom_reply(xcb_connection(), cookie, 0);-
2028 int atom = reply->atom;-
2029 free(reply);-
2030 return atom;
executed 333 times by 133 tests: return atom;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
333
2031}-
2032-
2033QByteArray QXcbConnection::atomName(xcb_atom_t atom)-
2034{-
2035 if (!atom)
!atomDescription
TRUEnever evaluated
FALSEevaluated 1713 times by 10 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_QStyleSheetStyle
  • tst_qapplication - unknown status
  • tst_qclipboard - unknown status
  • tst_qlineedit - unknown status
  • tst_qplaintextedit - unknown status
  • tst_qprocess - unknown status
  • tst_qtextedit - unknown status
  • tst_selftests - unknown status
0-1713
2036 return QByteArray();
never executed: return QByteArray();
0
2037-
2038 xcb_generic_error_t *error = 0;-
2039 xcb_get_atom_name_cookie_t cookie = Q_XCB_CALL(xcb_get_atom_name(xcb_connection(), atom));-
2040 xcb_get_atom_name_reply_t *reply = xcb_get_atom_name_reply(xcb_connection(), cookie, &error);-
2041 if (error) {
errorDescription
TRUEnever evaluated
FALSEevaluated 1713 times by 10 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_QStyleSheetStyle
  • tst_qapplication - unknown status
  • tst_qclipboard - unknown status
  • tst_qlineedit - unknown status
  • tst_qplaintextedit - unknown status
  • tst_qprocess - unknown status
  • tst_qtextedit - unknown status
  • tst_selftests - unknown status
0-1713
2042 qWarning() << "QXcbConnection::atomName: bad Atom" << atom;-
2043 free(error);-
2044 }
never executed: end of block
0
2045 if (reply) {
replyDescription
TRUEevaluated 1713 times by 10 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_QStyleSheetStyle
  • tst_qapplication - unknown status
  • tst_qclipboard - unknown status
  • tst_qlineedit - unknown status
  • tst_qplaintextedit - unknown status
  • tst_qprocess - unknown status
  • tst_qtextedit - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
0-1713
2046 QByteArray result(xcb_get_atom_name_name(reply), xcb_get_atom_name_name_length(reply));-
2047 free(reply);-
2048 return result;
executed 1713 times by 10 tests: return result;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_QStyleSheetStyle
  • tst_qapplication - unknown status
  • tst_qclipboard - unknown status
  • tst_qlineedit - unknown status
  • tst_qplaintextedit - unknown status
  • tst_qprocess - unknown status
  • tst_qtextedit - unknown status
  • tst_selftests - unknown status
1713
2049 }-
2050 return QByteArray();
never executed: return QByteArray();
0
2051}-
2052-
2053const xcb_format_t *QXcbConnection::formatForDepth(uint8_t depth) const-
2054{-
2055 xcb_format_iterator_t iterator =-
2056 xcb_setup_pixmap_formats_iterator(m_setup);-
2057-
2058 while (iterator.rem) {
iterator.remDescription
TRUEevaluated 132 times by 3 tests
Evaluated by:
  • tst_QOpenGLWidget
  • tst_QToolTip
  • tst_QWidget
FALSEnever evaluated
0-132
2059 xcb_format_t *format = iterator.data;-
2060 if (format->depth == depth)
format->depth == depthDescription
TRUEevaluated 22 times by 3 tests
Evaluated by:
  • tst_QOpenGLWidget
  • tst_QToolTip
  • tst_QWidget
FALSEevaluated 110 times by 3 tests
Evaluated by:
  • tst_QOpenGLWidget
  • tst_QToolTip
  • tst_QWidget
22-110
2061 return format;
executed 22 times by 3 tests: return format;
Executed by:
  • tst_QOpenGLWidget
  • tst_QToolTip
  • tst_QWidget
22
2062 xcb_format_next(&iterator);-
2063 }
executed 110 times by 3 tests: end of block
Executed by:
  • tst_QOpenGLWidget
  • tst_QToolTip
  • tst_QWidget
110
2064-
2065 return 0;
never executed: return 0;
0
2066}-
2067-
2068void QXcbConnection::sync()-
2069{-
2070 // from xcb_aux_sync-
2071 xcb_get_input_focus_cookie_t cookie = Q_XCB_CALL(xcb_get_input_focus(xcb_connection()));-
2072 free(xcb_get_input_focus_reply(xcb_connection(), cookie, 0));-
2073}
executed 14010 times by 138 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • ...
14010
2074-
2075void QXcbConnection::initializeXFixes()-
2076{-
2077 xcb_generic_error_t *error = 0;-
2078 const xcb_query_extension_reply_t *reply = xcb_get_extension_data(m_connection, &xcb_xfixes_id);-
2079 if (!reply || !reply->present)
!replyDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
!reply->presentDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
2080 return;
never executed: return;
0
2081-
2082 xfixes_first_event = reply->first_event;-
2083 xcb_xfixes_query_version_cookie_t xfixes_query_cookie = xcb_xfixes_query_version(m_connection,-
2084 XCB_XFIXES_MAJOR_VERSION,-
2085 XCB_XFIXES_MINOR_VERSION);-
2086 xcb_xfixes_query_version_reply_t *xfixes_query = xcb_xfixes_query_version_reply (m_connection,-
2087 xfixes_query_cookie, &error);-
2088 if (!xfixes_query || error || xfixes_query->major_version < 2) {
!xfixes_queryDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
errorDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
xfixes_query->...or_version < 2Description
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
2089 qWarning("QXcbConnection: Failed to initialize XFixes");-
2090 free(error);-
2091 xfixes_first_event = 0;-
2092 }
never executed: end of block
0
2093 free(xfixes_query);-
2094}
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
2095-
2096void QXcbConnection::initializeXRender()-
2097{-
2098#ifdef XCB_USE_RENDER-
2099 const xcb_query_extension_reply_t *reply = xcb_get_extension_data(m_connection, &xcb_render_id);-
2100 if (!reply || !reply->present)
!replyDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
!reply->presentDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
2101 return;
never executed: return;
0
2102-
2103 xcb_generic_error_t *error = 0;-
2104 xcb_render_query_version_cookie_t xrender_query_cookie = xcb_render_query_version(m_connection,-
2105 XCB_RENDER_MAJOR_VERSION,-
2106 XCB_RENDER_MINOR_VERSION);-
2107 xcb_render_query_version_reply_t *xrender_query = xcb_render_query_version_reply(m_connection,-
2108 xrender_query_cookie, &error);-
2109 if (!xrender_query || error || (xrender_query->major_version == 0 && xrender_query->minor_version < 5)) {
!xrender_queryDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
errorDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
xrender_query-...r_version == 0Description
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
xrender_query-...or_version < 5Description
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
2110 qWarning("QXcbConnection: Failed to initialize XRender");-
2111 free(error);-
2112 }
never executed: end of block
0
2113 free(xrender_query);-
2114#endif-
2115}
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
2116-
2117void QXcbConnection::initializeXRandr()-
2118{-
2119 const xcb_query_extension_reply_t *reply = xcb_get_extension_data(m_connection, &xcb_randr_id);-
2120 if (!reply || !reply->present)
!replyDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
!reply->presentDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
2121 return;
never executed: return;
0
2122-
2123 xrandr_first_event = reply->first_event;-
2124-
2125 xcb_generic_error_t *error = 0;-
2126 xcb_randr_query_version_cookie_t xrandr_query_cookie = xcb_randr_query_version(m_connection,-
2127 XCB_RANDR_MAJOR_VERSION,-
2128 XCB_RANDR_MINOR_VERSION);-
2129-
2130 has_randr_extension = true;-
2131-
2132 xcb_randr_query_version_reply_t *xrandr_query = xcb_randr_query_version_reply(m_connection,-
2133 xrandr_query_cookie, &error);-
2134 if (!xrandr_query || error || (xrandr_query->major_version < 1 || (xrandr_query->major_version == 1 && xrandr_query->minor_version < 2))) {
!xrandr_queryDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
errorDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
xrandr_query->...or_version < 1Description
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
xrandr_query->...r_version == 1Description
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
xrandr_query->...or_version < 2Description
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
2135 qWarning("QXcbConnection: Failed to initialize XRandr");-
2136 free(error);-
2137 has_randr_extension = false;-
2138 }
never executed: end of block
0
2139 free(xrandr_query);-
2140-
2141 xcb_screen_iterator_t rootIter = xcb_setup_roots_iterator(m_setup);-
2142 for (; rootIter.rem; xcb_screen_next(&rootIter)) {
rootIter.remDescription
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
2143 xcb_randr_select_input(xcb_connection(),-
2144 rootIter.data->root,-
2145 XCB_RANDR_NOTIFY_MASK_SCREEN_CHANGE |-
2146 XCB_RANDR_NOTIFY_MASK_OUTPUT_CHANGE |-
2147 XCB_RANDR_NOTIFY_MASK_CRTC_CHANGE |-
2148 XCB_RANDR_NOTIFY_MASK_OUTPUT_PROPERTY-
2149 );-
2150 }
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
2151}
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
2152-
2153void QXcbConnection::initializeXinerama()-
2154{-
2155 const xcb_query_extension_reply_t *reply = xcb_get_extension_data(m_connection, &xcb_xinerama_id);-
2156 if (!reply || !reply->present)
!replyDescription
TRUEnever evaluated
FALSEnever evaluated
!reply->presentDescription
TRUEnever evaluated
FALSEnever evaluated
0
2157 return;
never executed: return;
0
2158-
2159 xcb_generic_error_t *error = Q_NULLPTR;-
2160 xcb_xinerama_is_active_cookie_t xinerama_query_cookie = xcb_xinerama_is_active(m_connection);-
2161 xcb_xinerama_is_active_reply_t *xinerama_is_active = xcb_xinerama_is_active_reply(m_connection,-
2162 xinerama_query_cookie,-
2163 &error);-
2164 has_xinerama_extension = xinerama_is_active && !error && xinerama_is_active->state;
xinerama_is_activeDescription
TRUEnever evaluated
FALSEnever evaluated
!errorDescription
TRUEnever evaluated
FALSEnever evaluated
xinerama_is_active->stateDescription
TRUEnever evaluated
FALSEnever evaluated
0
2165 free(error);-
2166 free(xinerama_is_active);-
2167}
never executed: end of block
0
2168-
2169void QXcbConnection::initializeXShape()-
2170{-
2171 const xcb_query_extension_reply_t *xshape_reply = xcb_get_extension_data(m_connection, &xcb_shape_id);-
2172 if (!xshape_reply || !xshape_reply->present)
!xshape_replyDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
!xshape_reply->presentDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
2173 return;
never executed: return;
0
2174-
2175 has_shape_extension = true;-
2176 xcb_shape_query_version_cookie_t cookie = xcb_shape_query_version(m_connection);-
2177 xcb_shape_query_version_reply_t *shape_query = xcb_shape_query_version_reply(m_connection,-
2178 cookie, NULL);-
2179 if (!shape_query) {
!shape_queryDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
2180 qWarning("QXcbConnection: Failed to initialize SHAPE extension");-
2181 } else if (shape_query->major_version > 1 || (shape_query->major_version == 1 && shape_query->minor_version >= 1)) {
never executed: end of block
shape_query->major_version > 1Description
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
shape_query->m...r_version == 1Description
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
shape_query->m...r_version >= 1Description
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
0-129
2182 // The input shape is the only thing added in SHAPE 1.1-
2183 has_input_shape = true;-
2184 }
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
2185 free(shape_query);-
2186}
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
2187-
2188void QXcbConnection::initializeXKB()-
2189{-
2190#ifndef QT_NO_XKB-
2191 const xcb_query_extension_reply_t *reply = xcb_get_extension_data(m_connection, &xcb_xkb_id);-
2192 if (!reply || !reply->present) {
!replyDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
!reply->presentDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
2193 qWarning() << "Qt: XKEYBOARD extension not present on the X server.";-
2194 xkb_first_event = 0;-
2195 return;
never executed: return;
0
2196 }-
2197 xkb_first_event = reply->first_event;-
2198-
2199 xcb_connection_t *c = connection()->xcb_connection();-
2200 xcb_xkb_use_extension_cookie_t xkb_query_cookie;-
2201 xcb_xkb_use_extension_reply_t *xkb_query;-
2202-
2203 xkb_query_cookie = xcb_xkb_use_extension(c, XKB_X11_MIN_MAJOR_XKB_VERSION, XKB_X11_MIN_MINOR_XKB_VERSION);-
2204 xkb_query = xcb_xkb_use_extension_reply(c, xkb_query_cookie, 0);-
2205-
2206 if (!xkb_query) {
!xkb_queryDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
2207 qWarning("Qt: Failed to initialize XKB extension");-
2208 return;
never executed: return;
0
2209 } else if (!xkb_query->supported) {
!xkb_query->supportedDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
2210 qWarning("Qt: Unsupported XKB version (We want %d %d, but X server has %d %d)",-
2211 XCB_XKB_MAJOR_VERSION, XCB_XKB_MINOR_VERSION,-
2212 xkb_query->serverMajor, xkb_query->serverMinor);-
2213 free(xkb_query);-
2214 return;
never executed: return;
0
2215 }-
2216-
2217 has_xkb = true;-
2218 free(xkb_query);-
2219-
2220 const uint16_t required_map_parts = (XCB_XKB_MAP_PART_KEY_TYPES |-
2221 XCB_XKB_MAP_PART_KEY_SYMS |-
2222 XCB_XKB_MAP_PART_MODIFIER_MAP |-
2223 XCB_XKB_MAP_PART_EXPLICIT_COMPONENTS |-
2224 XCB_XKB_MAP_PART_KEY_ACTIONS |-
2225 XCB_XKB_MAP_PART_KEY_BEHAVIORS |-
2226 XCB_XKB_MAP_PART_VIRTUAL_MODS |-
2227 XCB_XKB_MAP_PART_VIRTUAL_MOD_MAP);-
2228-
2229 const uint16_t required_events = (XCB_XKB_EVENT_TYPE_NEW_KEYBOARD_NOTIFY |-
2230 XCB_XKB_EVENT_TYPE_MAP_NOTIFY |-
2231 XCB_XKB_EVENT_TYPE_STATE_NOTIFY);-
2232-
2233 // XKB events are reported to all interested clients without regard-
2234 // to the current keyboard input focus or grab state-
2235 xcb_void_cookie_t select = xcb_xkb_select_events_checked(c,-
2236 XCB_XKB_ID_USE_CORE_KBD,-
2237 required_events,-
2238 0,-
2239 required_events,-
2240 required_map_parts,-
2241 required_map_parts,-
2242 0);-
2243-
2244 xcb_generic_error_t *error = xcb_request_check(c, select);-
2245 if (error) {
errorDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
0-129
2246 free(error);-
2247 qWarning() << "Qt: failed to select notify events from xcb-xkb";-
2248 return;
never executed: return;
0
2249 }-
2250#endif-
2251}
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
2252-
2253#if defined(XCB_USE_XINPUT22)-
2254bool QXcbConnection::xi2MouseEvents() const-
2255{-
2256 static bool mouseViaXI2 = !qEnvironmentVariableIsSet("QT_XCB_NO_XI2_MOUSE");-
2257 // FIXME: Don't use XInput2 mouse events when Xinerama extension-
2258 // is enabled, because it causes problems with multi-monitor setup.-
2259 return mouseViaXI2 && !has_xinerama_extension;
executed 13220 times by 125 tests: return mouseViaXI2 && !has_xinerama_extension;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
mouseViaXI2Description
TRUEevaluated 13220 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEnever evaluated
!has_xinerama_extensionDescription
TRUEevaluated 13220 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEnever evaluated
0-13220
2260}-
2261#endif-
2262-
2263#if defined(XCB_USE_XINPUT2)-
2264static int xi2ValuatorOffset(unsigned char *maskPtr, int maskLen, int number)-
2265{-
2266 int offset = 0;-
2267 for (int i = 0; i < maskLen; i++) {
i < maskLenDescription
TRUEnever evaluated
FALSEnever evaluated
0
2268 if (number < 8) {
number < 8Description
TRUEnever evaluated
FALSEnever evaluated
0
2269 if ((maskPtr[i] & (1 << number)) == 0)
(maskPtr[i] & ... number)) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2270 return -1;
never executed: return -1;
0
2271 }
never executed: end of block
0
2272 for (int j = 0; j < 8; j++) {
j < 8Description
TRUEnever evaluated
FALSEnever evaluated
0
2273 if (j == number)
j == numberDescription
TRUEnever evaluated
FALSEnever evaluated
0
2274 return offset;
never executed: return offset;
0
2275 if (maskPtr[i] & (1 << j))
maskPtr[i] & (1 << j)Description
TRUEnever evaluated
FALSEnever evaluated
0
2276 offset++;
never executed: offset++;
0
2277 }
never executed: end of block
0
2278 number -= 8;-
2279 }
never executed: end of block
0
2280 return -1;
never executed: return -1;
0
2281}-
2282-
2283bool QXcbConnection::xi2GetValuatorValueIfSet(void *event, int valuatorNum, double *value)-
2284{-
2285 xXIDeviceEvent *xideviceevent = static_cast<xXIDeviceEvent *>(event);-
2286 unsigned char *buttonsMaskAddr = (unsigned char*)&xideviceevent[1];-
2287 unsigned char *valuatorsMaskAddr = buttonsMaskAddr + xideviceevent->buttons_len * 4;-
2288 FP3232 *valuatorsValuesAddr = (FP3232*)(valuatorsMaskAddr + xideviceevent->valuators_len * 4);-
2289-
2290 int valuatorOffset = xi2ValuatorOffset(valuatorsMaskAddr, xideviceevent->valuators_len, valuatorNum);-
2291 if (valuatorOffset < 0)
valuatorOffset < 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2292 return false;
never executed: return false;
0
2293-
2294 *value = valuatorsValuesAddr[valuatorOffset].integral;-
2295 *value += ((double)valuatorsValuesAddr[valuatorOffset].frac / (1 << 16) / (1 << 16));-
2296 return true;
never executed: return true;
0
2297}-
2298-
2299void QXcbConnection::xi2PrepareXIGenericDeviceEvent(xcb_ge_event_t *event)-
2300{-
2301 // xcb event structs contain stuff that wasn't on the wire, the full_sequence field-
2302 // adds an extra 4 bytes and generic events cookie data is on the wire right after the standard 32 bytes.-
2303 // Move this data back to have the same layout in memory as it was on the wire-
2304 // and allow casting, overwriting the full_sequence field.-
2305 memmove((char*) event + 32, (char*) event + 36, event->length * 4);-
2306}
executed 2085 times by 69 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
2085
2307#endif // defined(XCB_USE_XINPUT2)-
2308-
2309QXcbSystemTrayTracker *QXcbConnection::systemTrayTracker() const-
2310{-
2311 if (!m_systemTrayTracker) {
!m_systemTrayTrackerDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSystemTrayIcon
FALSEevaluated 25 times by 1 test
Evaluated by:
  • tst_QSystemTrayIcon
1-25
2312 QXcbConnection *self = const_cast<QXcbConnection *>(this);-
2313 if ((self->m_systemTrayTracker = QXcbSystemTrayTracker::create(self))) {
(self->m_syste...:create(self))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSystemTrayIcon
FALSEnever evaluated
0-1
2314 connect(m_systemTrayTracker, SIGNAL(systemTrayWindowChanged(QScreen*)),-
2315 QGuiApplication::platformNativeInterface(), SIGNAL(systemTrayWindowChanged(QScreen*)));-
2316 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QSystemTrayIcon
1
2317 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QSystemTrayIcon
1
2318 return m_systemTrayTracker;
executed 26 times by 1 test: return m_systemTrayTracker;
Executed by:
  • tst_QSystemTrayIcon
26
2319}-
2320-
2321bool QXcbConnection::xEmbedSystemTrayAvailable()-
2322{-
2323 if (!QGuiApplicationPrivate::platformIntegration())
!QGuiApplicati...mIntegration()Description
TRUEnever evaluated
FALSEnever evaluated
0
2324 return false;
never executed: return false;
0
2325 QXcbConnection *connection = static_cast<QXcbIntegration *>(QGuiApplicationPrivate::platformIntegration())->defaultConnection();-
2326 return connection->systemTrayTracker();
never executed: return connection->systemTrayTracker();
0
2327}-
2328-
2329bool QXcbConnection::xEmbedSystemTrayVisualHasAlphaChannel()-
2330{-
2331 if (!QGuiApplicationPrivate::platformIntegration())
!QGuiApplicati...mIntegration()Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSystemTrayIcon
0-3
2332 return false;
never executed: return false;
0
2333 QXcbConnection *connection = static_cast<QXcbIntegration *>(QGuiApplicationPrivate::platformIntegration())->defaultConnection();-
2334 return connection->systemTrayTracker() && connection->systemTrayTracker()->visualHasAlphaChannel();
executed 3 times by 1 test: return connection->systemTrayTracker() && connection->systemTrayTracker()->visualHasAlphaChannel();
Executed by:
  • tst_QSystemTrayIcon
connection->sy...mTrayTracker()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSystemTrayIcon
FALSEnever evaluated
connection->sy...AlphaChannel()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSystemTrayIcon
FALSEnever evaluated
0-3
2335}-
2336-
2337bool QXcbConnection::event(QEvent *e)-
2338{-
2339 if (e->type() == QEvent::User + 1) {
e->type() == QEvent::User + 1Description
TRUEnever evaluated
FALSEevaluated 117566 times by 113 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
0-117566
2340 QXcbSyncWindowRequest *ev = static_cast<QXcbSyncWindowRequest *>(e);-
2341 QXcbWindow *w = ev->window();-
2342 if (w) {
wDescription
TRUEnever evaluated
FALSEnever evaluated
0
2343 w->updateSyncRequestCounter();-
2344 ev->invalidate();-
2345 }
never executed: end of block
0
2346 return true;
never executed: return true;
0
2347 }-
2348 return QObject::event(e);
executed 117566 times by 113 tests: return QObject::event(e);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
117566
2349}-
2350-
2351void QXcbSyncWindowRequest::invalidate()-
2352{-
2353 if (m_window) {
m_windowDescription
TRUEnever evaluated
FALSEnever evaluated
0
2354 m_window->clearSyncWindowRequest();-
2355 m_window = 0;-
2356 }
never executed: end of block
0
2357}
never executed: end of block
0
2358-
2359QXcbConnectionGrabber::QXcbConnectionGrabber(QXcbConnection *connection)-
2360 :m_connection(connection)-
2361{-
2362 connection->grabServer();-
2363}
executed 19 times by 19 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QWidget
19
2364-
2365QXcbConnectionGrabber::~QXcbConnectionGrabber()-
2366{-
2367 if (m_connection)
m_connectionDescription
TRUEevaluated 19 times by 19 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QWidget
FALSEnever evaluated
0-19
2368 m_connection->ungrabServer();
executed 19 times by 19 tests: m_connection->ungrabServer();
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QWidget
19
2369}
executed 19 times by 19 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QWidget
19
2370-
2371void QXcbConnectionGrabber::release()-
2372{-
2373 if (m_connection) {
m_connectionDescription
TRUEnever evaluated
FALSEnever evaluated
0
2374 m_connection->ungrabServer();-
2375 m_connection = 0;-
2376 }
never executed: end of block
0
2377}
never executed: end of block
0
2378-
2379QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

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