qxcbconnection_xi2.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5struct XInput2TouchDeviceData {-
6 XInput2TouchDeviceData()-
7 : xiDeviceInfo(0)-
8 , qtTouchDevice(0)-
9 , providesTouchOrientation(false)-
10 {-
11 }
executed 516 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
516
12 XIDeviceInfo *xiDeviceInfo;-
13 QTouchDevice *qtTouchDevice;-
14 QHash<int, QWindowSystemInterface::TouchPoint> touchPoints;-
15-
16-
17 QHash<int, QPointF> pointPressedPosition;-
18 QPointF firstPressedPosition;-
19 QPointF firstPressedNormalPosition;-
20 QSizeF size;-
21 bool providesTouchOrientation;-
22};-
23-
24void QXcbConnection::initializeXInput2()-
25{-
26-
27 if (qEnvironmentVariableIsSet("QT_XCB_DEBUG_XINPUT")
qEnvironmentVa...DEBUG_XINPUT")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
28 const_cast<
never executed: const_cast<QLoggingCategory&>(lcQpaXInput()).setEnabled(QtDebugMsg, true);
QLoggingCategory&>(lcQpaXInput()).setEnabled(QtDebugMsg, true);
never executed: const_cast<QLoggingCategory&>(lcQpaXInput()).setEnabled(QtDebugMsg, true);
0
29 if (qEnvironmentVariableIsSet("QT_XCB_DEBUG_XINPUT_DEVICES")
qEnvironmentVa...NPUT_DEVICES")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
30 const_cast<
never executed: const_cast<QLoggingCategory&>(lcQpaXInputDevices()).setEnabled(QtDebugMsg, true);
QLoggingCategory&>(lcQpaXInputDevices()).setEnabled(QtDebugMsg, true);
never executed: const_cast<QLoggingCategory&>(lcQpaXInputDevices()).setEnabled(QtDebugMsg, true);
0
31 Display *xDisplay = static_cast<Display *>(m_xlib_display);-
32 if (XQueryExtension(xDisplay, "XInputExtension", &m_xiOpCode, &m_xiEventBase, &m_xiErrorBase)
XQueryExtensio...m_xiErrorBase)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
33 int xiMajor = 2;-
34 m_xi2Minor = 2;-
35 if (XIQueryVersion(xDisplay, &xiMajor, &m_xi2Minor) == 1
XIQueryVersion...xi2Minor) == 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
) {
0-129
36 m_xi2Minor = 1;-
37 if (XIQueryVersion(xDisplay, &xiMajor, &m_xi2Minor) == 1
XIQueryVersion...xi2Minor) == 1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
38 m_xi2Minor = 0;-
39 m_xi2Enabled = XIQueryVersion(xDisplay, &xiMajor, &m_xi2Minor) != 1;-
40 }
never executed: end of block
else
0
41 m_xi2Enabled = true;
never executed: m_xi2Enabled = true;
0
42 } else-
43 m_xi2Enabled = true;
executed 129 times by 5 tests: m_xi2Enabled = true;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
44 if (m_xi2Enabled
m_xi2EnabledDescription
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
45-
46 for (bool qt_category_enabled = lcQpaXInputDevices().isDebugEnabled(); qt_category_enabled
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
; qt_category_enabled = false) QMessageLogger(__FILE__, 89, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug("XInput version %d.%d is available and Qt supports 2.2 or greater", xiMajor, m_xi2Minor);
never executed: QMessageLogger(__FILE__, 89, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug("XInput version %d.%d is available and Qt supports 2.2 or greater", xiMajor, m_xi2Minor);
0-129
47-
48-
49-
50 }
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
51-
52 xi2SetupDevices();-
53 }
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
54}
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
55-
56void QXcbConnection::xi2SetupDevices()-
57{-
58-
59 m_tabletData.clear();-
60-
61 m_scrollingDevices.clear();-
62-
63 if (!m_xi2Enabled
!m_xi2EnabledDescription
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
64 return;
never executed: return;
0
65-
66 Display *xDisplay = static_cast<Display *>(m_xlib_display);-
67 int deviceCount = 0;-
68 XIDeviceInfo *devices = XIQueryDevice(xDisplay, 0, &deviceCount);-
69 for (int i = 0; i < deviceCount
i < deviceCountDescription
TRUEevaluated 1161 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
; ++i) {
129-1161
70-
71 if (devices[i].use != 3
devices[i].use != 3Description
TRUEevaluated 645 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
)
516-645
72 continue;
executed 645 times by 5 tests: continue;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
645
73 for (bool qt_category_enabled = lcQpaXInputDevices().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
; qt_category_enabled = false) QMessageLogger(__FILE__, 116, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug() << "input device " << devices[i].name << "ID" << devices[i].deviceid;
never executed: QMessageLogger(__FILE__, 116, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug() << "input device " << devices[i].name << "ID" << devices[i].deviceid;
0-516
74-
75 TabletData tabletData;-
76-
77 ScrollingDevice scrollingDevice;-
78 for (int c = 0; c < devices[i].num_classes
c < devices[i].num_classesDescription
TRUEevaluated 2580 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
; ++c) {
516-2580
79 switch (devices[i].classes[c]->type) {-
80 case
executed 1548 times by 5 tests: case 2:
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
2:
executed 1548 times by 5 tests: case 2:
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
{
1548
81 XIValuatorClassInfo *vci = reinterpret_cast<XIValuatorClassInfo *>(devices[i].classes[c]);-
82 const int valuatorAtom = qatom(vci->label);-
83 for (bool qt_category_enabled = lcQpaXInputDevices().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 1548 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
; qt_category_enabled = false) QMessageLogger(__FILE__, 126, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug() << " has valuator" << atomName(vci->label) << "recognized?" << (valuatorAtom < QXcbAtom::NAtoms);
never executed: QMessageLogger(__FILE__, 126, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug() << " has valuator" << atomName(vci->label) << "recognized?" << (valuatorAtom < QXcbAtom::NAtoms);
0-1548
84-
85 if (valuatorAtom < QXcbAtom::NAtoms
valuatorAtom <...cbAtom::NAtomsDescription
TRUEevaluated 1548 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-1548
86 TabletData::ValuatorClassInfo info;-
87 info.minVal = vci->min;-
88 info.maxVal = vci->max;-
89 info.number = vci->number;-
90 tabletData.valuatorInfo[valuatorAtom] = info;-
91 }
executed 1548 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
1548
92-
93 if (valuatorAtom == QXcbAtom::RelHorizScroll
valuatorAtom =...RelHorizScrollDescription
TRUEnever evaluated
FALSEevaluated 1548 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
|| valuatorAtom == QXcbAtom::RelHorizWheel
valuatorAtom =...:RelHorizWheelDescription
TRUEevaluated 258 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 1290 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
)
0-1548
94 scrollingDevice.lastScrollPosition.setX(vci->value);
executed 258 times by 5 tests: scrollingDevice.lastScrollPosition.setX(vci->value);
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
258
95 else if (valuatorAtom == QXcbAtom::RelVertScroll
valuatorAtom =...:RelVertScrollDescription
TRUEnever evaluated
FALSEevaluated 1290 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
|| valuatorAtom == QXcbAtom::RelVertWheel
valuatorAtom =...::RelVertWheelDescription
TRUEevaluated 258 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
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-1290
96 scrollingDevice.lastScrollPosition.setY(vci->value);
executed 258 times by 5 tests: scrollingDevice.lastScrollPosition.setY(vci->value);
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
258
97 break;
executed 1548 times by 5 tests: break;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
1548
98 }-
99-
100 case
executed 516 times by 5 tests: case 3:
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
3:
executed 516 times by 5 tests: case 3:
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
{
516
101 XIScrollClassInfo *sci = reinterpret_cast<XIScrollClassInfo *>(devices[i].classes[c]);-
102 if (sci->scroll_type == 1
sci->scroll_type == 1Description
TRUEevaluated 258 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 258 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
) {
258
103 scrollingDevice.orientations |= Qt::Vertical;-
104 scrollingDevice.verticalIndex = sci->number;-
105 scrollingDevice.verticalIncrement = sci->increment;-
106 }
executed 258 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
258
107 else if (sci->scroll_type == 2
sci->scroll_type == 2Description
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
) {
0-258
108 scrollingDevice.orientations |= Qt::Horizontal;-
109 scrollingDevice.horizontalIndex = sci->number;-
110 scrollingDevice.horizontalIncrement = sci->increment;-
111 }
executed 258 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
258
112 break;
executed 516 times by 5 tests: break;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
516
113 }-
114 case
executed 516 times by 5 tests: case 1:
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
1:
executed 516 times by 5 tests: case 1:
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
{
516
115 XIButtonClassInfo *bci = reinterpret_cast<XIButtonClassInfo *>(devices[i].classes[c]);-
116 if (bci->num_buttons >= 5
bci->num_buttons >= 5Description
TRUEevaluated 516 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-516
117 Atom label4 = bci->labels[3];-
118 Atom label5 = bci->labels[4];-
119-
120-
121 if ((!label4
!label4Description
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 387 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
|| qatom(label4) == QXcbAtom::ButtonWheelUp
qatom(label4) ...:ButtonWheelUpDescription
TRUEevaluated 387 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
|| qatom(label4) == QXcbAtom::ButtonWheelDown
qatom(label4) ...uttonWheelDownDescription
TRUEnever evaluated
FALSEnever evaluated
) &&
0-387
122 (!label5
!label5Description
TRUEnever evaluated
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
|| qatom(label5) == QXcbAtom::ButtonWheelUp
qatom(label5) ...:ButtonWheelUpDescription
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 387 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
|| qatom(label5) == QXcbAtom::ButtonWheelDown
qatom(label5) ...uttonWheelDownDescription
TRUEevaluated 387 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-516
123 scrollingDevice.legacyOrientations |= Qt::Vertical;
executed 516 times by 5 tests: scrollingDevice.legacyOrientations |= Qt::Vertical;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
516
124 }
executed 516 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
516
125 if (bci->num_buttons >= 7
bci->num_buttons >= 7Description
TRUEevaluated 387 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-387
126 Atom label6 = bci->labels[5];-
127 Atom label7 = bci->labels[6];-
128 if ((!label6
!label6Description
TRUEnever evaluated
FALSEevaluated 387 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
|| qatom(label6) == QXcbAtom::ButtonHorizWheelLeft
qatom(label6) ...HorizWheelLeftDescription
TRUEevaluated 387 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
) && (!label7
!label7Description
TRUEnever evaluated
FALSEevaluated 387 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
|| qatom(label7) == QXcbAtom::ButtonHorizWheelRight
qatom(label7) ...orizWheelRightDescription
TRUEevaluated 387 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-387
129 scrollingDevice.legacyOrientations |= Qt::Horizontal;
executed 387 times by 5 tests: scrollingDevice.legacyOrientations |= Qt::Horizontal;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
387
130 }
executed 387 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
387
131 for (bool qt_category_enabled = lcQpaXInputDevices().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
; qt_category_enabled = false) QMessageLogger(__FILE__, 174, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug(" has %d buttons", bci->num_buttons);
never executed: QMessageLogger(__FILE__, 174, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug(" has %d buttons", bci->num_buttons);
0-516
132 break;
executed 516 times by 5 tests: break;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
516
133 }-
134-
135 case
never executed: case 0:
0:
never executed: case 0:
0
136 for (bool qt_category_enabled = lcQpaXInputDevices().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 179, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug() << " it's a keyboard";
never executed: QMessageLogger(__FILE__, 179, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug() << " it's a keyboard";
0
137 break;
never executed: break;
0
138-
139 case
never executed: case 8:
8:
never executed: case 8:
0
140-
141 break;
never executed: break;
0
142-
143 default
never executed: default:
:
never executed: default:
0
144 for (bool qt_category_enabled = lcQpaXInputDevices().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 187, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug() << " has class" << devices[i].classes[c]->type;
never executed: QMessageLogger(__FILE__, 187, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug() << " has class" << devices[i].classes[c]->type;
0
145 break;
never executed: break;
0
146 }-
147 }-
148 bool isTablet = false;-
149-
150-
151 if (tabletData.valuatorInfo.contains(QXcbAtom::AbsX)
tabletData.val...XcbAtom::AbsX)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
FALSEevaluated 258 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
&&
258
152 tabletData.valuatorInfo.contains(QXcbAtom::AbsY)
tabletData.val...XcbAtom::AbsY)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
&&
0-258
153 tabletData.valuatorInfo.contains(QXcbAtom::AbsPressure)
tabletData.val...::AbsPressure)Description
TRUEnever evaluated
FALSEevaluated 258 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
)
0-258
154 isTablet = true;
never executed: isTablet = true;
0
155-
156-
157 QByteArray name = QByteArray(devices[i].name).toLower();-
158 QString dbgType = QLatin1String("UNKNOWN");-
159 if (name.contains("eraser")
name.contains("eraser")Description
TRUEnever evaluated
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
) {
0-516
160 isTablet = true;-
161 tabletData.pointerType = QTabletEvent::Eraser;-
162 dbgType = QLatin1String("eraser");-
163 }
never executed: end of block
else if (name.contains("cursor")
name.contains("cursor")Description
TRUEnever evaluated
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
) {
0-516
164 isTablet = true;-
165 tabletData.pointerType = QTabletEvent::Cursor;-
166 dbgType = QLatin1String("cursor");-
167 }
never executed: end of block
else if ((name.contains("pen")
name.contains("pen")Description
TRUEnever evaluated
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
|| name.contains("stylus")
name.contains("stylus")Description
TRUEnever evaluated
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
) && isTablet
isTabletDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-516
168 tabletData.pointerType = QTabletEvent::Pen;-
169 dbgType = QLatin1String("pen");-
170 }
never executed: end of block
else if (name.contains("wacom")
name.contains("wacom")Description
TRUEnever evaluated
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
&& isTablet
isTabletDescription
TRUEnever evaluated
FALSEnever evaluated
&& !name.contains("touch")
!name.contains("touch")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-516
171-
172 tabletData.pointerType = QTabletEvent::Pen;-
173 dbgType = QLatin1String("pen");-
174 }
never executed: end of block
else if (name.contains("aiptek")
name.contains("aiptek")Description
TRUEnever evaluated
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
) {
0-516
175-
176 isTablet = true;-
177 tabletData.pointerType = QTabletEvent::Pen;-
178 dbgType = QLatin1String("pen");-
179 }
never executed: end of block
else if (name.contains("waltop")
name.contains("waltop")Description
TRUEnever evaluated
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
&& name.contains("tablet")
name.contains("tablet")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-516
180-
181-
182 isTablet = true;-
183 tabletData.pointerType = QTabletEvent::Pen;-
184 dbgType = QLatin1String("pen");-
185 }
never executed: end of block
else {
0
186 isTablet = false;-
187 }
executed 516 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
516
188-
189 if (isTablet
isTabletDescription
TRUEnever evaluated
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
) {
0-516
190 tabletData.deviceId = devices[i].deviceid;-
191 m_tabletData.append(tabletData);-
192 for (bool qt_category_enabled = lcQpaXInputDevices().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 235, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug() << " it's a tablet with pointer type" << dbgType;
never executed: QMessageLogger(__FILE__, 235, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug() << " it's a tablet with pointer type" << dbgType;
0
193 }
never executed: end of block
0
194-
195-
196-
197 if (scrollingDevice.orientations || scrollingDevice.legacyOrientations) {-
198 scrollingDevice.deviceId = devices[i].deviceid;-
199-
200 scrollingDevice.legacyOrientations &= ~scrollingDevice.orientations;-
201 m_scrollingDevices.insert(scrollingDevice.deviceId, scrollingDevice);-
202 for (bool qt_category_enabled = lcQpaXInputDevices().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
; qt_category_enabled = false) QMessageLogger(__FILE__, 245, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug() << " it's a scrolling device";
never executed: QMessageLogger(__FILE__, 245, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug() << " it's a scrolling device";
0-516
203 }
executed 516 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
516
204-
205-
206 if (!isTablet
!isTabletDescription
TRUEevaluated 516 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-516
207-
208-
209 XInput2TouchDeviceData *dev = touchDeviceForId(devices[i].deviceid);-
210 if (dev
devDescription
TRUEnever evaluated
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
&& lcQpaXInputDevices().isDebugEnabled()
lcQpaXInputDev...DebugEnabled()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-516
211 if (dev->qtTouchDevice->type() == QTouchDevice::TouchScreen
dev->qtTouchDe...e::TouchScreenDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
212 for (bool qt_category_enabled = lcQpaXInputDevices().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(
never executed: QMessageLogger( __FILE__ , 257 , __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug(" it's a touchscreen with type %d capabilities 0x%X max touch points %d", dev->qtTouchDevice->type(), (unsigned int)dev->qtTouchDevice->capabilities(), dev->qtTouchDevice->maximumTouchPoints()) ;
0
2130
214 __FILE__
never executed: QMessageLogger( __FILE__ , 257 , __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug(" it's a touchscreen with type %d capabilities 0x%X max touch points %d", dev->qtTouchDevice->type(), (unsigned int)dev->qtTouchDevice->capabilities(), dev->qtTouchDevice->maximumTouchPoints()) ;
0
215 ,
never executed: QMessageLogger( __FILE__ , 257 , __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug(" it's a touchscreen with type %d capabilities 0x%X max touch points %d", dev->qtTouchDevice->type(), (unsigned int)dev->qtTouchDevice->capabilities(), dev->qtTouchDevice->maximumTouchPoints()) ;
0
2160
217 257
never executed: QMessageLogger( __FILE__ , 257 , __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug(" it's a touchscreen with type %d capabilities 0x%X max touch points %d", dev->qtTouchDevice->type(), (unsigned int)dev->qtTouchDevice->capabilities(), dev->qtTouchDevice->maximumTouchPoints()) ;
0
218 , __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug(" it's a touchscreen with type %d capabilities 0x%X max touch points %d", dev->qtTouchDevice->type(), (unsigned int)dev->qtTouchDevice->capabilities(), dev->qtTouchDevice->maximumTouchPoints())
never executed: QMessageLogger( __FILE__ , 257 , __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug(" it's a touchscreen with type %d capabilities 0x%X max touch points %d", dev->qtTouchDevice->type(), (unsigned int)dev->qtTouchDevice->capabilities(), dev->qtTouchDevice->maximumTouchPoints()) ;
0
2190
220 ;
never executed: QMessageLogger( __FILE__ , 257 , __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug(" it's a touchscreen with type %d capabilities 0x%X max touch points %d", dev->qtTouchDevice->type(), (unsigned int)dev->qtTouchDevice->capabilities(), dev->qtTouchDevice->maximumTouchPoints()) ;
0
221 else if (dev->qtTouchDevice->type() == QTouchDevice::TouchPad
dev->qtTouchDe...vice::TouchPadDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
222 for (bool qt_category_enabled = lcQpaXInputDevices().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(
never executed: QMessageLogger( __FILE__ , 262 , __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug(" it's a touchpad with type %d capabilities 0x%X max touch points %d size %f x %f", dev->qtTouchDevice->type(), (unsigned int)dev->qtTouchDevice->capabilities(), dev->qtTouchDevice->maximumTouchPoints(), dev->size.width(), dev->size.height()) ;
0
2230
2240
225 __FILE__
never executed: QMessageLogger( __FILE__ , 262 , __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug(" it's a touchpad with type %d capabilities 0x%X max touch points %d size %f x %f", dev->qtTouchDevice->type(), (unsigned int)dev->qtTouchDevice->capabilities(), dev->qtTouchDevice->maximumTouchPoints(), dev->size.width(), dev->size.height()) ;
0
226 ,
never executed: QMessageLogger( __FILE__ , 262 , __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug(" it's a touchpad with type %d capabilities 0x%X max touch points %d size %f x %f", dev->qtTouchDevice->type(), (unsigned int)dev->qtTouchDevice->capabilities(), dev->qtTouchDevice->maximumTouchPoints(), dev->size.width(), dev->size.height()) ;
0
2270
2280
229 262
never executed: QMessageLogger( __FILE__ , 262 , __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug(" it's a touchpad with type %d capabilities 0x%X max touch points %d size %f x %f", dev->qtTouchDevice->type(), (unsigned int)dev->qtTouchDevice->capabilities(), dev->qtTouchDevice->maximumTouchPoints(), dev->size.width(), dev->size.height()) ;
0
230 , __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug(" it's a touchpad with type %d capabilities 0x%X max touch points %d size %f x %f", dev->qtTouchDevice->type(), (unsigned int)dev->qtTouchDevice->capabilities(), dev->qtTouchDevice->maximumTouchPoints(), dev->size.width(), dev->size.height())
never executed: QMessageLogger( __FILE__ , 262 , __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug(" it's a touchpad with type %d capabilities 0x%X max touch points %d size %f x %f", dev->qtTouchDevice->type(), (unsigned int)dev->qtTouchDevice->capabilities(), dev->qtTouchDevice->maximumTouchPoints(), dev->size.width(), dev->size.height()) ;
0
2310
2320
233 ;
never executed: QMessageLogger( __FILE__ , 262 , __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug(" it's a touchpad with type %d capabilities 0x%X max touch points %d size %f x %f", dev->qtTouchDevice->type(), (unsigned int)dev->qtTouchDevice->capabilities(), dev->qtTouchDevice->maximumTouchPoints(), dev->size.width(), dev->size.height()) ;
0
234 }
never executed: end of block
0
235 }
executed 516 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
516
236 }
executed 516 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
516
237 XIFreeDeviceInfo(devices);-
238}
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
239-
240void QXcbConnection::finalizeXInput2()-
241{-
242 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(m_touchDevices)>::type> _container_((m_touchDevices)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (XInput2TouchDeviceData *dev = *_container_.i; _container_.control; _container_.control = 0) {-
243 if (dev->xiDeviceInfo
dev->xiDeviceInfoDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
244 XIFreeDeviceInfo(dev->xiDeviceInfo);
never executed: XIFreeDeviceInfo(dev->xiDeviceInfo);
0
245 delete dev;-
246 }
never executed: end of block
0
247}
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
248-
249void QXcbConnection::xi2Select(xcb_window_t window)-
250{-
251 if (!m_xi2Enabled
!m_xi2EnabledDescription
TRUEnever evaluated
FALSEevaluated 4166 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
  • ...
|| window == rootWindow()
window == rootWindow()Description
TRUEnever evaluated
FALSEevaluated 4166 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-4166
252 return;
never executed: return;
0
253-
254 Display *xDisplay = static_cast<Display *>(m_xlib_display);-
255 unsigned int bitMask = 0;-
256 unsigned char *xiBitMask = reinterpret_cast<unsigned char *>(&bitMask);-
257-
258-
259 if (isAtLeastXI22()
isAtLeastXI22()Description
TRUEevaluated 4166 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-4166
260 bitMask |= (1 << 18);-
261 bitMask |= (1 << 19);-
262 bitMask |= (1 << 20);-
263 bitMask |= (1 << 12);-
264 if (xi2MouseEvents()
xi2MouseEvents()Description
TRUEevaluated 4166 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-4166
265-
266-
267 bitMask |= (1 << 4);-
268 bitMask |= (1 << 5);-
269 bitMask |= (1 << 6);-
270-
271-
272 bitMask |= (1 << 7);-
273 bitMask |= (1 << 8);-
274-
275 for (bool qt_category_enabled = lcQpaXInput().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 4166 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
  • ...
; qt_category_enabled = false) QMessageLogger(__FILE__, 304, __PRETTY_FUNCTION__, lcQpaXInput().categoryName()).debug("XInput 2.2: Selecting press/release/motion events in addition to touch");
never executed: QMessageLogger(__FILE__, 304, __PRETTY_FUNCTION__, lcQpaXInput().categoryName()).debug("XInput 2.2: Selecting press/release/motion events in addition to touch");
0-4166
276 }
executed 4166 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
  • ...
4166
277 XIEventMask mask;-
278 mask.mask_len = sizeof(bitMask);-
279 mask.mask = xiBitMask;-
280-
281-
282-
283-
284 mask.deviceid = 1;-
285 int result = XISelectEvents(xDisplay, window, &mask, 1);-
286 if (result != 0
result != 0Description
TRUEnever evaluated
FALSEevaluated 4166 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-4166
287 for (bool qt_category_enabled = lcQpaXInput().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 316, __PRETTY_FUNCTION__, lcQpaXInput().categoryName()).debug("XInput 2.2: failed to select pointer/touch events, window %x, result %d", window, result);
never executed: QMessageLogger(__FILE__, 316, __PRETTY_FUNCTION__, lcQpaXInput().categoryName()).debug("XInput 2.2: failed to select pointer/touch events, window %x, result %d", window, result);
0
288 }
executed 4166 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
  • ...
4166
289-
290 const bool pointerSelected = isAtLeastXI22()
isAtLeastXI22()Description
TRUEevaluated 4166 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
&& xi2MouseEvents()
xi2MouseEvents()Description
TRUEevaluated 4166 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-4166
291-
292-
293-
294-
295 QSet<int> tabletDevices;-
296-
297 if (!m_tabletData.isEmpty()
!m_tabletData.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 4166 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-4166
298 unsigned int tabletBitMask;-
299 unsigned char *xiTabletBitMask = reinterpret_cast<unsigned char *>(&tabletBitMask);-
300 QVector<XIEventMask> xiEventMask(m_tabletData.count());-
301 tabletBitMask = (1 << 12);-
302 if (!pointerSelected
!pointerSelectedDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
303 tabletBitMask |= (1 << 4) | (1 << 5) | (1 << 6);
never executed: tabletBitMask |= (1 << 4) | (1 << 5) | (1 << 6);
0
304 for (int i = 0; i < m_tabletData.count()
i < m_tabletData.count()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
305 int deviceId = m_tabletData.at(i).deviceId;-
306 tabletDevices.insert(deviceId);-
307 xiEventMask[i].deviceid = deviceId;-
308 xiEventMask[i].mask_len = sizeof(tabletBitMask);-
309 xiEventMask[i].mask = xiTabletBitMask;-
310 }
never executed: end of block
0
311 XISelectEvents(xDisplay, window, xiEventMask.data(), m_tabletData.count());-
312 }
never executed: end of block
0
313-
314-
315-
316-
317 if (!m_scrollingDevices.isEmpty()
!m_scrollingDevices.isEmpty()Description
TRUEevaluated 4166 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
&& !pointerSelected
!pointerSelectedDescription
TRUEnever evaluated
FALSEevaluated 4166 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-4166
318-
319 QVector<XIEventMask> xiEventMask(m_scrollingDevices.size());-
320 unsigned int scrollBitMask;-
321 unsigned char *xiScrollBitMask = reinterpret_cast<unsigned char *>(&scrollBitMask);-
322-
323 scrollBitMask = (1 << 6);-
324 scrollBitMask |= (1 << 5);-
325 int i=0;-
326 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(m_scrollingDevices)>::type> _container_((m_scrollingDevices)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (const ScrollingDevice& scrollingDevice = *_container_.i; _container_.control; _container_.control = 0) {-
327 if (tabletDevices.contains(scrollingDevice.deviceId)
tabletDevices....vice.deviceId)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
328 continue;
never executed: continue;
0
329 xiEventMask[i].deviceid = scrollingDevice.deviceId;-
330 xiEventMask[i].mask_len = sizeof(scrollBitMask);-
331 xiEventMask[i].mask = xiScrollBitMask;-
332 i++;-
333 }
never executed: end of block
0
334 XISelectEvents(xDisplay, window, xiEventMask.data(), i);-
335 }
never executed: end of block
0
336-
337-
338-
339-
340 {-
341-
342 XIEventMask xiEventMask;-
343 bitMask = (1 << 11);-
344 bitMask |= (1 << 1);-
345 xiEventMask.deviceid = 0;-
346 xiEventMask.mask_len = sizeof(bitMask);-
347 xiEventMask.mask = xiBitMask;-
348 XISelectEvents(xDisplay, window, &xiEventMask, 1);-
349 }-
350}
executed 4166 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
  • ...
4166
351-
352XInput2TouchDeviceData *QXcbConnection::touchDeviceForId(int id)-
353{-
354 XInput2TouchDeviceData *dev = nullptr;-
355 QHash<int, XInput2TouchDeviceData*>::const_iterator devIt = m_touchDevices.constFind(id);-
356 if (devIt != m_touchDevices.cend()
devIt != m_touchDevices.cend()Description
TRUEnever evaluated
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
) {
0-516
357 dev = devIt.value();-
358 }
never executed: end of block
else {
0
359 int nrDevices = 0;-
360 QTouchDevice::Capabilities caps = 0;-
361 dev = new XInput2TouchDeviceData;-
362 dev->xiDeviceInfo = XIQueryDevice(static_cast<Display *>(m_xlib_display), id, &nrDevices);-
363 if (nrDevices <= 0
nrDevices <= 0Description
TRUEnever evaluated
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
) {
0-516
364 delete dev;-
365 return
never executed: return 0;
0;
never executed: return 0;
0
366 }-
367 int type = -1;-
368 int maxTouchPoints = 1;-
369 bool hasRelativeCoords = false;-
370 for (int i = 0; i < dev->xiDeviceInfo->num_classes
i < dev->xiDev...o->num_classesDescription
TRUEevaluated 2580 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
; ++i) {
516-2580
371 XIAnyClassInfo *classinfo = dev->xiDeviceInfo->classes[i];-
372 switch (classinfo->type) {-
373-
374 case
never executed: case 8:
8:
never executed: case 8:
{
0
375 XITouchClassInfo *tci = reinterpret_cast<XITouchClassInfo *>(classinfo);-
376 maxTouchPoints = tci->num_touches;-
377 for (bool qt_category_enabled = lcQpaXInputDevices().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 406, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug(" has touch class with mode %d", tci->mode);
never executed: QMessageLogger(__FILE__, 406, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug(" has touch class with mode %d", tci->mode);
0
378 switch (tci->mode) {-
379 case
never executed: case 2:
2:
never executed: case 2:
0
380 type = QTouchDevice::TouchPad;-
381 break;
never executed: break;
0
382 case
never executed: case 1:
1:
never executed: case 1:
0
383 type = QTouchDevice::TouchScreen;-
384 break;
never executed: break;
0
385 }-
386 break;
never executed: break;
0
387 }-
388-
389 case
executed 1548 times by 5 tests: case 2:
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
2:
executed 1548 times by 5 tests: case 2:
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
{
1548
390 XIValuatorClassInfo *vci = reinterpret_cast<XIValuatorClassInfo *>(classinfo);-
391-
392-
393 const int vciResolution = vci->resolution
vci->resolutionDescription
TRUEevaluated 774 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 774 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
? vci->resolution : 1;
774
394 if (vci->label == atom(QXcbAtom::AbsMTPositionX)
vci->label == ...bsMTPositionX)Description
TRUEnever evaluated
FALSEevaluated 1548 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
)
0-1548
395 caps |= QTouchDevice::Position | QTouchDevice::NormalizedPosition;
never executed: caps |= QTouchDevice::Position | QTouchDevice::NormalizedPosition;
0
396 else if (vci->label == atom(QXcbAtom::AbsMTTouchMajor)
vci->label == ...sMTTouchMajor)Description
TRUEnever evaluated
FALSEevaluated 1548 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
)
0-1548
397 caps |= QTouchDevice::Area;
never executed: caps |= QTouchDevice::Area;
0
398 else if (vci->label == atom(QXcbAtom::AbsMTOrientation)
vci->label == ...MTOrientation)Description
TRUEnever evaluated
FALSEevaluated 1548 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
)
0-1548
399 dev->providesTouchOrientation = true;
never executed: dev->providesTouchOrientation = true;
0
400 else if (vci->label == atom(QXcbAtom::AbsMTPressure)
vci->label == ...AbsMTPressure)Description
TRUEnever evaluated
FALSEevaluated 1548 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
|| vci->label == atom(QXcbAtom::AbsPressure)
vci->label == ...::AbsPressure)Description
TRUEnever evaluated
FALSEevaluated 1548 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
)
0-1548
401 caps |= QTouchDevice::Pressure;
never executed: caps |= QTouchDevice::Pressure;
0
402 else if (vci->label == atom(QXcbAtom::RelX)
vci->label == ...XcbAtom::RelX)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
FALSEevaluated 1290 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
) {
258-1290
403 hasRelativeCoords = true;-
404 dev->size.setWidth((vci->max - vci->min) * 1000.0 / vciResolution);-
405 }
executed 258 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
else if (vci->label == atom(QXcbAtom::RelY)
vci->label == ...XcbAtom::RelY)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
FALSEevaluated 1032 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
) {
258-1032
406 hasRelativeCoords = true;-
407 dev->size.setHeight((vci->max - vci->min) * 1000.0 / vciResolution);-
408 }
executed 258 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
else if (vci->label == atom(QXcbAtom::AbsX)
vci->label == ...XcbAtom::AbsX)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
FALSEevaluated 774 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
) {
258-774
409 caps |= QTouchDevice::Position;-
410 dev->size.setHeight((vci->max - vci->min) * 1000.0 / vciResolution);-
411 }
executed 258 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
else if (vci->label == atom(QXcbAtom::AbsY)
vci->label == ...XcbAtom::AbsY)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
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
) {
258-516
412 caps |= QTouchDevice::Position;-
413 dev->size.setWidth((vci->max - vci->min) * 1000.0 / vciResolution);-
414 }
executed 258 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
258
415 break;
executed 1548 times by 5 tests: break;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
1548
416 }-
417 default
executed 1032 times by 5 tests: default:
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
:
executed 1032 times by 5 tests: default:
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
1032
418 break;
executed 1032 times by 5 tests: break;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
1032
419 }-
420 }-
421 if (type < 0
type < 0Description
TRUEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
&& caps && hasRelativeCoords
hasRelativeCoordsDescription
TRUEnever evaluated
FALSEevaluated 258 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
) {
0-516
422 type = QTouchDevice::TouchPad;-
423 if (dev->size.width() < 10
dev->size.width() < 10Description
TRUEnever evaluated
FALSEnever evaluated
|| dev->size.height() < 10
dev->size.height() < 10Description
TRUEnever evaluated
FALSEnever evaluated
||
0
424 dev->size.width() > 10000
dev->size.width() > 10000Description
TRUEnever evaluated
FALSEnever evaluated
|| dev->size.height() > 10000
dev->size.height() > 10000Description
TRUEnever evaluated
FALSEnever evaluated
)
0
425 dev->size = QSizeF(130, 110);
never executed: dev->size = QSizeF(130, 110);
0
426 }
never executed: end of block
0
427 if (!isAtLeastXI22()
!isAtLeastXI22()Description
TRUEnever evaluated
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
|| type == QTouchDevice::TouchPad
type == QTouchDevice::TouchPadDescription
TRUEnever evaluated
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
)
0-516
428 caps |= QTouchDevice::MouseEmulation;
never executed: caps |= QTouchDevice::MouseEmulation;
0
429-
430 if (type >= QTouchDevice::TouchScreen
type >= QTouch...e::TouchScreenDescription
TRUEnever evaluated
FALSEevaluated 516 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
&& type <= QTouchDevice::TouchPad
type <= QTouchDevice::TouchPadDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-516
431 dev->qtTouchDevice = new QTouchDevice;-
432 dev->qtTouchDevice->setName(QString::fromUtf8(dev->xiDeviceInfo->name));-
433 dev->qtTouchDevice->setType((QTouchDevice::DeviceType)type);-
434 dev->qtTouchDevice->setCapabilities(caps);-
435 dev->qtTouchDevice->setMaximumTouchPoints(maxTouchPoints);-
436 if (caps != 0
caps != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
437 QWindowSystemInterface::registerTouchDevice(dev->qtTouchDevice);
never executed: QWindowSystemInterface::registerTouchDevice(dev->qtTouchDevice);
0
438 m_touchDevices[id] = dev;-
439 }
never executed: end of block
else {
0
440 XIFreeDeviceInfo(dev->xiDeviceInfo);-
441 delete dev;-
442 dev = 0;-
443 }
executed 516 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
516
444 }-
445 return
executed 516 times by 5 tests: return dev;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
dev;
executed 516 times by 5 tests: return dev;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
516
446}-
447-
448-
449static inline qreal fixed1616ToReal(FP1616 val)-
450{-
451 return
never executed: return qreal(val) / 0x10000;
qreal(val) / 0x10000;
never executed: return qreal(val) / 0x10000;
0
452}-
453-
454-
455void QXcbConnection::xi2HandleEvent(xcb_ge_event_t *event)-
456{-
457 xi2PrepareXIGenericDeviceEvent(event);-
458 xXIGenericDeviceEvent *xiEvent = reinterpret_cast<xXIGenericDeviceEvent *>(event);-
459 int sourceDeviceId = xiEvent->deviceid;-
460 xXIDeviceEvent *xiDeviceEvent = 0;-
461 xXIEnterEvent *xiEnterEvent = 0;-
462 QXcbWindowEventListener *eventListener = 0;-
463-
464 switch (xiEvent->evtype) {-
465 case
never executed: case 4:
4:
never executed: case 4:
0
466 case
never executed: case 5:
5:
never executed: case 5:
0
467 case
executed 410 times by 18 tests: case 6:
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
6:
executed 410 times by 18 tests: case 6:
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
468-
469 case
never executed: case 18:
18:
never executed: case 18:
0
470 case
never executed: case 19:
19:
never executed: case 19:
0
471 case
never executed: case 20:
20:
never executed: case 20:
0
472-
473 {-
474 xiDeviceEvent = reinterpret_cast<xXIDeviceEvent *>(event);-
475 eventListener = windowEventListenerFromId(xiDeviceEvent->event);-
476 sourceDeviceId = xiDeviceEvent->sourceid;-
477 break;
executed 410 times by 18 tests: break;
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
478 }-
479 case
executed 865 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
  • ...
7:
executed 865 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
  • ...
865
480 case
executed 810 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
  • ...
8:
executed 810 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
  • ...
{
810
481 xiEnterEvent = reinterpret_cast<xXIEnterEvent *>(event);-
482 eventListener = windowEventListenerFromId(xiEnterEvent->event);-
483 sourceDeviceId = xiEnterEvent->sourceid;-
484 break;
executed 1675 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
  • ...
1675
485 }-
486 case
never executed: case 11:
11:
never executed: case 11:
0
487 xi2HandleHierachyEvent(xiEvent);-
488 return;
never executed: return;
0
489 case
never executed: case 1:
1:
never executed: case 1:
0
490 xi2HandleDeviceChangedEvent(xiEvent);-
491 return;
never executed: return;
0
492 default
never executed: default:
:
never executed: default:
0
493 break;
never executed: break;
0
494 }-
495-
496 if (eventListener
eventListenerDescription
TRUEevaluated 1223 times by 68 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 862 times by 54 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_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QItemView
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • ...
) {
862-1223
497 long result = 0;-
498 if (eventListener->handleGenericEvent(reinterpret_cast<xcb_generic_event_t *>(event), &result)
eventListener-...ent), &result)Description
TRUEnever evaluated
FALSEevaluated 1223 times by 68 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-1223
499 return;
never executed: return;
0
500 }
executed 1223 times by 68 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
  • ...
1223
501-
502-
503 if (!xiEnterEvent
!xiEnterEventDescription
TRUEevaluated 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
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
  • ...
) {
410-1675
504 QXcbConnection::TabletData *tablet = tabletDataForDevice(sourceDeviceId);-
505 if (tablet
tabletDescription
TRUEnever evaluated
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
&& xi2HandleTabletEvent(xiEvent, tablet, eventListener)
xi2HandleTable...eventListener)Description
TRUEnever evaluated
FALSEnever evaluated
)
0-410
506 return;
never executed: return;
0
507 }
executed 410 times by 18 tests: end of block
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
508-
509-
510-
511 QHash<int, ScrollingDevice>::iterator device = m_scrollingDevices.find(sourceDeviceId);-
512 if (device != m_scrollingDevices.end()
device != m_sc...gDevices.end()Description
TRUEnever evaluated
FALSEevaluated 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
  • ...
)
0-2085
513 xi2HandleScrollEvent(xiEvent, device.value());
never executed: xi2HandleScrollEvent(xiEvent, device.value());
0
514-
515-
516-
517 if (xiDeviceEvent
xiDeviceEventDescription
TRUEevaluated 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
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
  • ...
) {
410-1675
518 switch (xiDeviceEvent->evtype) {-
519 case
never executed: case 4:
4:
never executed: case 4:
0
520 case
never executed: case 5:
5:
never executed: case 5:
0
521 case
executed 410 times by 18 tests: case 6:
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
6:
executed 410 times by 18 tests: case 6:
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
522 if (xi2MouseEvents()
xi2MouseEvents()Description
TRUEevaluated 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
FALSEnever evaluated
&& eventListener
eventListenerDescription
TRUEevaluated 386 times by 17 tests
Evaluated 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
FALSEevaluated 24 times by 7 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QItemView
  • tst_QMenuBar
  • tst_QTableView
&& !(xiDeviceEvent->flags & (1 << 16))
!(xiDeviceEven...s & (1 << 16))Description
TRUEevaluated 386 times by 17 tests
Evaluated 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
FALSEnever evaluated
)
0-410
523 eventListener->handleXIMouseEvent(event);
executed 386 times by 17 tests: eventListener->handleXIMouseEvent(event);
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
524 break;
executed 410 times by 18 tests: break;
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
525-
526 case
never executed: case 18:
18:
never executed: case 18:
0
527 case
never executed: case 19:
19:
never executed: case 19:
0
528 case
never executed: case 20:
20:
never executed: case 20:
0
529 if (__builtin_expect(!!(lcQpaXInputEvents().isDebugEnabled()), false)
__builtin_expe...led()), false)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
530 for (bool qt_category_enabled = lcQpaXInputEvents().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(
never executed: QMessageLogger( __FILE__ , 562 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 touch event type %d seq %d detail %d pos %6.1f, %6.1f root pos %6.1f, %6.1f on window %x", event->event_type, xiDeviceEvent->sequenceNumber, xiDeviceEvent->detail, fixed1616ToReal(xiDeviceEvent->event_x), fixed1616ToReal(xiDeviceEvent->event_y), fixed1616ToReal(xiDeviceEvent->root_x), fixed1616ToReal(xiDeviceEvent->root_y),xiDeviceEvent->event) ;
0
5310
5320
533 __FILE__
never executed: QMessageLogger( __FILE__ , 562 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 touch event type %d seq %d detail %d pos %6.1f, %6.1f root pos %6.1f, %6.1f on window %x", event->event_type, xiDeviceEvent->sequenceNumber, xiDeviceEvent->detail, fixed1616ToReal(xiDeviceEvent->event_x), fixed1616ToReal(xiDeviceEvent->event_y), fixed1616ToReal(xiDeviceEvent->root_x), fixed1616ToReal(xiDeviceEvent->root_y),xiDeviceEvent->event) ;
0
534 ,
never executed: QMessageLogger( __FILE__ , 562 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 touch event type %d seq %d detail %d pos %6.1f, %6.1f root pos %6.1f, %6.1f on window %x", event->event_type, xiDeviceEvent->sequenceNumber, xiDeviceEvent->detail, fixed1616ToReal(xiDeviceEvent->event_x), fixed1616ToReal(xiDeviceEvent->event_y), fixed1616ToReal(xiDeviceEvent->root_x), fixed1616ToReal(xiDeviceEvent->root_y),xiDeviceEvent->event) ;
0
5350
5360
537 562
never executed: QMessageLogger( __FILE__ , 562 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 touch event type %d seq %d detail %d pos %6.1f, %6.1f root pos %6.1f, %6.1f on window %x", event->event_type, xiDeviceEvent->sequenceNumber, xiDeviceEvent->detail, fixed1616ToReal(xiDeviceEvent->event_x), fixed1616ToReal(xiDeviceEvent->event_y), fixed1616ToReal(xiDeviceEvent->root_x), fixed1616ToReal(xiDeviceEvent->root_y),xiDeviceEvent->event) ;
0
538 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 touch event type %d seq %d detail %d pos %6.1f, %6.1f root pos %6.1f, %6.1f on window %x", event->event_type, xiDeviceEvent->sequenceNumber, xiDeviceEvent->detail, fixed1616ToReal(xiDeviceEvent->event_x), fixed1616ToReal(xiDeviceEvent->event_y), fixed1616ToReal(xiDeviceEvent->root_x), fixed1616ToReal(xiDeviceEvent->root_y),xiDeviceEvent->event)
never executed: QMessageLogger( __FILE__ , 562 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 touch event type %d seq %d detail %d pos %6.1f, %6.1f root pos %6.1f, %6.1f on window %x", event->event_type, xiDeviceEvent->sequenceNumber, xiDeviceEvent->detail, fixed1616ToReal(xiDeviceEvent->event_x), fixed1616ToReal(xiDeviceEvent->event_y), fixed1616ToReal(xiDeviceEvent->root_x), fixed1616ToReal(xiDeviceEvent->root_y),xiDeviceEvent->event) ;
0
5390
5400
541 ;
never executed: QMessageLogger( __FILE__ , 562 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 touch event type %d seq %d detail %d pos %6.1f, %6.1f root pos %6.1f, %6.1f on window %x", event->event_type, xiDeviceEvent->sequenceNumber, xiDeviceEvent->detail, fixed1616ToReal(xiDeviceEvent->event_x), fixed1616ToReal(xiDeviceEvent->event_y), fixed1616ToReal(xiDeviceEvent->root_x), fixed1616ToReal(xiDeviceEvent->root_y),xiDeviceEvent->event) ;
0
542 if (QXcbWindow *platformWindow = platformWindowFromId(xiDeviceEvent->event)
QXcbWindow *pl...eEvent->event)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
543 xi2ProcessTouch(xiDeviceEvent, platformWindow);
never executed: xi2ProcessTouch(xiDeviceEvent, platformWindow);
0
544 break;
never executed: break;
0
545 }-
546 }
executed 410 times by 18 tests: end of block
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
else if (xiEnterEvent
xiEnterEventDescription
TRUEevaluated 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
  • ...
FALSEnever evaluated
&& xi2MouseEvents()
xi2MouseEvents()Description
TRUEevaluated 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
  • ...
FALSEnever evaluated
&& eventListener
eventListenerDescription
TRUEevaluated 837 times by 68 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 838 times by 54 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_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QItemView
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • ...
) {
0-1675
547 switch (xiEnterEvent->evtype) {-
548 case
executed 695 times by 68 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
  • ...
7:
executed 695 times by 68 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
  • ...
695
549 case
executed 142 times by 25 tests: case 8:
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QListView
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QOpenGLWidget
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWindow
8:
executed 142 times by 25 tests: case 8:
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QListView
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QOpenGLWidget
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWindow
142
550 eventListener->handleXIEnterLeave(event);-
551 break;
executed 837 times by 68 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
  • ...
837
552 }-
553 }
executed 837 times by 68 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
  • ...
837
554-
555}
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
556-
557-
558static qreal valuatorNormalized(double value, XIValuatorClassInfo *vci)-
559{-
560 if (value > vci->max
value > vci->maxDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
561 value = vci->max;
never executed: value = vci->max;
0
562 if (value < vci->min
value < vci->minDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
563 value = vci->min;
never executed: value = vci->min;
0
564 return
never executed: return (value - vci->min) / (vci->max - vci->min);
(value - vci->min) / (vci->max - vci->min);
never executed: return (value - vci->min) / (vci->max - vci->min);
0
565}-
566-
567void QXcbConnection::xi2ProcessTouch(void *xiDevEvent, QXcbWindow *platformWindow)-
568{-
569 xXIDeviceEvent *xiDeviceEvent = static_cast<xXIDeviceEvent *>(xiDevEvent);-
570 XInput2TouchDeviceData *dev = touchDeviceForId(xiDeviceEvent->sourceid);-
571 ((!(dev)) ? qt_assert("dev",__FILE__,592) : qt_noop());-
572 const bool firstTouch = dev->touchPoints.isEmpty();-
573 if (xiDeviceEvent->evtype == 18
xiDeviceEvent->evtype == 18Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
574 QWindowSystemInterface::TouchPoint tp;-
575 tp.id = xiDeviceEvent->detail % 2147483647;-
576 tp.state = Qt::TouchPointPressed;-
577 tp.pressure = -1.0;-
578 dev->touchPoints[tp.id] = tp;-
579 }
never executed: end of block
0
580 QWindowSystemInterface::TouchPoint &touchPoint = dev->touchPoints[xiDeviceEvent->detail];-
581 QXcbScreen* screen = platformWindow->xcbScreen();-
582 qreal x = fixed1616ToReal(xiDeviceEvent->root_x);-
583 qreal y = fixed1616ToReal(xiDeviceEvent->root_y);-
584 qreal nx = -1.0, ny = -1.0;-
585 qreal w = 0.0, h = 0.0;-
586 bool majorAxisIsY = touchPoint.area.height() > touchPoint.area.width();-
587 for (int i = 0; i < dev->xiDeviceInfo->num_classes
i < dev->xiDev...o->num_classesDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
588 XIAnyClassInfo *classinfo = dev->xiDeviceInfo->classes[i];-
589 if (classinfo->type == 2
classinfo->type == 2Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
590 XIValuatorClassInfo *vci = reinterpret_cast<XIValuatorClassInfo *>(classinfo);-
591 int n = vci->number;-
592 double value;-
593 if (!xi2GetValuatorValueIfSet(xiDeviceEvent, n, &value)
!xi2GetValuato...nt, n, &value)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
594 continue;
never executed: continue;
0
595 if (__builtin_expect(!!(lcQpaXInputEvents().isDebugEnabled()), false)
__builtin_expe...led()), false)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
596 for (bool qt_category_enabled = lcQpaXInputEvents().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(
never executed: QMessageLogger( __FILE__ , 618 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug(" valuator %20s value %lf from range %lf -> %lf", atomName(vci->label).constData(), value, vci->min, vci->max) ;
0
597 __FILE__
never executed: QMessageLogger( __FILE__ , 618 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug(" valuator %20s value %lf from range %lf -> %lf", atomName(vci->label).constData(), value, vci->min, vci->max) ;
0
598 ,
never executed: QMessageLogger( __FILE__ , 618 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug(" valuator %20s value %lf from range %lf -> %lf", atomName(vci->label).constData(), value, vci->min, vci->max) ;
0
599 618
never executed: QMessageLogger( __FILE__ , 618 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug(" valuator %20s value %lf from range %lf -> %lf", atomName(vci->label).constData(), value, vci->min, vci->max) ;
0
600 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug(" valuator %20s value %lf from range %lf -> %lf", atomName(vci->label).constData(), value, vci->min, vci->max)
never executed: QMessageLogger( __FILE__ , 618 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug(" valuator %20s value %lf from range %lf -> %lf", atomName(vci->label).constData(), value, vci->min, vci->max) ;
0
601 ;
never executed: QMessageLogger( __FILE__ , 618 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug(" valuator %20s value %lf from range %lf -> %lf", atomName(vci->label).constData(), value, vci->min, vci->max) ;
0
602 if (vci->label == atom(QXcbAtom::RelX)
vci->label == ...XcbAtom::RelX)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
603 nx = valuatorNormalized(value, vci);-
604 }
never executed: end of block
else if (vci->label == atom(QXcbAtom::RelY)
vci->label == ...XcbAtom::RelY)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
605 ny = valuatorNormalized(value, vci);-
606 }
never executed: end of block
else if (vci->label == atom(QXcbAtom::AbsX)
vci->label == ...XcbAtom::AbsX)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
607 nx = valuatorNormalized(value, vci);-
608 }
never executed: end of block
else if (vci->label == atom(QXcbAtom::AbsY)
vci->label == ...XcbAtom::AbsY)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
609 ny = valuatorNormalized(value, vci);-
610 }
never executed: end of block
else if (vci->label == atom(QXcbAtom::AbsMTPositionX)
vci->label == ...bsMTPositionX)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
611 nx = valuatorNormalized(value, vci);-
612 }
never executed: end of block
else if (vci->label == atom(QXcbAtom::AbsMTPositionY)
vci->label == ...bsMTPositionY)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
613 ny = valuatorNormalized(value, vci);-
614 }
never executed: end of block
else if (vci->label == atom(QXcbAtom::AbsMTTouchMajor)
vci->label == ...sMTTouchMajor)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
615 const qreal sw = screen->geometry().width();-
616 const qreal sh = screen->geometry().height();-
617 w = valuatorNormalized(value, vci) * std::sqrt(sw * sw + sh * sh);-
618 }
never executed: end of block
else if (vci->label == atom(QXcbAtom::AbsMTTouchMinor)
vci->label == ...sMTTouchMinor)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
619 const qreal sw = screen->geometry().width();-
620 const qreal sh = screen->geometry().height();-
621 h = valuatorNormalized(value, vci) * std::sqrt(sw * sw + sh * sh);-
622 }
never executed: end of block
else if (vci->label == atom(QXcbAtom::AbsMTOrientation)
vci->label == ...MTOrientation)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
623-
624-
625-
626-
627-
628 value = qAbs(value);-
629 while (value > vci->max
value > vci->maxDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
630 value -= 2 * vci->max;
never executed: value -= 2 * vci->max;
0
631 value = qAbs(value);-
632 majorAxisIsY = value < vci->max - value;-
633 }
never executed: end of block
else if (vci->label == atom(QXcbAtom::AbsMTPressure)
vci->label == ...AbsMTPressure)Description
TRUEnever evaluated
FALSEnever evaluated
||
0
634 vci->label == atom(QXcbAtom::AbsPressure)
vci->label == ...::AbsPressure)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
635 touchPoint.pressure = valuatorNormalized(value, vci);-
636 }
never executed: end of block
0
637 }
never executed: end of block
0
638 }
never executed: end of block
0
639-
640 if (nx == -1.0
nx == -1.0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
641 x = touchPoint.area.center().x();-
642 nx = x / screen->geometry().width();-
643 }
never executed: end of block
0
644 if (ny == -1.0
ny == -1.0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
645 y = touchPoint.area.center().y();-
646 ny = y / screen->geometry().height();-
647 }
never executed: end of block
0
648 if (xiDeviceEvent->evtype != 20
xiDeviceEvent->evtype != 20Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
649 if (!dev->providesTouchOrientation
!dev->providesTouchOrientationDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
650 if (w == 0.0
w == 0.0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
651 w = touchPoint.area.width();
never executed: w = touchPoint.area.width();
0
652 h = w;-
653 }
never executed: end of block
else {
0
654 if (w == 0.0
w == 0.0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
655 w = qMax(touchPoint.area.width(), touchPoint.area.height());
never executed: w = qMax(touchPoint.area.width(), touchPoint.area.height());
0
656 if (h == 0.0
h == 0.0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
657 h = qMin(touchPoint.area.width(), touchPoint.area.height());
never executed: h = qMin(touchPoint.area.width(), touchPoint.area.height());
0
658 if (majorAxisIsY
majorAxisIsYDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
659 qSwap(w, h);
never executed: qSwap(w, h);
0
660 }
never executed: end of block
0
661 }-
662-
663 switch (xiDeviceEvent->evtype) {-
664 case
never executed: case 18:
18:
never executed: case 18:
0
665 if (firstTouch
firstTouchDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
666 dev->firstPressedPosition = QPointF(x, y);-
667 dev->firstPressedNormalPosition = QPointF(nx, ny);-
668 }
never executed: end of block
0
669 dev->pointPressedPosition.insert(touchPoint.id, QPointF(x, y));-
670-
671-
672-
673 if (m_xiGrab
m_xiGrabDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
674 XIAllowTouchEvents(static_cast<Display *>(m_xlib_display), xiDeviceEvent->deviceid,-
675 xiDeviceEvent->detail, xiDeviceEvent->event, 6);-
676-
677 }
never executed: end of block
0
678 break;
never executed: break;
0
679 case
never executed: case 19:
19:
never executed: case 19:
0
680 if (dev->qtTouchDevice->type() == QTouchDevice::TouchPad
dev->qtTouchDe...vice::TouchPadDescription
TRUEnever evaluated
FALSEnever evaluated
&& dev->pointPressedPosition.value(touchPoint.id) == QPointF(x, y)
dev->pointPres... QPointF(x, y)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
681 qreal dx = (nx - dev->firstPressedNormalPosition.x()) *-
682 dev->size.width() * screen->geometry().width() / screen->physicalSize().width();-
683 qreal dy = (ny - dev->firstPressedNormalPosition.y()) *-
684 dev->size.height() * screen->geometry().height() / screen->physicalSize().height();-
685 x = dev->firstPressedPosition.x() + dx;-
686 y = dev->firstPressedPosition.y() + dy;-
687 touchPoint.state = Qt::TouchPointMoved;-
688 }
never executed: end of block
else if (touchPoint.area.center() != QPoint(x, y)
touchPoint.are...= QPoint(x, y)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
689 touchPoint.state = Qt::TouchPointMoved;-
690 dev->pointPressedPosition[touchPoint.id] = QPointF(x, y);-
691 }
never executed: end of block
0
692 break;
never executed: break;
0
693 case
never executed: case 20:
20:
never executed: case 20:
0
694 touchPoint.state = Qt::TouchPointReleased;-
695 if (dev->qtTouchDevice->type() == QTouchDevice::TouchPad
dev->qtTouchDe...vice::TouchPadDescription
TRUEnever evaluated
FALSEnever evaluated
&& dev->pointPressedPosition.value(touchPoint.id) == QPointF(x, y)
dev->pointPres... QPointF(x, y)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
696 qreal dx = (nx - dev->firstPressedNormalPosition.x()) *-
697 dev->size.width() * screen->geometry().width() / screen->physicalSize().width();-
698 qreal dy = (ny - dev->firstPressedNormalPosition.y()) *-
699 dev->size.width() * screen->geometry().width() / screen->physicalSize().width();-
700 x = dev->firstPressedPosition.x() + dx;-
701 y = dev->firstPressedPosition.y() + dy;-
702 }
never executed: end of block
0
703 dev->pointPressedPosition.remove(touchPoint.id);-
704 }
never executed: end of block
0
705 touchPoint.area = QRectF(x - w/2, y - h/2, w, h);-
706 touchPoint.normalPosition = QPointF(nx, ny);-
707-
708 if (__builtin_expect(!!(lcQpaXInputEvents().isDebugEnabled()), false)
__builtin_expe...led()), false)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
709 for (bool qt_category_enabled = lcQpaXInputEvents().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 745, __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug() << " touchpoint " << touchPoint.id << " state " << touchPoint.state << " pos norm " << touchPoint.normalPosition <<
never executed: QMessageLogger(__FILE__, 745, __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug() << " touchpoint " << touchPoint.id << " state " << touchPoint.state << " pos norm " << touchPoint.normalPosition << " area " << touchPoint.area << " pressure " << touchPoint.pressure;
0
710 " area " << touchPoint.area << " pressure " << touchPoint.pressure;
never executed: QMessageLogger(__FILE__, 745, __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug() << " touchpoint " << touchPoint.id << " state " << touchPoint.state << " pos norm " << touchPoint.normalPosition << " area " << touchPoint.area << " pressure " << touchPoint.pressure;
0
711 QWindowSystemInterface::handleTouchEvent(platformWindow->window(), xiDeviceEvent->time, dev->qtTouchDevice, dev->touchPoints.values());-
712 if (touchPoint.state == Qt::TouchPointReleased
touchPoint.sta...hPointReleasedDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
713-
714 dev->touchPoints.remove(touchPoint.id);
never executed: dev->touchPoints.remove(touchPoint.id);
0
715 else-
716-
717-
718 touchPoint.state = Qt::TouchPointStationary;
never executed: touchPoint.state = Qt::TouchPointStationary;
0
719}-
720-
721bool QXcbConnection::xi2SetMouseGrabEnabled(xcb_window_t w, bool grab)-
722{-
723 if (grab
grabDescription
TRUEevaluated 197 times by 21 tests
Evaluated 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
FALSEevaluated 168 times by 21 tests
Evaluated 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
&& !canGrab()
!canGrab()Description
TRUEnever evaluated
FALSEevaluated 197 times by 21 tests
Evaluated 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
)
0-197
724 return
never executed: return false;
false;
never executed: return false;
0
725-
726 int num_devices = 0;-
727 Display *xDisplay = static_cast<Display *>(xlib_display());-
728 XIDeviceInfo *info = XIQueryDevice(xDisplay, 1, &num_devices);-
729 if (!info
!infoDescription
TRUEnever evaluated
FALSEevaluated 365 times by 21 tests
Evaluated 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
)
0-365
730 return
never executed: return false;
false;
never executed: return false;
0
731-
732 XIEventMask evmask;-
733 unsigned char mask[(((26) >> 3) + 1)];-
734 evmask.mask = mask;-
735 evmask.mask_len = sizeof(mask);-
736 memset(mask, 0, sizeof(mask));-
737 evmask.deviceid = 1;-
738-
739 (((unsigned char*)(mask))[(4)>>3] |= (1 << ((4) & 7)));-
740 (((unsigned char*)(mask))[(5)>>3] |= (1 << ((5) & 7)));-
741 (((unsigned char*)(mask))[(6)>>3] |= (1 << ((6) & 7)));-
742 (((unsigned char*)(mask))[(7)>>3] |= (1 << ((7) & 7)));-
743 (((unsigned char*)(mask))[(8)>>3] |= (1 << ((8) & 7)));-
744 (((unsigned char*)(mask))[(18)>>3] |= (1 << ((18) & 7)));-
745 (((unsigned char*)(mask))[(19)>>3] |= (1 << ((19) & 7)));-
746 (((unsigned char*)(mask))[(20)>>3] |= (1 << ((20) & 7)));-
747-
748 bool grabbed = true;-
749 for (int i = 0; i < num_devices
i < num_devicesDescription
TRUEevaluated 730 times by 21 tests
Evaluated 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
FALSEevaluated 365 times by 21 tests
Evaluated 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
; i++) {
365-730
750 int id = info[i].deviceid, n = 0;-
751 XIDeviceInfo *deviceInfo = XIQueryDevice(xDisplay, id, &n);-
752 if (deviceInfo
deviceInfoDescription
TRUEevaluated 730 times by 21 tests
Evaluated 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
FALSEnever evaluated
) {
0-730
753 const bool grabbable = deviceInfo->use != 2;-
754 XIFreeDeviceInfo(deviceInfo);-
755 if (!grabbable
!grabbableDescription
TRUEevaluated 365 times by 21 tests
Evaluated 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
FALSEevaluated 365 times by 21 tests
Evaluated 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
)
365
756 continue;
executed 365 times by 21 tests: continue;
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
365
757 }
executed 365 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
365
758 if (!grab
!grabDescription
TRUEevaluated 168 times by 21 tests
Evaluated 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
FALSEevaluated 197 times by 21 tests
Evaluated 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
) {
168-197
759 int result = XIUngrabDevice(xDisplay, id, 0L);-
760 if (result != 0
result != 0Description
TRUEnever evaluated
FALSEevaluated 168 times by 21 tests
Evaluated 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
) {
0-168
761 grabbed = false;-
762 for (bool qt_category_enabled = lcQpaXInput().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 798, __PRETTY_FUNCTION__, lcQpaXInput().categoryName()).debug("XInput 2.2: failed to ungrab events for device %d (result %d)", id, result);
never executed: QMessageLogger(__FILE__, 798, __PRETTY_FUNCTION__, lcQpaXInput().categoryName()).debug("XInput 2.2: failed to ungrab events for device %d (result %d)", id, result);
0
763 }
never executed: end of block
0
764 }
executed 168 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
else {
168
765 int result = XIGrabDevice(xDisplay, id, w, 0L, 0L, 1,-
766 1, 0, &evmask);-
767 if (result != 0
result != 0Description
TRUEnever evaluated
FALSEevaluated 197 times by 21 tests
Evaluated 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
) {
0-197
768 grabbed = false;-
769 for (bool qt_category_enabled = lcQpaXInput().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 805, __PRETTY_FUNCTION__, lcQpaXInput().categoryName()).debug("XInput 2.2: failed to grab events for device %d on window %x (result %d)", id, w, result);
never executed: QMessageLogger(__FILE__, 805, __PRETTY_FUNCTION__, lcQpaXInput().categoryName()).debug("XInput 2.2: failed to grab events for device %d on window %x (result %d)", id, w, result);
0
770 }
never executed: end of block
0
771 }
executed 197 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
197
772 }-
773-
774 XIFreeDeviceInfo(info);-
775-
776 m_xiGrab = grabbed;-
777-
778 return
executed 365 times by 21 tests: return grabbed;
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
grabbed;
executed 365 times by 21 tests: return grabbed;
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
365
779}-
780-
781-
782void QXcbConnection::xi2HandleHierachyEvent(void *event)-
783{-
784 xXIHierarchyEvent *xiEvent = reinterpret_cast<xXIHierarchyEvent *>(event);-
785-
786 if (!(xiEvent->flags & ((1 << 3) | (1 << 2)))
!(xiEvent->fla...) | (1 << 2)))Description
TRUEnever evaluated
FALSEnever evaluated
)
0
787 return;
never executed: return;
0
788 xi2SetupDevices();-
789-
790 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(m_mapper.keys())>::type> _container_((m_mapper.keys())); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (xcb_window_t window = *_container_.i; _container_.control; _container_.control = 0) {-
791 xi2Select(window);-
792 }
never executed: end of block
0
793}
never executed: end of block
0
794-
795void QXcbConnection::xi2HandleDeviceChangedEvent(void *event)-
796{-
797 xXIDeviceChangedEvent *xiEvent = reinterpret_cast<xXIDeviceChangedEvent *>(event);-
798-
799-
800 if (xiEvent->reason != 1
xiEvent->reason != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
801 return;
never executed: return;
0
802-
803-
804-
805-
806-
807-
808-
809 QHash<int, ScrollingDevice>::iterator device = m_scrollingDevices.find(xiEvent->sourceid);-
810 if (device == m_scrollingDevices.end()
device == m_sc...gDevices.end()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
811 return;
never executed: return;
0
812-
813 int nrDevices = 0;-
814 XIDeviceInfo* xiDeviceInfo = XIQueryDevice(static_cast<Display *>(m_xlib_display), xiEvent->sourceid, &nrDevices);-
815 if (nrDevices <= 0
nrDevices <= 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
816 for (bool qt_category_enabled = lcQpaXInputDevices().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 852, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug("scrolling device %d no longer present", xiEvent->sourceid);
never executed: QMessageLogger(__FILE__, 852, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug("scrolling device %d no longer present", xiEvent->sourceid);
0
817 return;
never executed: return;
0
818 }-
819 updateScrollingDevice(*device, xiDeviceInfo->num_classes, xiDeviceInfo->classes);-
820 XIFreeDeviceInfo(xiDeviceInfo);-
821-
822}
never executed: end of block
0
823-
824void QXcbConnection::updateScrollingDevice(ScrollingDevice &scrollingDevice, int num_classes, void *classInfo)-
825{-
826-
827 XIAnyClassInfo **classes = reinterpret_cast<XIAnyClassInfo**>(classInfo);-
828 QPointF lastScrollPosition;-
829 if (lcQpaXInput().isDebugEnabled()
lcQpaXInput().isDebugEnabled()Description
TRUEnever evaluated
FALSEevaluated 2756 times by 68 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-2756
830 lastScrollPosition = scrollingDevice.lastScrollPosition;
never executed: lastScrollPosition = scrollingDevice.lastScrollPosition;
0
831 for (int c = 0; c < num_classes
c < num_classesDescription
TRUEevaluated 13780 times by 68 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 2756 times by 68 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
  • ...
; ++c) {
2756-13780
832 if (classes[c]->type == 2
classes[c]->type == 2Description
TRUEevaluated 8268 times by 68 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 5512 times by 68 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
  • ...
) {
5512-8268
833 XIValuatorClassInfo *vci = reinterpret_cast<XIValuatorClassInfo *>(classes[c]);-
834 const int valuatorAtom = qatom(vci->label);-
835 if (valuatorAtom == QXcbAtom::RelHorizScroll
valuatorAtom =...RelHorizScrollDescription
TRUEnever evaluated
FALSEevaluated 8268 times by 68 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
  • ...
|| valuatorAtom == QXcbAtom::RelHorizWheel
valuatorAtom =...:RelHorizWheelDescription
TRUEevaluated 1378 times by 68 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 6890 times by 68 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-8268
836 scrollingDevice.lastScrollPosition.setX(vci->value);
executed 1378 times by 68 tests: scrollingDevice.lastScrollPosition.setX(vci->value);
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
  • ...
1378
837 else if (valuatorAtom == QXcbAtom::RelVertScroll
valuatorAtom =...:RelVertScrollDescription
TRUEnever evaluated
FALSEevaluated 6890 times by 68 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
  • ...
|| valuatorAtom == QXcbAtom::RelVertWheel
valuatorAtom =...::RelVertWheelDescription
TRUEevaluated 1378 times by 68 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 5512 times by 68 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-6890
838 scrollingDevice.lastScrollPosition.setY(vci->value);
executed 1378 times by 68 tests: scrollingDevice.lastScrollPosition.setY(vci->value);
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
  • ...
1378
839 }
executed 8268 times by 68 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
  • ...
8268
840 }
executed 13780 times by 68 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
  • ...
13780
841 if (__builtin_expect(!!(lcQpaXInputEvents().isDebugEnabled() && lastScrollPosition != scrollingDevice.lastScrollPosition), false)
__builtin_expe...ition), false)Description
TRUEnever evaluated
FALSEevaluated 2756 times by 68 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-2756
842 for (bool qt_category_enabled = lcQpaXInputEvents().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(
never executed: QMessageLogger( __FILE__ , 881 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("scrolling device %d moved from (%f, %f) to (%f, %f)", scrollingDevice.deviceId, lastScrollPosition.x(), lastScrollPosition.y(), scrollingDevice.lastScrollPosition.x(), scrollingDevice.lastScrollPosition.y()) ;
0
8430
8440
845 __FILE__
never executed: QMessageLogger( __FILE__ , 881 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("scrolling device %d moved from (%f, %f) to (%f, %f)", scrollingDevice.deviceId, lastScrollPosition.x(), lastScrollPosition.y(), scrollingDevice.lastScrollPosition.x(), scrollingDevice.lastScrollPosition.y()) ;
0
846 ,
never executed: QMessageLogger( __FILE__ , 881 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("scrolling device %d moved from (%f, %f) to (%f, %f)", scrollingDevice.deviceId, lastScrollPosition.x(), lastScrollPosition.y(), scrollingDevice.lastScrollPosition.x(), scrollingDevice.lastScrollPosition.y()) ;
0
8470
8480
849 881
never executed: QMessageLogger( __FILE__ , 881 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("scrolling device %d moved from (%f, %f) to (%f, %f)", scrollingDevice.deviceId, lastScrollPosition.x(), lastScrollPosition.y(), scrollingDevice.lastScrollPosition.x(), scrollingDevice.lastScrollPosition.y()) ;
0
850 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("scrolling device %d moved from (%f, %f) to (%f, %f)", scrollingDevice.deviceId, lastScrollPosition.x(), lastScrollPosition.y(), scrollingDevice.lastScrollPosition.x(), scrollingDevice.lastScrollPosition.y())
never executed: QMessageLogger( __FILE__ , 881 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("scrolling device %d moved from (%f, %f) to (%f, %f)", scrollingDevice.deviceId, lastScrollPosition.x(), lastScrollPosition.y(), scrollingDevice.lastScrollPosition.x(), scrollingDevice.lastScrollPosition.y()) ;
0
8510
8520
853 ;
never executed: QMessageLogger( __FILE__ , 881 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("scrolling device %d moved from (%f, %f) to (%f, %f)", scrollingDevice.deviceId, lastScrollPosition.x(), lastScrollPosition.y(), scrollingDevice.lastScrollPosition.x(), scrollingDevice.lastScrollPosition.y()) ;
0
854-
855-
856-
857-
858-
859}
executed 2756 times by 68 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
  • ...
2756
860-
861-
862void QXcbConnection::handleEnterEvent()-
863{-
864 QHash<int, ScrollingDevice>::iterator it = m_scrollingDevices.begin();-
865 const QHash<int, ScrollingDevice>::iterator end = m_scrollingDevices.end();-
866 while (it != end
it != endDescription
TRUEevaluated 2756 times by 68 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 689 times by 68 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
  • ...
) {
689-2756
867 ScrollingDevice& scrollingDevice = it.value();-
868 int nrDevices = 0;-
869 XIDeviceInfo* xiDeviceInfo = XIQueryDevice(static_cast<Display *>(m_xlib_display), scrollingDevice.deviceId, &nrDevices);-
870 if (nrDevices <= 0
nrDevices <= 0Description
TRUEnever evaluated
FALSEevaluated 2756 times by 68 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-2756
871 for (bool qt_category_enabled = lcQpaXInputDevices().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 899, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug("scrolling device %d no longer present", scrollingDevice.deviceId);
never executed: QMessageLogger(__FILE__, 899, __PRETTY_FUNCTION__, lcQpaXInputDevices().categoryName()).debug("scrolling device %d no longer present", scrollingDevice.deviceId);
0
872 it = m_scrollingDevices.erase(it);-
873 continue;
never executed: continue;
0
874 }-
875 updateScrollingDevice(scrollingDevice, xiDeviceInfo->num_classes, xiDeviceInfo->classes);-
876 XIFreeDeviceInfo(xiDeviceInfo);-
877 ++it;-
878 }
executed 2756 times by 68 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
  • ...
2756
879}
executed 689 times by 68 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
  • ...
689
880-
881-
882void QXcbConnection::xi2HandleScrollEvent(void *event, ScrollingDevice &scrollingDevice)-
883{-
884-
885 xXIGenericDeviceEvent *xiEvent = reinterpret_cast<xXIGenericDeviceEvent *>(event);-
886-
887 if (xiEvent->evtype == 6
xiEvent->evtype == 6Description
TRUEnever evaluated
FALSEnever evaluated
&& scrollingDevice.orientations
scrollingDevice.orientationsDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
888 xXIDeviceEvent* xiDeviceEvent = reinterpret_cast<xXIDeviceEvent *>(event);-
889 if (QXcbWindow *platformWindow = platformWindowFromId(xiDeviceEvent->event)
QXcbWindow *pl...eEvent->event)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
890 QPoint rawDelta;-
891 QPoint angleDelta;-
892 double value;-
893 if (scrollingDevice.orientations & Qt::Vertical
scrollingDevic...& Qt::VerticalDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
894 if (xi2GetValuatorValueIfSet(xiDeviceEvent, scrollingDevice.verticalIndex, &value)
xi2GetValuator...Index, &value)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
895 double delta = scrollingDevice.lastScrollPosition.y() - value;-
896 scrollingDevice.lastScrollPosition.setY(value);-
897 angleDelta.setY((delta / scrollingDevice.verticalIncrement) * 120);-
898-
899 if (scrollingDevice.verticalIncrement > 1
scrollingDevic...lIncrement > 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
900 rawDelta.setY(delta);
never executed: rawDelta.setY(delta);
0
901 else if (scrollingDevice.verticalIncrement < -1
scrollingDevic...Increment < -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
902 rawDelta.setY(-delta);
never executed: rawDelta.setY(-delta);
0
903 }
never executed: end of block
0
904 }
never executed: end of block
0
905 if (scrollingDevice.orientations & Qt::Horizontal
scrollingDevic...Qt::HorizontalDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
906 if (xi2GetValuatorValueIfSet(xiDeviceEvent, scrollingDevice.horizontalIndex, &value)
xi2GetValuator...Index, &value)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
907 double delta = scrollingDevice.lastScrollPosition.x() - value;-
908 scrollingDevice.lastScrollPosition.setX(value);-
909 angleDelta.setX((delta / scrollingDevice.horizontalIncrement) * 120);-
910-
911 if (scrollingDevice.horizontalIncrement > 1
scrollingDevic...lIncrement > 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
912 rawDelta.setX(delta);
never executed: rawDelta.setX(delta);
0
913 else if (scrollingDevice.horizontalIncrement < -1
scrollingDevic...Increment < -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
914 rawDelta.setX(-delta);
never executed: rawDelta.setX(-delta);
0
915 }
never executed: end of block
0
916 }
never executed: end of block
0
917 if (!angleDelta.isNull()
!angleDelta.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
918 QPoint local(fixed1616ToReal(xiDeviceEvent->event_x), fixed1616ToReal(xiDeviceEvent->event_y));-
919 QPoint global(fixed1616ToReal(xiDeviceEvent->root_x), fixed1616ToReal(xiDeviceEvent->root_y));-
920 Qt::KeyboardModifiers modifiers = keyboard()->translateModifiers(xiDeviceEvent->mods.effective_mods);-
921 if (modifiers & Qt::AltModifier
modifiers & Qt::AltModifierDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
922 std::swap(angleDelta.rx(), angleDelta.ry());-
923 std::swap(rawDelta.rx(), rawDelta.ry());-
924 }
never executed: end of block
0
925 QWindowSystemInterface::handleWheelEvent(platformWindow->window(), xiEvent->time, local, global, rawDelta, angleDelta, modifiers);-
926 }
never executed: end of block
0
927 }
never executed: end of block
0
928 }
never executed: end of block
else if (xiEvent->evtype == 5
xiEvent->evtype == 5Description
TRUEnever evaluated
FALSEnever evaluated
&& scrollingDevice.legacyOrientations
scrollingDevic...cyOrientationsDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
929 xXIDeviceEvent* xiDeviceEvent = reinterpret_cast<xXIDeviceEvent *>(event);-
930 if (QXcbWindow *platformWindow = platformWindowFromId(xiDeviceEvent->event)
QXcbWindow *pl...eEvent->event)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
931 QPoint angleDelta;-
932 if (scrollingDevice.legacyOrientations & Qt::Vertical
scrollingDevic...& Qt::VerticalDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
933 if (xiDeviceEvent->detail == 4
xiDeviceEvent->detail == 4Description
TRUEnever evaluated
FALSEnever evaluated
)
0
934 angleDelta.setY(120);
never executed: angleDelta.setY(120);
0
935 else if (xiDeviceEvent->detail == 5
xiDeviceEvent->detail == 5Description
TRUEnever evaluated
FALSEnever evaluated
)
0
936 angleDelta.setY(-120);
never executed: angleDelta.setY(-120);
0
937 }
never executed: end of block
0
938 if (scrollingDevice.legacyOrientations & Qt::Horizontal
scrollingDevic...Qt::HorizontalDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
939 if (xiDeviceEvent->detail == 6
xiDeviceEvent->detail == 6Description
TRUEnever evaluated
FALSEnever evaluated
)
0
940 angleDelta.setX(120);
never executed: angleDelta.setX(120);
0
941 else if (xiDeviceEvent->detail == 7
xiDeviceEvent->detail == 7Description
TRUEnever evaluated
FALSEnever evaluated
)
0
942 angleDelta.setX(-120);
never executed: angleDelta.setX(-120);
0
943 }
never executed: end of block
0
944 if (!angleDelta.isNull()
!angleDelta.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
945 QPoint local(fixed1616ToReal(xiDeviceEvent->event_x), fixed1616ToReal(xiDeviceEvent->event_y));-
946 QPoint global(fixed1616ToReal(xiDeviceEvent->root_x), fixed1616ToReal(xiDeviceEvent->root_y));-
947 Qt::KeyboardModifiers modifiers = keyboard()->translateModifiers(xiDeviceEvent->mods.effective_mods);-
948 if (modifiers & Qt::AltModifier
modifiers & Qt::AltModifierDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
949 std::swap(angleDelta.rx(), angleDelta.ry());
never executed: std::swap(angleDelta.rx(), angleDelta.ry());
0
950 QWindowSystemInterface::handleWheelEvent(platformWindow->window(), xiEvent->time, local, global, QPoint(), angleDelta, modifiers);-
951 }
never executed: end of block
0
952 }
never executed: end of block
0
953 }
never executed: end of block
0
954-
955-
956-
957-
958}
never executed: end of block
0
959-
960Qt::MouseButton QXcbConnection::xiToQtMouseButton(uint32_t b)-
961{-
962 switch (b) {-
963 case
never executed: case 1:
1:
never executed: case 1:
return
never executed: return Qt::LeftButton;
Qt::LeftButton;
never executed: return Qt::LeftButton;
0
964 case
never executed: case 2:
2:
never executed: case 2:
return
never executed: return Qt::MiddleButton;
Qt::MiddleButton;
never executed: return Qt::MiddleButton;
0
965 case
never executed: case 3:
3:
never executed: case 3:
return
never executed: return Qt::RightButton;
Qt::RightButton;
never executed: return Qt::RightButton;
0
966-
967 default
executed 386 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
:
executed 386 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
break;
executed 386 times by 17 tests: break;
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
968 }-
969 if (b >= 8
b >= 8Description
TRUEnever evaluated
FALSEevaluated 386 times by 17 tests
Evaluated 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
&& b <= Qt::MaxMouseButton
b <= Qt::MaxMouseButtonDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-386
970 return
never executed: return static_cast<Qt::MouseButton>(Qt::BackButton << (b - 8));
static_cast<Qt::MouseButton>(Qt::BackButton << (b - 8));
never executed: return static_cast<Qt::MouseButton>(Qt::BackButton << (b - 8));
0
971 return
executed 386 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
Qt::NoButton;
executed 386 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
386
972}-
973-
974static QTabletEvent::TabletDevice toolIdToTabletDevice(quint32 toolId) {-
975-
976 switch (toolId) {-
977 case
never executed: case 0xd12:
0xd12:
never executed: case 0xd12:
0
978 case
never executed: case 0x912:
0x912:
never executed: case 0x912:
0
979 case
never executed: case 0x112:
0x112:
never executed: case 0x112:
0
980 case
never executed: case 0x913:
0x913:
never executed: case 0x913:
0
981 case
never executed: case 0x91b:
0x91b:
never executed: case 0x91b:
0
982 case
never executed: case 0x902:
0x902:
never executed: case 0x902:
0
983 case
never executed: case 0x90a:
0x90a:
never executed: case 0x90a:
0
984 case
never executed: case 0x100902:
0x100902:
never executed: case 0x100902:
0
985 case
never executed: case 0x10090a:
0x10090a:
never executed: case 0x10090a:
0
986 return
never executed: return QTabletEvent::Airbrush;
QTabletEvent::Airbrush;
never executed: return QTabletEvent::Airbrush;
0
987 case
never executed: case 0x007:
0x007:
never executed: case 0x007:
0
988 case
never executed: case 0x09c:
0x09c:
never executed: case 0x09c:
0
989 case
never executed: case 0x094:
0x094:
never executed: case 0x094:
0
990 return
never executed: return QTabletEvent::FourDMouse;
QTabletEvent::FourDMouse;
never executed: return QTabletEvent::FourDMouse;
0
991 case
never executed: case 0x017:
0x017:
never executed: case 0x017:
0
992 case
never executed: case 0x806:
0x806:
never executed: case 0x806:
0
993 case
never executed: case 0x096:
0x096:
never executed: case 0x096:
0
994 case
never executed: case 0x097:
0x097:
never executed: case 0x097:
0
995 case
never executed: case 0x006:
0x006:
never executed: case 0x006:
0
996 return
never executed: return QTabletEvent::Puck;
QTabletEvent::Puck;
never executed: return QTabletEvent::Puck;
0
997 case
never executed: case 0x885:
0x885:
never executed: case 0x885:
0
998 case
never executed: case 0x100804:
0x100804:
never executed: case 0x100804:
0
999 case
never executed: case 0x10080c:
0x10080c:
never executed: case 0x10080c:
0
1000 return
never executed: return QTabletEvent::RotationStylus;
QTabletEvent::RotationStylus;
never executed: return QTabletEvent::RotationStylus;
0
1001 case
never executed: case 0:
0:
never executed: case 0:
0
1002 return
never executed: return QTabletEvent::NoDevice;
QTabletEvent::NoDevice;
never executed: return QTabletEvent::NoDevice;
0
1003 }-
1004 return
never executed: return QTabletEvent::Stylus;
QTabletEvent::Stylus;
never executed: return QTabletEvent::Stylus;
0
1005}-
1006-
1007-
1008bool QXcbConnection::xi2HandleTabletEvent(void *event, TabletData *tabletData, QXcbWindowEventListener *eventListener)-
1009{-
1010 bool handled = true;-
1011 Display *xDisplay = static_cast<Display *>(m_xlib_display);-
1012 xXIGenericDeviceEvent *xiEvent = static_cast<xXIGenericDeviceEvent *>(event);-
1013 xXIDeviceEvent *xiDeviceEvent = reinterpret_cast<xXIDeviceEvent *>(xiEvent);-
1014-
1015 switch (xiEvent->evtype) {-
1016 case
never executed: case 4:
4:
never executed: case 4:
{
0
1017 Qt::MouseButton b = xiToQtMouseButton(xiDeviceEvent->detail);-
1018 tabletData->buttons |= b;-
1019 xi2ReportTabletEvent(*tabletData, xiEvent);-
1020 break;
never executed: break;
0
1021 }-
1022 case
never executed: case 5:
5:
never executed: case 5:
{
0
1023 Qt::MouseButton b = xiToQtMouseButton(xiDeviceEvent->detail);-
1024 tabletData->buttons ^= b;-
1025 xi2ReportTabletEvent(*tabletData, xiEvent);-
1026 break;
never executed: break;
0
1027 }-
1028 case
never executed: case 6:
6:
never executed: case 6:
0
1029-
1030-
1031 if (tabletData->buttons != Qt::NoButton
tabletData->bu...= Qt::NoButtonDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1032 xi2ReportTabletEvent(*tabletData, xiEvent);
never executed: xi2ReportTabletEvent(*tabletData, xiEvent);
0
1033 break;
never executed: break;
0
1034 case
never executed: case 12:
12:
never executed: case 12:
{
0
1035-
1036-
1037 xXIPropertyEvent *ev = reinterpret_cast<xXIPropertyEvent *>(event);-
1038 if (ev->what == 2
ev->what == 2Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1039 if (ev->property == atom(QXcbAtom::WacomSerialIDs)
ev->property =...acomSerialIDs)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1040 enum WacomSerialIndex {-
1041 _WACSER_USB_ID = 0,-
1042 _WACSER_LAST_TOOL_SERIAL,-
1043 _WACSER_LAST_TOOL_ID,-
1044 _WACSER_TOOL_SERIAL,-
1045 _WACSER_TOOL_ID,-
1046 _WACSER_COUNT-
1047 };-
1048 Atom propType;-
1049 int propFormat;-
1050 unsigned long numItems, bytesAfter;-
1051 unsigned char *data;-
1052 if (XIGetProperty(xDisplay, tabletData->deviceId, ev->property, 0, 100,
XIGetProperty(...r, &data) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1053 0, 0L, &propType, &propFormat,
XIGetProperty(...r, &data) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1054 &numItems, &bytesAfter, &data) == 0
XIGetProperty(...r, &data) == 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1055 if (propType == atom(QXcbAtom::INTEGER)
propType == at...Atom::INTEGER)Description
TRUEnever evaluated
FALSEnever evaluated
&& propFormat == 32
propFormat == 32Description
TRUEnever evaluated
FALSEnever evaluated
&& numItems == _WACSER_COUNT
numItems == _WACSER_COUNTDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1056 quint32 *ptr = reinterpret_cast<quint32 *>(data);-
1057 quint32 tool = ptr[_WACSER_TOOL_ID];-
1058-
1059-
1060 if (!tool
!toolDescription
TRUEnever evaluated
FALSEnever evaluated
&& ptr[_WACSER_TOOL_SERIAL]
ptr[_WACSER_TOOL_SERIAL]Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1061 tool = ptr[_WACSER_TOOL_SERIAL];
never executed: tool = ptr[_WACSER_TOOL_SERIAL];
0
1062-
1063-
1064 if (tool
toolDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1065 tabletData->inProximity = true;-
1066 tabletData->tool = toolIdToTabletDevice(tool);-
1067 tabletData->serialId = qint64(ptr[_WACSER_USB_ID]) << 32 | qint64(ptr[_WACSER_TOOL_SERIAL]);-
1068 QWindowSystemInterface::handleTabletEnterProximityEvent(ev->time,-
1069 tabletData->tool, tabletData->pointerType, tabletData->serialId);-
1070 }
never executed: end of block
else {
0
1071 tabletData->inProximity = false;-
1072 tabletData->tool = toolIdToTabletDevice(ptr[_WACSER_LAST_TOOL_ID]);-
1073-
1074-
1075 if (!tabletData->tool
!tabletData->toolDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1076 tabletData->tool = toolIdToTabletDevice(ptr[_WACSER_LAST_TOOL_SERIAL]);
never executed: tabletData->tool = toolIdToTabletDevice(ptr[_WACSER_LAST_TOOL_SERIAL]);
0
1077 tabletData->serialId = qint64(ptr[_WACSER_USB_ID]) << 32 | qint64(ptr[_WACSER_LAST_TOOL_SERIAL]);-
1078 QWindowSystemInterface::handleTabletLeaveProximityEvent(ev->time,-
1079 tabletData->tool, tabletData->pointerType, tabletData->serialId);-
1080 }
never executed: end of block
0
1081-
1082-
1083 if (__builtin_expect(!!(lcQpaXInputEvents().isDebugEnabled()), false)
__builtin_expe...led()), false)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1084 for (bool qt_category_enabled = lcQpaXInputEvents().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(
never executed: QMessageLogger( __FILE__ , 1114 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 proximity change on tablet %d (USB %x): last tool: %x id %x current tool: %x id %x TabletDevice %d", tabletData->deviceId, ptr[_WACSER_USB_ID], ptr[_WACSER_LAST_TOOL_SERIAL], ptr[_WACSER_LAST_TOOL_ID], ptr[_WACSER_TOOL_SERIAL], ptr[_WACSER_TOOL_ID], tabletData->tool) ;
0
10850
1086 __FILE__
never executed: QMessageLogger( __FILE__ , 1114 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 proximity change on tablet %d (USB %x): last tool: %x id %x current tool: %x id %x TabletDevice %d", tabletData->deviceId, ptr[_WACSER_USB_ID], ptr[_WACSER_LAST_TOOL_SERIAL], ptr[_WACSER_LAST_TOOL_ID], ptr[_WACSER_TOOL_SERIAL], ptr[_WACSER_TOOL_ID], tabletData->tool) ;
0
1087 ,
never executed: QMessageLogger( __FILE__ , 1114 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 proximity change on tablet %d (USB %x): last tool: %x id %x current tool: %x id %x TabletDevice %d", tabletData->deviceId, ptr[_WACSER_USB_ID], ptr[_WACSER_LAST_TOOL_SERIAL], ptr[_WACSER_LAST_TOOL_ID], ptr[_WACSER_TOOL_SERIAL], ptr[_WACSER_TOOL_ID], tabletData->tool) ;
0
10880
1089 1114
never executed: QMessageLogger( __FILE__ , 1114 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 proximity change on tablet %d (USB %x): last tool: %x id %x current tool: %x id %x TabletDevice %d", tabletData->deviceId, ptr[_WACSER_USB_ID], ptr[_WACSER_LAST_TOOL_SERIAL], ptr[_WACSER_LAST_TOOL_ID], ptr[_WACSER_TOOL_SERIAL], ptr[_WACSER_TOOL_ID], tabletData->tool) ;
0
1090 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 proximity change on tablet %d (USB %x): last tool: %x id %x current tool: %x id %x TabletDevice %d", tabletData->deviceId, ptr[_WACSER_USB_ID], ptr[_WACSER_LAST_TOOL_SERIAL], ptr[_WACSER_LAST_TOOL_ID], ptr[_WACSER_TOOL_SERIAL], ptr[_WACSER_TOOL_ID], tabletData->tool)
never executed: QMessageLogger( __FILE__ , 1114 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 proximity change on tablet %d (USB %x): last tool: %x id %x current tool: %x id %x TabletDevice %d", tabletData->deviceId, ptr[_WACSER_USB_ID], ptr[_WACSER_LAST_TOOL_SERIAL], ptr[_WACSER_LAST_TOOL_ID], ptr[_WACSER_TOOL_SERIAL], ptr[_WACSER_TOOL_ID], tabletData->tool) ;
0
10910
1092 ;
never executed: QMessageLogger( __FILE__ , 1114 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 proximity change on tablet %d (USB %x): last tool: %x id %x current tool: %x id %x TabletDevice %d", tabletData->deviceId, ptr[_WACSER_USB_ID], ptr[_WACSER_LAST_TOOL_SERIAL], ptr[_WACSER_LAST_TOOL_ID], ptr[_WACSER_TOOL_SERIAL], ptr[_WACSER_TOOL_ID], tabletData->tool) ;
0
1093 }
never executed: end of block
0
1094 XFree(data);-
1095 }
never executed: end of block
0
1096 }
never executed: end of block
0
1097 }
never executed: end of block
0
1098 break;
never executed: break;
0
1099 }-
1100 default
never executed: default:
:
never executed: default:
0
1101 handled = false;-
1102 break;
never executed: break;
0
1103 }-
1104-
1105-
1106-
1107-
1108 if (xi2MouseEvents()
xi2MouseEvents()Description
TRUEnever evaluated
FALSEnever evaluated
&& eventListener
eventListenerDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1109 eventListener->handleXIMouseEvent(reinterpret_cast<xcb_ge_event_t *>(event), Qt::MouseEventSynthesizedByQt);
never executed: eventListener->handleXIMouseEvent(reinterpret_cast<xcb_ge_event_t *>(event), Qt::MouseEventSynthesizedByQt);
0
1110-
1111-
1112-
1113-
1114 return
never executed: return handled;
handled;
never executed: return handled;
0
1115}-
1116-
1117void QXcbConnection::xi2ReportTabletEvent(TabletData &tabletData, void *event)-
1118{-
1119 xXIDeviceEvent *ev = reinterpret_cast<xXIDeviceEvent *>(event);-
1120 QXcbWindow *xcbWindow = platformWindowFromId(ev->event);-
1121 if (!xcbWindow
!xcbWindowDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1122 return;
never executed: return;
0
1123 QWindow *window = xcbWindow->window();-
1124 const double scale = 65536.0;-
1125 QPointF local(ev->event_x / scale, ev->event_y / scale);-
1126 QPointF global(ev->root_x / scale, ev->root_y / scale);-
1127 double pressure = 0, rotation = 0, tangentialPressure = 0;-
1128 int xTilt = 0, yTilt = 0;-
1129-
1130 for (QHash<int, TabletData::ValuatorClassInfo>::iterator it = tabletData.valuatorInfo.begin(),-
1131 ite = tabletData.valuatorInfo.end(); it != ite
it != iteDescription
TRUEnever evaluated
FALSEnever evaluated
; ++it) {
0
1132 int valuator = it.key();-
1133 TabletData::ValuatorClassInfo &classInfo(it.value());-
1134 xi2GetValuatorValueIfSet(event, classInfo.number, &classInfo.curVal);-
1135 double normalizedValue = (classInfo.curVal - classInfo.minVal) / (classInfo.maxVal - classInfo.minVal);-
1136 switch (valuator) {-
1137 case
never executed: case QXcbAtom::AbsPressure:
QXcbAtom::AbsPressure:
never executed: case QXcbAtom::AbsPressure:
0
1138 pressure = normalizedValue;-
1139 break;
never executed: break;
0
1140 case
never executed: case QXcbAtom::AbsTiltX:
QXcbAtom::AbsTiltX:
never executed: case QXcbAtom::AbsTiltX:
0
1141 xTilt = classInfo.curVal;-
1142 break;
never executed: break;
0
1143 case
never executed: case QXcbAtom::AbsTiltY:
QXcbAtom::AbsTiltY:
never executed: case QXcbAtom::AbsTiltY:
0
1144 yTilt = classInfo.curVal;-
1145 break;
never executed: break;
0
1146 case
never executed: case QXcbAtom::AbsWheel:
QXcbAtom::AbsWheel:
never executed: case QXcbAtom::AbsWheel:
0
1147 switch (tabletData.tool) {-
1148 case
never executed: case QTabletEvent::Airbrush:
QTabletEvent::Airbrush:
never executed: case QTabletEvent::Airbrush:
0
1149 tangentialPressure = normalizedValue * 2.0 - 1.0;-
1150 break;
never executed: break;
0
1151 case
never executed: case QTabletEvent::RotationStylus:
QTabletEvent::RotationStylus:
never executed: case QTabletEvent::RotationStylus:
0
1152 rotation = normalizedValue * 360.0 - 180.0;-
1153 break;
never executed: break;
0
1154 default
never executed: default:
:
never executed: default:
0
1155 break;
never executed: break;
0
1156 }-
1157 break;
never executed: break;
0
1158 default
never executed: default:
:
never executed: default:
0
1159 break;
never executed: break;
0
1160 }-
1161 }-
1162-
1163 if (__builtin_expect(!!(lcQpaXInputEvents().isDebugEnabled()), false)
__builtin_expe...led()), false)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1164 for (bool qt_category_enabled = lcQpaXInputEvents().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(
never executed: QMessageLogger( __FILE__ , 1191 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 event on tablet %d with tool %d type %d seq %d detail %d time %d " "pos %6.1f, %6.1f root pos %6.1f, %6.1f buttons 0x%x pressure %4.2lf tilt %d, %d rotat...ceId, tabletData.tool, ev->evtype, ev->sequenceNumber, ev->detail, ev->time, fixed1616ToReal(ev->event_x), fixed1616ToReal(ev->event_y), fixed1616ToReal(ev->root_x), fixed1616ToReal(ev->root_y), (int)tabletData.buttons, pressure, xTilt, yTilt, rotation) ;
0
11650
11660
11670
11680
1169 __FILE__
never executed: QMessageLogger( __FILE__ , 1191 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 event on tablet %d with tool %d type %d seq %d detail %d time %d " "pos %6.1f, %6.1f root pos %6.1f, %6.1f buttons 0x%x pressure %4.2lf tilt %d, %d rotat...ceId, tabletData.tool, ev->evtype, ev->sequenceNumber, ev->detail, ev->time, fixed1616ToReal(ev->event_x), fixed1616ToReal(ev->event_y), fixed1616ToReal(ev->root_x), fixed1616ToReal(ev->root_y), (int)tabletData.buttons, pressure, xTilt, yTilt, rotation) ;
0
1170 ,
never executed: QMessageLogger( __FILE__ , 1191 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 event on tablet %d with tool %d type %d seq %d detail %d time %d " "pos %6.1f, %6.1f root pos %6.1f, %6.1f buttons 0x%x pressure %4.2lf tilt %d, %d rotat...ceId, tabletData.tool, ev->evtype, ev->sequenceNumber, ev->detail, ev->time, fixed1616ToReal(ev->event_x), fixed1616ToReal(ev->event_y), fixed1616ToReal(ev->root_x), fixed1616ToReal(ev->root_y), (int)tabletData.buttons, pressure, xTilt, yTilt, rotation) ;
0
11710
11720
11730
11740
1175 1191
never executed: QMessageLogger( __FILE__ , 1191 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 event on tablet %d with tool %d type %d seq %d detail %d time %d " "pos %6.1f, %6.1f root pos %6.1f, %6.1f buttons 0x%x pressure %4.2lf tilt %d, %d rotat...ceId, tabletData.tool, ev->evtype, ev->sequenceNumber, ev->detail, ev->time, fixed1616ToReal(ev->event_x), fixed1616ToReal(ev->event_y), fixed1616ToReal(ev->root_x), fixed1616ToReal(ev->root_y), (int)tabletData.buttons, pressure, xTilt, yTilt, rotation) ;
0
1176 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 event on tablet %d with tool %d type %d seq %d detail %d time %d " "pos %6.1f, %6.1f root pos %6.1f, %6.1f buttons 0x%x pressure %4.2lf tilt %d, %d rotation %6.2lf", tabletData.deviceId, tabletData.tool, ev->evtype, ev->sequenceNumber, ev->detail, ev->time, fixed1616ToReal(ev->event_x), fixed1616ToReal(ev->event_y), fixed1616ToReal(ev->root_x), fixed1616ToReal(ev->root_y), (int)tabletData.buttons, pressure, xTilt, yTilt, rotation)
never executed: QMessageLogger( __FILE__ , 1191 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 event on tablet %d with tool %d type %d seq %d detail %d time %d " "pos %6.1f, %6.1f root pos %6.1f, %6.1f buttons 0x%x pressure %4.2lf tilt %d, %d rotat...ceId, tabletData.tool, ev->evtype, ev->sequenceNumber, ev->detail, ev->time, fixed1616ToReal(ev->event_x), fixed1616ToReal(ev->event_y), fixed1616ToReal(ev->root_x), fixed1616ToReal(ev->root_y), (int)tabletData.buttons, pressure, xTilt, yTilt, rotation) ;
0
11770
11780
11790
11800
1181 ;
never executed: QMessageLogger( __FILE__ , 1191 , __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 event on tablet %d with tool %d type %d seq %d detail %d time %d " "pos %6.1f, %6.1f root pos %6.1f, %6.1f buttons 0x%x pressure %4.2lf tilt %d, %d rotat...ceId, tabletData.tool, ev->evtype, ev->sequenceNumber, ev->detail, ev->time, fixed1616ToReal(ev->event_x), fixed1616ToReal(ev->event_y), fixed1616ToReal(ev->root_x), fixed1616ToReal(ev->root_y), (int)tabletData.buttons, pressure, xTilt, yTilt, rotation) ;
0
1182-
1183 QWindowSystemInterface::handleTabletEvent(window, ev->time, local, global,-
1184 tabletData.tool, tabletData.pointerType,-
1185 tabletData.buttons, pressure,-
1186 xTilt, yTilt, tangentialPressure,-
1187 rotation, 0, tabletData.serialId);-
1188}
never executed: end of block
0
1189-
1190QXcbConnection::TabletData *QXcbConnection::tabletDataForDevice(int id)-
1191{-
1192 for (int i = 0; i < m_tabletData.count()
i < m_tabletData.count()Description
TRUEnever evaluated
FALSEevaluated 890 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
; ++i) {
0-890
1193 if (m_tabletData.at(i).deviceId == id
m_tabletData.a...deviceId == idDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1194 return
never executed: return &m_tabletData[i];
&m_tabletData[i];
never executed: return &m_tabletData[i];
0
1195 }
never executed: end of block
0
1196 return
executed 890 times by 18 tests: return nullptr;
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
nullptr;
executed 890 times by 18 tests: return nullptr;
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
890
1197}-
Switch to Source codePreprocessed file

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