OpenCoverage

qxcbwindow.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/plugins/platforms/xcb/qxcbwindow.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2016 The Qt Company Ltd.-
4** Contact: https://www.qt.io/licensing/-
5**-
6** This file is part of the plugins of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see https://www.qt.io/terms-conditions. For further-
15** information use the contact form at https://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 3 as published by the Free Software-
20** Foundation and appearing in the file LICENSE.LGPL3 included in the-
21** packaging of this file. Please review the following information to-
22** ensure the GNU Lesser General Public License version 3 requirements-
23** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.-
24**-
25** GNU General Public License Usage-
26** Alternatively, this file may be used under the terms of the GNU-
27** General Public License version 2.0 or (at your option) the GNU General-
28** Public license version 3 or any later version approved by the KDE Free-
29** Qt Foundation. The licenses are as published by the Free Software-
30** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3-
31** included in the packaging of this file. Please review the following-
32** information to ensure the GNU General Public License requirements will-
33** be met: https://www.gnu.org/licenses/gpl-2.0.html and-
34** https://www.gnu.org/licenses/gpl-3.0.html.-
35**-
36** $QT_END_LICENSE$-
37**-
38****************************************************************************/-
39-
40#include "qxcbwindow.h"-
41-
42#include <QtDebug>-
43#include <QMetaEnum>-
44#include <QScreen>-
45#include <QtGui/QIcon>-
46#include <QtGui/QRegion>-
47#include <QtGui/private/qhighdpiscaling_p.h>-
48-
49#include "qxcbintegration.h"-
50#include "qxcbconnection.h"-
51#include "qxcbscreen.h"-
52#include "qxcbdrag.h"-
53#include "qxcbkeyboard.h"-
54#include "qxcbwmsupport.h"-
55#include "qxcbimage.h"-
56#include "qxcbnativeinterface.h"-
57#include "qxcbsystemtraytracker.h"-
58-
59#include <qpa/qplatformintegration.h>-
60#include <qpa/qplatformcursor.h>-
61-
62#include <algorithm>-
63-
64// FIXME This workaround can be removed for xcb-icccm > 3.8-
65#define class class_name-
66#include <xcb/xcb_icccm.h>-
67#undef class-
68#include <xcb/xfixes.h>-
69#include <xcb/shape.h>-
70-
71// xcb-icccm 3.8 support-
72#ifdef XCB_ICCCM_NUM_WM_SIZE_HINTS_ELEMENTS-
73#define xcb_get_wm_hints_reply xcb_icccm_get_wm_hints_reply-
74#define xcb_get_wm_hints xcb_icccm_get_wm_hints-
75#define xcb_get_wm_hints_unchecked xcb_icccm_get_wm_hints_unchecked-
76#define xcb_set_wm_hints xcb_icccm_set_wm_hints-
77#define xcb_set_wm_normal_hints xcb_icccm_set_wm_normal_hints-
78#define xcb_size_hints_set_base_size xcb_icccm_size_hints_set_base_size-
79#define xcb_size_hints_set_max_size xcb_icccm_size_hints_set_max_size-
80#define xcb_size_hints_set_min_size xcb_icccm_size_hints_set_min_size-
81#define xcb_size_hints_set_position xcb_icccm_size_hints_set_position-
82#define xcb_size_hints_set_resize_inc xcb_icccm_size_hints_set_resize_inc-
83#define xcb_size_hints_set_size xcb_icccm_size_hints_set_size-
84#define xcb_size_hints_set_win_gravity xcb_icccm_size_hints_set_win_gravity-
85#define xcb_wm_hints_set_iconic xcb_icccm_wm_hints_set_iconic-
86#define xcb_wm_hints_set_normal xcb_icccm_wm_hints_set_normal-
87#define xcb_wm_hints_set_input xcb_icccm_wm_hints_set_input-
88#define xcb_wm_hints_t xcb_icccm_wm_hints_t-
89#define XCB_WM_STATE_ICONIC XCB_ICCCM_WM_STATE_ICONIC-
90#define XCB_WM_STATE_WITHDRAWN XCB_ICCCM_WM_STATE_WITHDRAWN-
91#endif-
92-
93#include <private/qguiapplication_p.h>-
94#include <private/qwindow_p.h>-
95-
96#include <qpa/qplatformbackingstore.h>-
97#include <qpa/qwindowsysteminterface.h>-
98-
99#include <QTextCodec>-
100#include <stdio.h>-
101-
102#ifdef XCB_USE_XLIB-
103#include <X11/Xlib.h>-
104#include <X11/Xutil.h>-
105#endif-
106-
107#if defined(XCB_USE_XINPUT2)-
108#include <X11/extensions/XInput2.h>-
109#include <X11/extensions/XI2proto.h>-
110#endif-
111-
112#define XCOORD_MAX 16383-
113enum {-
114 defaultWindowWidth = 160,-
115 defaultWindowHeight = 160-
116};-
117-
118//#ifdef NET_WM_STATE_DEBUG-
119-
120QT_BEGIN_NAMESPACE-
121-
122#undef FocusIn-
123-
124enum QX11EmbedFocusInDetail {-
125 XEMBED_FOCUS_CURRENT = 0,-
126 XEMBED_FOCUS_FIRST = 1,-
127 XEMBED_FOCUS_LAST = 2-
128};-
129-
130enum QX11EmbedInfoFlags {-
131 XEMBED_MAPPED = (1 << 0),-
132};-
133-
134enum QX11EmbedMessageType {-
135 XEMBED_EMBEDDED_NOTIFY = 0,-
136 XEMBED_WINDOW_ACTIVATE = 1,-
137 XEMBED_WINDOW_DEACTIVATE = 2,-
138 XEMBED_REQUEST_FOCUS = 3,-
139 XEMBED_FOCUS_IN = 4,-
140 XEMBED_FOCUS_OUT = 5,-
141 XEMBED_FOCUS_NEXT = 6,-
142 XEMBED_FOCUS_PREV = 7,-
143 XEMBED_MODALITY_ON = 10,-
144 XEMBED_MODALITY_OFF = 11,-
145 XEMBED_REGISTER_ACCELERATOR = 12,-
146 XEMBED_UNREGISTER_ACCELERATOR = 13,-
147 XEMBED_ACTIVATE_ACCELERATOR = 14-
148};-
149-
150const quint32 XEMBED_VERSION = 0;-
151-
152QXcbScreen *QXcbWindow::parentScreen()-
153{-
154 return parent() ? static_cast<QXcbWindow*>(parent())->parentScreen() : xcbScreen();
executed 335 times by 6 tests: return parent() ? static_cast<QXcbWindow*>(parent())->parentScreen() : xcbScreen();
Executed by:
  • tst_QDialog
  • tst_QMdiArea
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
335
155}-
156-
157// Returns \c true if we should set WM_TRANSIENT_FOR on \a w-
158static inline bool isTransient(const QWindow *w)-
159{-
160 return w->type() == Qt::Dialog
executed 3918 times by 122 tests: return w->type() == Qt::Dialog || w->type() == Qt::Sheet || w->type() == Qt::Tool || w->type() == Qt::SplashScreen || w->type() == Qt::ToolTip || w->type() == Qt::Drawer || w->type() == Qt::Popup;
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
  • ...
3918
161 || w->type() == Qt::Sheet
executed 3918 times by 122 tests: return w->type() == Qt::Dialog || w->type() == Qt::Sheet || w->type() == Qt::Tool || w->type() == Qt::SplashScreen || w->type() == Qt::ToolTip || w->type() == Qt::Drawer || w->type() == Qt::Popup;
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
  • ...
3918
162 || w->type() == Qt::Tool
executed 3918 times by 122 tests: return w->type() == Qt::Dialog || w->type() == Qt::Sheet || w->type() == Qt::Tool || w->type() == Qt::SplashScreen || w->type() == Qt::ToolTip || w->type() == Qt::Drawer || w->type() == Qt::Popup;
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
  • ...
3918
163 || w->type() == Qt::SplashScreen
executed 3918 times by 122 tests: return w->type() == Qt::Dialog || w->type() == Qt::Sheet || w->type() == Qt::Tool || w->type() == Qt::SplashScreen || w->type() == Qt::ToolTip || w->type() == Qt::Drawer || w->type() == Qt::Popup;
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
  • ...
3918
164 || w->type() == Qt::ToolTip
executed 3918 times by 122 tests: return w->type() == Qt::Dialog || w->type() == Qt::Sheet || w->type() == Qt::Tool || w->type() == Qt::SplashScreen || w->type() == Qt::ToolTip || w->type() == Qt::Drawer || w->type() == Qt::Popup;
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
  • ...
3918
165 || w->type() == Qt::Drawer
executed 3918 times by 122 tests: return w->type() == Qt::Dialog || w->type() == Qt::Sheet || w->type() == Qt::Tool || w->type() == Qt::SplashScreen || w->type() == Qt::ToolTip || w->type() == Qt::Drawer || w->type() == Qt::Popup;
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
  • ...
3918
166 || w->type() == Qt::Popup;
executed 3918 times by 122 tests: return w->type() == Qt::Dialog || w->type() == Qt::Sheet || w->type() == Qt::Tool || w->type() == Qt::SplashScreen || w->type() == Qt::ToolTip || w->type() == Qt::Drawer || w->type() == Qt::Popup;
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
  • ...
3918
167}-
168-
169static inline QImage::Format imageFormatForVisual(int depth, quint32 red_mask, quint32 blue_mask, bool *rgbSwap)-
170{-
171 if (rgbSwap)
rgbSwapDescription
TRUEevaluated 4405 times by 128 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-4405
172 *rgbSwap = false;
executed 4405 times by 128 tests: *rgbSwap = false;
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
  • ...
4405
173 switch (depth) {-
174 case 32:
executed 4 times by 2 tests: case 32:
Executed by:
  • tst_QSystemTrayIcon
  • tst_QWidget
4
175 if (blue_mask == 0xff)
blue_mask == 0xffDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QSystemTrayIcon
  • tst_QWidget
FALSEnever evaluated
0-4
176 return QImage::Format_ARGB32_Premultiplied;
executed 4 times by 2 tests: return QImage::Format_ARGB32_Premultiplied;
Executed by:
  • tst_QSystemTrayIcon
  • tst_QWidget
4
177 if (red_mask == 0x3ff)
red_mask == 0x3ffDescription
TRUEnever evaluated
FALSEnever evaluated
0
178 return QImage::Format_A2BGR30_Premultiplied;
never executed: return QImage::Format_A2BGR30_Premultiplied;
0
179 if (blue_mask == 0x3ff)
blue_mask == 0x3ffDescription
TRUEnever evaluated
FALSEnever evaluated
0
180 return QImage::Format_A2RGB30_Premultiplied;
never executed: return QImage::Format_A2RGB30_Premultiplied;
0
181 if (red_mask == 0xff) {
red_mask == 0xffDescription
TRUEnever evaluated
FALSEnever evaluated
0
182 if (rgbSwap)
rgbSwapDescription
TRUEnever evaluated
FALSEnever evaluated
0
183 *rgbSwap = true;
never executed: *rgbSwap = true;
0
184 return QImage::Format_ARGB32_Premultiplied;
never executed: return QImage::Format_ARGB32_Premultiplied;
0
185 }-
186 break;
never executed: break;
0
187 case 30:
never executed: case 30:
0
188 if (red_mask == 0x3ff)
red_mask == 0x3ffDescription
TRUEnever evaluated
FALSEnever evaluated
0
189 return QImage::Format_BGR30;
never executed: return QImage::Format_BGR30;
0
190 if (blue_mask == 0x3ff)
blue_mask == 0x3ffDescription
TRUEnever evaluated
FALSEnever evaluated
0
191 return QImage::Format_RGB30;
never executed: return QImage::Format_RGB30;
0
192 break;
never executed: break;
0
193 case 24:
executed 4401 times by 128 tests: case 24:
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
  • ...
4401
194 if (blue_mask == 0xff)
blue_mask == 0xffDescription
TRUEevaluated 4401 times by 128 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-4401
195 return QImage::Format_RGB32;
executed 4401 times by 128 tests: return QImage::Format_RGB32;
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
  • ...
4401
196 if (red_mask == 0xff) {
red_mask == 0xffDescription
TRUEnever evaluated
FALSEnever evaluated
0
197 if (rgbSwap)
rgbSwapDescription
TRUEnever evaluated
FALSEnever evaluated
0
198 *rgbSwap = true;
never executed: *rgbSwap = true;
0
199 return QImage::Format_RGB32;
never executed: return QImage::Format_RGB32;
0
200 }-
201 break;
never executed: break;
0
202 case 16:
never executed: case 16:
0
203 if (blue_mask == 0x1f)
blue_mask == 0x1fDescription
TRUEnever evaluated
FALSEnever evaluated
0
204 return QImage::Format_RGB16;
never executed: return QImage::Format_RGB16;
0
205 if (red_mask == 0x1f) {
red_mask == 0x1fDescription
TRUEnever evaluated
FALSEnever evaluated
0
206 if (rgbSwap)
rgbSwapDescription
TRUEnever evaluated
FALSEnever evaluated
0
207 *rgbSwap = true;
never executed: *rgbSwap = true;
0
208 return QImage::Format_RGB16;
never executed: return QImage::Format_RGB16;
0
209 }-
210 break;
never executed: break;
0
211 case 15:
never executed: case 15:
0
212 if (blue_mask == 0x1f)
blue_mask == 0x1fDescription
TRUEnever evaluated
FALSEnever evaluated
0
213 return QImage::Format_RGB555;
never executed: return QImage::Format_RGB555;
0
214 if (red_mask == 0x1f) {
red_mask == 0x1fDescription
TRUEnever evaluated
FALSEnever evaluated
0
215 if (rgbSwap)
rgbSwapDescription
TRUEnever evaluated
FALSEnever evaluated
0
216 *rgbSwap = true;
never executed: *rgbSwap = true;
0
217 return QImage::Format_RGB555;
never executed: return QImage::Format_RGB555;
0
218 }-
219 break;
never executed: break;
0
220 default:
never executed: default:
0
221 break;
never executed: break;
0
222 }-
223 qWarning("Unsupported screen format: depth: %d, red_mask: %x, blue_mask: %x", depth, red_mask, blue_mask);-
224-
225 switch (depth) {-
226 case 24:
never executed: case 24:
0
227 qWarning("Using RGB32 fallback, if this works your X11 server is reporting a bad screen format.");-
228 return QImage::Format_RGB32;
never executed: return QImage::Format_RGB32;
0
229 case 16:
never executed: case 16:
0
230 qWarning("Using RGB16 fallback, if this works your X11 server is reporting a bad screen format.");-
231 return QImage::Format_RGB16;
never executed: return QImage::Format_RGB16;
0
232 default:
never executed: default:
0
233 break;
never executed: break;
0
234 }-
235-
236 return QImage::Format_Invalid;
never executed: return QImage::Format_Invalid;
0
237}-
238-
239static inline bool positionIncludesFrame(QWindow *w)-
240{-
241 return qt_window_private(w)->positionPolicy == QWindowPrivate::WindowFrameInclusive;
executed 4301 times by 122 tests: return qt_window_private(w)->positionPolicy == QWindowPrivate::WindowFrameInclusive;
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
  • ...
4301
242}-
243-
244#ifdef XCB_USE_XLIB-
245static inline XTextProperty* qstringToXTP(Display *dpy, const QString& s)-
246{-
247 #include <X11/Xatom.h>-
248-
249 static XTextProperty tp = { 0, 0, 0, 0 };-
250 static bool free_prop = true; // we can't free tp.value in case it references-
251 // the data of the static QByteArray below.-
252 if (tp.value) {
tp.valueDescription
TRUEevaluated 8556 times by 121 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
FALSEevaluated 129 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
  • ...
129-8556
253 if (free_prop)
free_propDescription
TRUEevaluated 8556 times by 121 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
FALSEnever evaluated
0-8556
254 XFree(tp.value);
executed 8556 times by 121 tests: XFree(tp.value);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
8556
255 tp.value = 0;-
256 free_prop = true;-
257 }
executed 8556 times by 121 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_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
  • tst_QDialogButtonBox
  • ...
8556
258-
259 static const QTextCodec* mapper = QTextCodec::codecForLocale();-
260 int errCode = 0;-
261 if (mapper) {
mapperDescription
TRUEevaluated 8685 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-8685
262 QByteArray mapped = mapper->fromUnicode(s);-
263 char* tl[2];-
264 tl[0] = mapped.data();-
265 tl[1] = 0;-
266 errCode = XmbTextListToTextProperty(dpy, tl, 1, XStdICCTextStyle, &tp);-
267 if (errCode < 0)
errCode < 0Description
TRUEnever evaluated
FALSEevaluated 8685 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-8685
268 qDebug("XmbTextListToTextProperty result code %d", errCode);
never executed: QMessageLogger(__FILE__, 268, __PRETTY_FUNCTION__).debug("XmbTextListToTextProperty result code %d", errCode);
0
269 }
executed 8685 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
  • ...
8685
270 if (!mapper || errCode < 0) {
!mapperDescription
TRUEnever evaluated
FALSEevaluated 8685 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
  • ...
errCode < 0Description
TRUEnever evaluated
FALSEevaluated 8685 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-8685
271 mapper = QTextCodec::codecForName("latin1");-
272 if (!mapper || !mapper->canEncode(s))
!mapperDescription
TRUEnever evaluated
FALSEnever evaluated
!mapper->canEncode(s)Description
TRUEnever evaluated
FALSEnever evaluated
0
273 return Q_NULLPTR;
never executed: return nullptr;
0
274 static QByteArray qcs;-
275 qcs = s.toLatin1();-
276 tp.value = (uchar*)qcs.data();-
277 tp.encoding = XA_STRING;-
278 tp.format = 8;-
279 tp.nitems = qcs.length();-
280 free_prop = false;-
281 }
never executed: end of block
0
282 return &tp;
executed 8685 times by 125 tests: return &tp;
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
  • ...
8685
283}-
284#endif // XCB_USE_XLIB-
285-
286// TODO move this into a utility function in QWindow or QGuiApplication-
287static QWindow *childWindowAt(QWindow *win, const QPoint &p)-
288{-
289 for (QObject *obj : win->children()) {-
290 if (obj->isWindowType()) {
obj->isWindowType()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QWindow
FALSEnever evaluated
0-3
291 QWindow *childWin = static_cast<QWindow *>(obj);-
292 if (childWin->isVisible()) {
childWin->isVisible()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QWindow
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QWindow
1-2
293 if (QWindow *recurse = childWindowAt(childWin, p))
QWindow *recur...t(childWin, p)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QWindow
FALSEnever evaluated
0-2
294 return recurse;
executed 2 times by 1 test: return recurse;
Executed by:
  • tst_QWindow
2
295 }
never executed: end of block
0
296 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QWindow
1
297 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QWindow
1
298 if (!win->isTopLevel()
!win->isTopLevel()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QWindow
FALSEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QApplication
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWindow
1-5
299 && !(win->flags() & Qt::WindowTransparentForInput)
!(win->flags()...arentForInput)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QWindow
FALSEnever evaluated
0-1
300 && win->geometry().contains(win->parent()->mapFromGlobal(p))) {
win->geometry(...FromGlobal(p))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QWindow
FALSEnever evaluated
0-1
301 return win;
executed 1 time by 1 test: return win;
Executed by:
  • tst_QWindow
1
302 }-
303 return Q_NULLPTR;
executed 5 times by 3 tests: return nullptr;
Executed by:
  • tst_QApplication
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWindow
5
304}-
305-
306static const char *wm_window_type_property_id = "_q_xcb_wm_window_type";-
307static const char *wm_window_role_property_id = "_q_xcb_wm_window_role";-
308-
309QXcbWindow::QXcbWindow(QWindow *window)-
310 : QPlatformWindow(window)-
311 , m_window(0)-
312 , m_syncCounter(0)-
313 , m_gravity(XCB_GRAVITY_STATIC)-
314 , m_mapped(false)-
315 , m_transparent(false)-
316 , m_usingSyncProtocol(false)-
317 , m_deferredActivation(false)-
318 , m_embedded(false)-
319 , m_alertState(false)-
320 , m_netWmUserTimeWindow(XCB_NONE)-
321 , m_dirtyFrameMargins(false)-
322 , m_lastWindowStateEvent(-1)-
323 , m_syncState(NoSyncNeeded)-
324 , m_pendingSyncRequest(0)-
325 , m_currentBitmapCursor(XCB_CURSOR_NONE)-
326{-
327 setConnection(xcbScreen()->connection());-
328}
executed 4405 times by 128 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
4405
329-
330#ifdef Q_COMPILER_CLASS_ENUM-
331enum : quint32 {-
332#else-
333enum {-
334#endif-
335 baseEventMask-
336 = XCB_EVENT_MASK_EXPOSURE | XCB_EVENT_MASK_STRUCTURE_NOTIFY-
337 | XCB_EVENT_MASK_PROPERTY_CHANGE | XCB_EVENT_MASK_FOCUS_CHANGE,-
338-
339 defaultEventMask = baseEventMask-
340 | XCB_EVENT_MASK_KEY_PRESS | XCB_EVENT_MASK_KEY_RELEASE-
341 | XCB_EVENT_MASK_BUTTON_PRESS | XCB_EVENT_MASK_BUTTON_RELEASE-
342 | XCB_EVENT_MASK_BUTTON_MOTION | XCB_EVENT_MASK_ENTER_WINDOW | XCB_EVENT_MASK_LEAVE_WINDOW-
343 | XCB_EVENT_MASK_POINTER_MOTION,-
344-
345 transparentForInputEventMask = baseEventMask-
346 | XCB_EVENT_MASK_VISIBILITY_CHANGE | XCB_EVENT_MASK_RESIZE_REDIRECT-
347 | XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT-
348 | XCB_EVENT_MASK_COLOR_MAP_CHANGE | XCB_EVENT_MASK_OWNER_GRAB_BUTTON-
349};-
350-
351void QXcbWindow::create()-
352{-
353 if (window()->type() == Qt::ForeignWindow) {
window()->type...:ForeignWindowDescription
TRUEnever evaluated
FALSEevaluated 4405 times by 128 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-4405
354 m_window = window()->winId();-
355 return;
never executed: return;
0
356 }-
357-
358 destroy();-
359-
360 m_windowState = Qt::WindowNoState;-
361-
362 Qt::WindowType type = window()->type();-
363-
364 QXcbScreen *currentScreen = xcbScreen();-
365 QRect rect = windowGeometry();-
366 QXcbScreen *platformScreen = parent() ? parentScreen() : static_cast<QXcbScreen*>(screenForGeometry(rect));
parent()Description
TRUEevaluated 97 times by 6 tests
Evaluated by:
  • tst_QDialog
  • tst_QMdiArea
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
FALSEevaluated 4308 times by 128 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
  • ...
97-4308
367-
368 if (type == Qt::Desktop) {
type == Qt::DesktopDescription
TRUEevaluated 298 times by 117 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
FALSEevaluated 4107 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
  • ...
298-4107
369 m_window = platformScreen->root();-
370 m_depth = platformScreen->screen()->root_depth;-
371 m_visualId = platformScreen->screen()->root_visual;-
372 const xcb_visualtype_t *visual = 0;-
373 if (connection()->hasDefaultVisualId()) {
connection()->...aultVisualId()Description
TRUEnever evaluated
FALSEevaluated 298 times by 117 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
0-298
374 visual = platformScreen->visualForId(connection()->defaultVisualId());-
375 if (visual)
visualDescription
TRUEnever evaluated
FALSEnever evaluated
0
376 m_visualId = connection()->defaultVisualId();
never executed: m_visualId = connection()->defaultVisualId();
0
377 if (!visual)
!visualDescription
TRUEnever evaluated
FALSEnever evaluated
0
378 qWarning("Could not use default visual id. Falling back to root_visual for screen.");
never executed: QMessageLogger(__FILE__, 378, __PRETTY_FUNCTION__).warning("Could not use default visual id. Falling back to root_visual for screen.");
0
379 }
never executed: end of block
0
380 if (!visual)
!visualDescription
TRUEevaluated 298 times by 117 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
FALSEnever evaluated
0-298
381 visual = platformScreen->visualForId(m_visualId);
executed 298 times by 117 tests: visual = platformScreen->visualForId(m_visualId);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
298
382 m_imageFormat = imageFormatForVisual(m_depth, visual->red_mask, visual->blue_mask, &m_imageRgbSwap);-
383 connection()->addWindowEventListener(m_window, this);-
384 return;
executed 298 times by 117 tests: return;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
298
385 }-
386-
387 // Parameters to XCreateWindow() are frame corner + inner size.-
388 // This fits in case position policy is frame inclusive. There is-
389 // currently no way to implement it for frame-exclusive geometries.-
390 QPlatformWindow::setGeometry(rect);-
391-
392 if (platformScreen != currentScreen)
platformScreen... currentScreenDescription
TRUEnever evaluated
FALSEevaluated 4107 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-4107
393 QWindowSystemInterface::handleWindowScreenChanged(window(), platformScreen->QPlatformScreen::screen());
never executed: QWindowSystemInterface::handleWindowScreenChanged(window(), platformScreen->QPlatformScreen::screen());
0
394-
395 const QSize minimumSize = windowMinimumSize();-
396 if (rect.width() > 0 || rect.height() > 0) {
rect.width() > 0Description
TRUEevaluated 4034 times by 119 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEevaluated 73 times by 13 tests
Evaluated by:
  • tst_QApplication
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGuiApplication
  • tst_QKeyEvent
  • tst_QMdiArea
  • tst_QMenuBar
  • tst_QMouseEvent
  • tst_QOpenGlConfig
  • tst_QWidget
  • tst_QWindow
  • tst_QWindowContainer
  • tst_qinputmethod
rect.height() > 0Description
TRUEnever evaluated
FALSEevaluated 73 times by 13 tests
Evaluated by:
  • tst_QApplication
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGuiApplication
  • tst_QKeyEvent
  • tst_QMdiArea
  • tst_QMenuBar
  • tst_QMouseEvent
  • tst_QOpenGlConfig
  • tst_QWidget
  • tst_QWindow
  • tst_QWindowContainer
  • tst_qinputmethod
0-4034
397 rect.setWidth(qBound(1, rect.width(), XCOORD_MAX));-
398 rect.setHeight(qBound(1, rect.height(), XCOORD_MAX));-
399 } else if (minimumSize.width() > 0 || minimumSize.height() > 0) {
executed 4034 times by 119 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
  • ...
minimumSize.width() > 0Description
TRUEnever evaluated
FALSEevaluated 73 times by 13 tests
Evaluated by:
  • tst_QApplication
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGuiApplication
  • tst_QKeyEvent
  • tst_QMdiArea
  • tst_QMenuBar
  • tst_QMouseEvent
  • tst_QOpenGlConfig
  • tst_QWidget
  • tst_QWindow
  • tst_QWindowContainer
  • tst_qinputmethod
minimumSize.height() > 0Description
TRUEnever evaluated
FALSEevaluated 73 times by 13 tests
Evaluated by:
  • tst_QApplication
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGuiApplication
  • tst_QKeyEvent
  • tst_QMdiArea
  • tst_QMenuBar
  • tst_QMouseEvent
  • tst_QOpenGlConfig
  • tst_QWidget
  • tst_QWindow
  • tst_QWindowContainer
  • tst_qinputmethod
0-4034
400 rect.setSize(minimumSize);-
401 } else {
never executed: end of block
0
402 rect.setWidth(QHighDpi::toNativePixels(int(defaultWindowWidth), platformScreen->QPlatformScreen::screen()));-
403 rect.setHeight(QHighDpi::toNativePixels(int(defaultWindowHeight), platformScreen->QPlatformScreen::screen()));-
404 }
executed 73 times by 13 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGuiApplication
  • tst_QKeyEvent
  • tst_QMdiArea
  • tst_QMenuBar
  • tst_QMouseEvent
  • tst_QOpenGlConfig
  • tst_QWidget
  • tst_QWindow
  • tst_QWindowContainer
  • tst_qinputmethod
73
405-
406 xcb_window_t xcb_parent_id = platformScreen->root();-
407 if (parent()) {
parent()Description
TRUEevaluated 97 times by 6 tests
Evaluated by:
  • tst_QDialog
  • tst_QMdiArea
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
FALSEevaluated 4010 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
  • ...
97-4010
408 xcb_parent_id = static_cast<QXcbWindow *>(parent())->xcb_window();-
409 m_embedded = parent()->window()->type() == Qt::ForeignWindow;-
410-
411 QSurfaceFormat parentFormat = parent()->window()->requestedFormat();-
412 if (window()->surfaceType() != QSurface::OpenGLSurface && parentFormat.hasAlpha()) {
window()->surf...:OpenGLSurfaceDescription
TRUEevaluated 97 times by 6 tests
Evaluated by:
  • tst_QDialog
  • tst_QMdiArea
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
FALSEnever evaluated
parentFormat.hasAlpha()Description
TRUEnever evaluated
FALSEevaluated 97 times by 6 tests
Evaluated by:
  • tst_QDialog
  • tst_QMdiArea
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
0-97
413 window()->setFormat(parentFormat);-
414 }
never executed: end of block
0
415 }
executed 97 times by 6 tests: end of block
Executed by:
  • tst_QDialog
  • tst_QMdiArea
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
97
416-
417 resolveFormat(platformScreen->surfaceFormatFor(window()->requestedFormat()));-
418-
419 const xcb_visualtype_t *visual = Q_NULLPTR;-
420-
421 if (connection()->hasDefaultVisualId()) {
connection()->...aultVisualId()Description
TRUEnever evaluated
FALSEevaluated 4107 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-4107
422 visual = platformScreen->visualForId(connection()->defaultVisualId());-
423 if (!visual)
!visualDescription
TRUEnever evaluated
FALSEnever evaluated
0
424 qWarning() << "Failed to use requested visual id.";
never executed: QMessageLogger(__FILE__, 424, __PRETTY_FUNCTION__).warning() << "Failed to use requested visual id.";
0
425 }
never executed: end of block
0
426-
427 if (!visual)
!visualDescription
TRUEevaluated 4107 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-4107
428 visual = createVisual();
executed 4107 times by 125 tests: visual = createVisual();
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
  • ...
4107
429-
430 if (!visual) {
!visualDescription
TRUEnever evaluated
FALSEevaluated 4107 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-4107
431 qWarning() << "Falling back to using screens root_visual.";-
432 visual = platformScreen->visualForId(platformScreen->screen()->root_visual);-
433 }
never executed: end of block
0
434-
435 Q_ASSERT(visual);-
436-
437 m_visualId = visual->visual_id;-
438 m_depth = platformScreen->depthOfVisual(m_visualId);-
439 m_imageFormat = imageFormatForVisual(m_depth, visual->red_mask, visual->blue_mask, &m_imageRgbSwap);-
440 xcb_colormap_t colormap = 0;-
441-
442 quint32 mask = XCB_CW_BACK_PIXMAP-
443 | XCB_CW_BORDER_PIXEL-
444 | XCB_CW_BIT_GRAVITY-
445 | XCB_CW_OVERRIDE_REDIRECT-
446 | XCB_CW_SAVE_UNDER-
447 | XCB_CW_EVENT_MASK;-
448-
449 static const bool haveOpenGL = QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::OpenGL);-
450-
451 if ((window()->supportsOpenGL() && haveOpenGL) || m_format.hasAlpha()) {
window()->supportsOpenGL()Description
TRUEevaluated 3974 times by 118 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
FALSEevaluated 133 times by 12 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QGuiApplication
  • tst_QKeyEvent
  • tst_QLineEdit
  • tst_QMouseEvent
  • tst_QRasterWindow
  • tst_QTouchEvent
  • tst_QWindow
  • tst_QWindowContainer
  • tst_qinputmethod
haveOpenGLDescription
TRUEevaluated 3974 times by 118 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
FALSEnever evaluated
m_format.hasAlpha()Description
TRUEnever evaluated
FALSEevaluated 133 times by 12 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QGuiApplication
  • tst_QKeyEvent
  • tst_QLineEdit
  • tst_QMouseEvent
  • tst_QRasterWindow
  • tst_QTouchEvent
  • tst_QWindow
  • tst_QWindowContainer
  • tst_qinputmethod
0-3974
452 colormap = xcb_generate_id(xcb_connection());-
453 Q_XCB_CALL(xcb_create_colormap(xcb_connection(),-
454 XCB_COLORMAP_ALLOC_NONE,-
455 colormap,-
456 xcb_parent_id,-
457 m_visualId));-
458-
459 mask |= XCB_CW_COLORMAP;-
460 }
executed 3974 times by 118 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
3974
461-
462 quint32 values[] = {-
463 XCB_BACK_PIXMAP_NONE,-
464 platformScreen->screen()->black_pixel,-
465 XCB_GRAVITY_NORTH_WEST,-
466 type == Qt::Popup || type == Qt::ToolTip || (window()->flags() & Qt::BypassWindowManagerHint),-
467 type == Qt::Popup || type == Qt::Tool || type == Qt::SplashScreen || type == Qt::ToolTip || type == Qt::Drawer,-
468 defaultEventMask,-
469 colormap-
470 };-
471-
472 m_window = xcb_generate_id(xcb_connection());-
473 Q_XCB_CALL(xcb_create_window(xcb_connection(),-
474 m_depth,-
475 m_window, // window id-
476 xcb_parent_id, // parent window id-
477 rect.x(),-
478 rect.y(),-
479 rect.width(),-
480 rect.height(),-
481 0, // border width-
482 XCB_WINDOW_CLASS_INPUT_OUTPUT, // window class-
483 m_visualId, // visual-
484 mask,-
485 values));-
486-
487 connection()->addWindowEventListener(m_window, this);-
488-
489 Q_XCB_CALL(xcb_change_window_attributes(xcb_connection(), m_window, mask, values));-
490-
491 propagateSizeHints();-
492-
493 xcb_atom_t properties[5];-
494 int propertyCount = 0;-
495 properties[propertyCount++] = atom(QXcbAtom::WM_DELETE_WINDOW);-
496 properties[propertyCount++] = atom(QXcbAtom::WM_TAKE_FOCUS);-
497 properties[propertyCount++] = atom(QXcbAtom::_NET_WM_PING);-
498-
499 m_usingSyncProtocol = platformScreen->syncRequestSupported();-
500-
501 if (m_usingSyncProtocol)
m_usingSyncProtocolDescription
TRUEevaluated 4107 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-4107
502 properties[propertyCount++] = atom(QXcbAtom::_NET_WM_SYNC_REQUEST);
executed 4107 times by 125 tests: properties[propertyCount++] = atom(QXcbAtom::_NET_WM_SYNC_REQUEST);
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
  • ...
4107
503-
504 if (window()->flags() & Qt::WindowContextHelpButtonHint)
window()->flag...HelpButtonHintDescription
TRUEevaluated 223 times by 25 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QWidget
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qmouseevent_modal
FALSEevaluated 3884 times by 121 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_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
223-3884
505 properties[propertyCount++] = atom(QXcbAtom::_NET_WM_CONTEXT_HELP);
executed 223 times by 25 tests: properties[propertyCount++] = atom(QXcbAtom::_NET_WM_CONTEXT_HELP);
Executed by:
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QWidget
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qmouseevent_modal
223
506-
507 Q_XCB_CALL(xcb_change_property(xcb_connection(),-
508 XCB_PROP_MODE_REPLACE,-
509 m_window,-
510 atom(QXcbAtom::WM_PROTOCOLS),-
511 XCB_ATOM_ATOM,-
512 32,-
513 propertyCount,-
514 properties));-
515 m_syncValue.hi = 0;-
516 m_syncValue.lo = 0;-
517-
518 const QByteArray wmClass = QXcbIntegration::instance()->wmClass();-
519 if (!wmClass.isEmpty()) {
!wmClass.isEmpty()Description
TRUEevaluated 4056 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEevaluated 51 times by 2 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
51-4056
520 Q_XCB_CALL(xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE,-
521 m_window, atom(QXcbAtom::WM_CLASS),-
522 XCB_ATOM_STRING, 8, wmClass.size(), wmClass.constData()));-
523 }
executed 4056 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
  • ...
4056
524-
525 if (m_usingSyncProtocol) {
m_usingSyncProtocolDescription
TRUEevaluated 4107 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-4107
526 m_syncCounter = xcb_generate_id(xcb_connection());-
527 Q_XCB_CALL(xcb_sync_create_counter(xcb_connection(), m_syncCounter, m_syncValue));-
528-
529 Q_XCB_CALL(xcb_change_property(xcb_connection(),-
530 XCB_PROP_MODE_REPLACE,-
531 m_window,-
532 atom(QXcbAtom::_NET_WM_SYNC_REQUEST_COUNTER),-
533 XCB_ATOM_CARDINAL,-
534 32,-
535 1,-
536 &m_syncCounter));-
537 }
executed 4107 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
  • ...
4107
538-
539 // set the PID to let the WM kill the application if unresponsive-
540 quint32 pid = getpid();-
541 Q_XCB_CALL(xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window,-
542 atom(QXcbAtom::_NET_WM_PID), XCB_ATOM_CARDINAL, 32,-
543 1, &pid));-
544-
545 xcb_wm_hints_t hints;-
546 memset(&hints, 0, sizeof(hints));-
547 xcb_wm_hints_set_normal(&hints);-
548-
549 xcb_wm_hints_set_input(&hints, !(window()->flags() & Qt::WindowDoesNotAcceptFocus));-
550-
551 xcb_set_wm_hints(xcb_connection(), m_window, &hints);-
552-
553 xcb_window_t leader = connection()->clientLeader();-
554 Q_XCB_CALL(xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window,-
555 atom(QXcbAtom::WM_CLIENT_LEADER), XCB_ATOM_WINDOW, 32,-
556 1, &leader));-
557-
558 /* Add XEMBED info; this operation doesn't initiate the embedding. */-
559 quint32 data[] = { XEMBED_VERSION, XEMBED_MAPPED };-
560 Q_XCB_CALL(xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window,-
561 atom(QXcbAtom::_XEMBED_INFO),-
562 atom(QXcbAtom::_XEMBED_INFO),-
563 32, 2, (void *)data));-
564-
565-
566#if defined(XCB_USE_XINPUT2)-
567 connection()->xi2Select(m_window);-
568#endif-
569-
570 setWindowState(window()->windowState());-
571 setWindowFlags(window()->flags());-
572 setWindowTitle(window()->title());-
573-
574 if (window()->flags() & Qt::WindowTransparentForInput)
window()->flag...parentForInputDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QWidget_window
FALSEevaluated 4106 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
  • ...
1-4106
575 setTransparentForMouseEvents(true);
executed 1 time by 1 test: setTransparentForMouseEvents(true);
Executed by:
  • tst_QWidget_window
1
576-
577#ifdef XCB_USE_XLIB-
578 // force sync to read outstanding requests - see QTBUG-29106-
579 XSync(DISPLAY_FROM_XCB(platformScreen), false);-
580#endif-
581-
582#ifndef QT_NO_DRAGANDDROP-
583 connection()->drag()->dndEnable(this, true);-
584#endif-
585-
586 const qreal opacity = qt_window_private(window())->opacity;-
587 if (!qFuzzyCompare(opacity, qreal(1.0)))
!qFuzzyCompare...y, qreal(1.0))Description
TRUEnever evaluated
FALSEevaluated 4107 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-4107
588 setOpacity(opacity);
never executed: setOpacity(opacity);
0
589 if (window()->isTopLevel())
window()->isTopLevel()Description
TRUEevaluated 4010 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEevaluated 97 times by 6 tests
Evaluated by:
  • tst_QDialog
  • tst_QMdiArea
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
97-4010
590 setWindowIcon(window()->icon());
executed 4010 times by 125 tests: setWindowIcon(window()->icon());
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
  • ...
4010
591-
592 if (window()->dynamicPropertyNames().contains(wm_window_role_property_id)) {
window()->dyna...e_property_id)Description
TRUEnever evaluated
FALSEevaluated 4107 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-4107
593 QByteArray wmWindowRole = window()->property(wm_window_role_property_id).toByteArray();-
594 setWmWindowRole(wmWindowRole);-
595 }
never executed: end of block
0
596}
executed 4107 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
  • ...
4107
597-
598QXcbWindow::~QXcbWindow()-
599{-
600 if (m_currentBitmapCursor != XCB_CURSOR_NONE) {
m_currentBitma...CB_CURSOR_NONEDescription
TRUEnever evaluated
FALSEevaluated 4398 times by 239 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-4398
601 xcb_free_cursor(xcb_connection(), m_currentBitmapCursor);-
602 }
never executed: end of block
0
603 if (window()->type() != Qt::ForeignWindow)
window()->type...:ForeignWindowDescription
TRUEevaluated 4398 times by 239 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-4398
604 destroy();
executed 4398 times by 239 tests: destroy();
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
  • ...
4398
605 else {-
606 if (connection()->mouseGrabber() == this)
connection()->...bber() == thisDescription
TRUEnever evaluated
FALSEnever evaluated
0
607 connection()->setMouseGrabber(Q_NULLPTR);
never executed: connection()->setMouseGrabber(nullptr);
0
608 if (connection()->mousePressWindow() == this)
connection()->...ndow() == thisDescription
TRUEnever evaluated
FALSEnever evaluated
0
609 connection()->setMousePressWindow(Q_NULLPTR);
never executed: connection()->setMousePressWindow(nullptr);
0
610 }
never executed: end of block
0
611}-
612-
613void QXcbWindow::destroy()-
614{-
615 if (connection()->focusWindow() == this)
connection()->...ndow() == thisDescription
TRUEevaluated 2124 times by 103 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 6679 times by 242 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
  • ...
2124-6679
616 doFocusOut();
executed 2124 times by 103 tests: doFocusOut();
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2124
617 if (connection()->mouseGrabber() == this)
connection()->...bber() == thisDescription
TRUEnever evaluated
FALSEevaluated 8803 times by 242 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-8803
618 connection()->setMouseGrabber(Q_NULLPTR);
never executed: connection()->setMouseGrabber(nullptr);
0
619-
620 if (m_syncCounter && m_usingSyncProtocol)
m_syncCounterDescription
TRUEevaluated 4104 times by 135 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEevaluated 4699 times by 242 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
  • ...
m_usingSyncProtocolDescription
TRUEevaluated 4104 times by 135 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-4699
621 Q_XCB_CALL(xcb_sync_destroy_counter(xcb_connection(), m_syncCounter));
executed 4104 times by 135 tests: xcb_sync_destroy_counter(xcb_connection(), m_syncCounter);
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
  • ...
4104
622 if (m_window) {
m_windowDescription
TRUEevaluated 4398 times by 239 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEevaluated 4405 times by 128 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
  • ...
4398-4405
623 if (m_netWmUserTimeWindow) {
m_netWmUserTimeWindowDescription
TRUEevaluated 3439 times by 108 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • ...
FALSEevaluated 959 times by 218 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_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
959-3439
624 xcb_delete_property(xcb_connection(), m_window, atom(QXcbAtom::_NET_WM_USER_TIME_WINDOW));-
625 // Some window managers, like metacity, do XSelectInput on the _NET_WM_USER_TIME_WINDOW window,-
626 // without trapping BadWindow (which crashes when the user time window is destroyed).-
627 connection()->sync();-
628 xcb_destroy_window(xcb_connection(), m_netWmUserTimeWindow);-
629 m_netWmUserTimeWindow = XCB_NONE;-
630 }
executed 3439 times by 108 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • ...
3439
631 connection()->removeWindowEventListener(m_window);-
632 Q_XCB_CALL(xcb_destroy_window(xcb_connection(), m_window));-
633 m_window = 0;-
634 }
executed 4398 times by 239 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
4398
635 m_mapped = false;-
636-
637 if (m_pendingSyncRequest)
m_pendingSyncRequestDescription
TRUEnever evaluated
FALSEevaluated 8803 times by 242 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-8803
638 m_pendingSyncRequest->invalidate();
never executed: m_pendingSyncRequest->invalidate();
0
639}
executed 8803 times by 242 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
  • ...
8803
640-
641void QXcbWindow::setGeometry(const QRect &rect)-
642{-
643 QPlatformWindow::setGeometry(rect);-
644-
645 propagateSizeHints();-
646-
647 QXcbScreen *currentScreen = xcbScreen();-
648 QXcbScreen *newScreen = parent() ? parentScreen() : static_cast<QXcbScreen*>(screenForGeometry(rect));
parent()Description
TRUEevaluated 43 times by 5 tests
Evaluated by:
  • tst_QDialog
  • tst_QMdiArea
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
FALSEevaluated 2810 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
43-2810
649-
650 if (!newScreen)
!newScreenDescription
TRUEnever evaluated
FALSEevaluated 2853 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
0-2853
651 newScreen = xcbScreen();
never executed: newScreen = xcbScreen();
0
652-
653 const QRect wmGeometry = windowToWmGeometry(rect);-
654-
655 if (newScreen != currentScreen)
newScreen != currentScreenDescription
TRUEnever evaluated
FALSEevaluated 2853 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
0-2853
656 QWindowSystemInterface::handleWindowScreenChanged(window(), newScreen->QPlatformScreen::screen());
never executed: QWindowSystemInterface::handleWindowScreenChanged(window(), newScreen->QPlatformScreen::screen());
0
657-
658 if (qt_window_private(window())->positionAutomatic) {
qt_window_priv...itionAutomaticDescription
TRUEevaluated 1779 times by 86 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGraphicsAnchorLayout
  • ...
FALSEevaluated 1074 times by 69 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
1074-1779
659 const quint32 mask = XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT;-
660 const qint32 values[] = {-
661 qBound<qint32>(1, wmGeometry.width(), XCOORD_MAX),-
662 qBound<qint32>(1, wmGeometry.height(), XCOORD_MAX),-
663 };-
664 Q_XCB_CALL(xcb_configure_window(xcb_connection(), m_window, mask, reinterpret_cast<const quint32*>(values)));-
665 } else {
executed 1779 times by 86 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGraphicsAnchorLayout
  • ...
1779
666 const quint32 mask = XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y | XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT;-
667 const qint32 values[] = {-
668 qBound<qint32>(-XCOORD_MAX, wmGeometry.x(), XCOORD_MAX),-
669 qBound<qint32>(-XCOORD_MAX, wmGeometry.y(), XCOORD_MAX),-
670 qBound<qint32>(1, wmGeometry.width(), XCOORD_MAX),-
671 qBound<qint32>(1, wmGeometry.height(), XCOORD_MAX),-
672 };-
673 Q_XCB_CALL(xcb_configure_window(xcb_connection(), m_window, mask, reinterpret_cast<const quint32*>(values)));-
674 }
executed 1074 times by 69 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
1074
675-
676 xcb_flush(xcb_connection());-
677}
executed 2853 times by 106 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
2853
678-
679QMargins QXcbWindow::frameMargins() const-
680{-
681 if (m_dirtyFrameMargins) {
m_dirtyFrameMarginsDescription
TRUEevaluated 4245 times by 100 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEevaluated 9752 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
  • ...
4245-9752
682 if (connection()->wmSupport()->isSupportedByWM(atom(QXcbAtom::_NET_FRAME_EXTENTS))) {
connection()->...RAME_EXTENTS))Description
TRUEevaluated 4245 times by 100 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEnever evaluated
0-4245
683 xcb_get_property_cookie_t cookie = xcb_get_property(xcb_connection(), false, m_window,-
684 atom(QXcbAtom::_NET_FRAME_EXTENTS), XCB_ATOM_CARDINAL, 0, 4);-
685 QScopedPointer<xcb_get_property_reply_t, QScopedPointerPodDeleter> reply(-
686 xcb_get_property_reply(xcb_connection(), cookie, NULL));-
687 if (reply && reply->type == XCB_ATOM_CARDINAL && reply->format == 32 && reply->value_len == 4) {
reply->type ==..._ATOM_CARDINALDescription
TRUEevaluated 3311 times by 98 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEevaluated 934 times by 71 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
reply->format == 32Description
TRUEevaluated 3311 times by 98 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEnever evaluated
reply->value_len == 4Description
TRUEevaluated 3311 times by 98 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEnever evaluated
0-3311
688 quint32 *data = (quint32 *)xcb_get_property_value(reply.data());-
689 // _NET_FRAME_EXTENTS format is left, right, top, bottom-
690 m_frameMargins = QMargins(data[0], data[2], data[1], data[3]);-
691 m_dirtyFrameMargins = false;-
692 return m_frameMargins;
executed 3311 times by 98 tests: return m_frameMargins;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
3311
693 }-
694 }
executed 934 times by 71 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
934
695-
696 // _NET_FRAME_EXTENTS property is not available, so-
697 // walk up the window tree to get the frame parent-
698 xcb_window_t window = m_window;-
699 xcb_window_t parent = m_window;-
700-
701 bool foundRoot = false;-
702-
703 const QVector<xcb_window_t> &virtualRoots =-
704 connection()->wmSupport()->virtualRoots();-
705-
706 while (!foundRoot) {
!foundRootDescription
TRUEevaluated 1296 times by 71 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 934 times by 71 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
934-1296
707 xcb_query_tree_cookie_t cookie = xcb_query_tree_unchecked(xcb_connection(), parent);-
708-
709 xcb_query_tree_reply_t *reply = xcb_query_tree_reply(xcb_connection(), cookie, NULL);-
710 if (reply) {
replyDescription
TRUEevaluated 1296 times by 71 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
FALSEnever evaluated
0-1296
711 if (reply->root == reply->parent || virtualRoots.indexOf(reply->parent) != -1 || reply->parent == XCB_WINDOW_NONE) {
reply->root == reply->parentDescription
TRUEevaluated 934 times by 71 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 362 times by 56 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • ...
virtualRoots.i...>parent) != -1Description
TRUEnever evaluated
FALSEevaluated 362 times by 56 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • ...
reply->parent ...CB_WINDOW_NONEDescription
TRUEnever evaluated
FALSEevaluated 362 times by 56 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • ...
0-934
712 foundRoot = true;-
713 } else {
executed 934 times by 71 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
934
714 window = parent;-
715 parent = reply->parent;-
716 }
executed 362 times by 56 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • ...
362
717-
718 free(reply);-
719 } else {
executed 1296 times by 71 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
1296
720 m_dirtyFrameMargins = false;-
721 m_frameMargins = QMargins();-
722 return m_frameMargins;
never executed: return m_frameMargins;
0
723 }-
724 }-
725-
726 QPoint offset;-
727-
728 xcb_translate_coordinates_reply_t *reply =-
729 xcb_translate_coordinates_reply(-
730 xcb_connection(),-
731 xcb_translate_coordinates(xcb_connection(), window, parent, 0, 0),-
732 NULL);-
733-
734 if (reply) {
replyDescription
TRUEevaluated 934 times by 71 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
FALSEnever evaluated
0-934
735 offset = QPoint(reply->dst_x, reply->dst_y);-
736 free(reply);-
737 }
executed 934 times by 71 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
934
738-
739 xcb_get_geometry_reply_t *geom =-
740 xcb_get_geometry_reply(-
741 xcb_connection(),-
742 xcb_get_geometry(xcb_connection(), parent),-
743 NULL);-
744-
745 if (geom) {
geomDescription
TRUEevaluated 934 times by 71 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
FALSEnever evaluated
0-934
746 // ---
747 // add the border_width for the window managers frame... some window managers-
748 // do not use a border_width of zero for their frames, and if we the left and-
749 // top strut, we ensure that pos() is absolutely correct. frameGeometry()-
750 // will still be incorrect though... perhaps i should have foffset as well, to-
751 // indicate the frame offset (equal to the border_width on X).-
752 // - Brad-
753 // -- copied from qwidget_x11.cpp-
754-
755 int left = offset.x() + geom->border_width;-
756 int top = offset.y() + geom->border_width;-
757 int right = geom->width + geom->border_width - geometry().width() - offset.x();-
758 int bottom = geom->height + geom->border_width - geometry().height() - offset.y();-
759-
760 m_frameMargins = QMargins(left, top, right, bottom);-
761-
762 free(geom);-
763 }
executed 934 times by 71 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
934
764-
765 m_dirtyFrameMargins = false;-
766 }
executed 934 times by 71 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
934
767-
768 return m_frameMargins;
executed 10686 times by 125 tests: return m_frameMargins;
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
  • ...
10686
769}-
770-
771void QXcbWindow::setVisible(bool visible)-
772{-
773 if (visible)
visibleDescription
TRUEevaluated 3987 times by 122 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEevaluated 3986 times by 130 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
  • ...
3986-3987
774 show();
executed 3987 times by 122 tests: show();
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
  • ...
3987
775 else-
776 hide();
executed 3986 times by 130 tests: hide();
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
  • ...
3986
777}-
778-
779static inline bool testShowWithoutActivating(const QWindow *window)-
780{-
781 // QWidget-attribute Qt::WA_ShowWithoutActivating.-
782 const QVariant showWithoutActivating = window->property("_q_showWithoutActivating");-
783 return showWithoutActivating.isValid() && showWithoutActivating.toBool();
executed 3987 times by 122 tests: return showWithoutActivating.isValid() && showWithoutActivating.toBool();
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
  • ...
3987
784}-
785-
786void QXcbWindow::show()-
787{-
788 if (window()->isTopLevel()) {
window()->isTopLevel()Description
TRUEevaluated 3918 times by 122 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEevaluated 69 times by 6 tests
Evaluated by:
  • tst_QDialog
  • tst_QMdiArea
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
69-3918
789 xcb_get_property_cookie_t cookie = xcb_get_wm_hints_unchecked(xcb_connection(), m_window);-
790-
791 xcb_wm_hints_t hints;-
792 xcb_get_wm_hints_reply(xcb_connection(), cookie, &hints, NULL);-
793-
794 if (window()->windowState() & Qt::WindowMinimized)
window()->wind...indowMinimizedDescription
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QDialog
  • tst_QWidget
FALSEevaluated 3905 times by 122 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
  • ...
13-3905
795 xcb_wm_hints_set_iconic(&hints);
executed 13 times by 2 tests: xcb_icccm_wm_hints_set_iconic(&hints);
Executed by:
  • tst_QDialog
  • tst_QWidget
13
796 else-
797 xcb_wm_hints_set_normal(&hints);
executed 3905 times by 122 tests: xcb_icccm_wm_hints_set_normal(&hints);
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
  • ...
3905
798-
799 xcb_wm_hints_set_input(&hints, !(window()->flags() & Qt::WindowDoesNotAcceptFocus));-
800-
801 xcb_set_wm_hints(xcb_connection(), m_window, &hints);-
802-
803 m_gravity = positionIncludesFrame(window()) ?
positionInclud...rame(window())Description
TRUEevaluated 267 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QPixmap
  • tst_QScrollBar
  • tst_QShortcut
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QToolTip
  • tst_QTouchEvent
  • tst_QTreeView
  • tst_QWidget
  • ...
FALSEevaluated 3651 times by 119 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
  • ...
267-3651
804 XCB_GRAVITY_NORTH_WEST : XCB_GRAVITY_STATIC;-
805-
806 // update WM_NORMAL_HINTS-
807 propagateSizeHints();-
808-
809 // update WM_TRANSIENT_FOR-
810 xcb_window_t transientXcbParent = 0;-
811 if (isTransient(window())) {
isTransient(window())Description
TRUEevaluated 524 times by 47 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • ...
FALSEevaluated 3394 times by 111 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_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
524-3394
812 const QWindow *tp = window()->transientParent();-
813 if (tp && tp->handle())
tpDescription
TRUEevaluated 170 times by 30 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidget_window
  • ...
FALSEevaluated 354 times by 33 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • ...
tp->handle()Description
TRUEevaluated 170 times by 30 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidget_window
  • ...
FALSEnever evaluated
0-354
814 transientXcbParent = static_cast<const QXcbWindow *>(tp->handle())->winId();
executed 170 times by 30 tests: transientXcbParent = static_cast<const QXcbWindow *>(tp->handle())->winId();
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidget_window
  • ...
170
815 // Default to client leader if there is no transient parent, else modal dialogs can-
816 // be hidden by their parents.-
817 if (!transientXcbParent)
!transientXcbParentDescription
TRUEevaluated 354 times by 33 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • ...
FALSEevaluated 170 times by 30 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidget_window
  • ...
170-354
818 transientXcbParent = connection()->clientLeader();
executed 354 times by 33 tests: transientXcbParent = connection()->clientLeader();
Executed by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QPixmap
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • ...
354
819 if (transientXcbParent) { // ICCCM 4.1.2.6
transientXcbParentDescription
TRUEevaluated 524 times by 47 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • ...
FALSEnever evaluated
0-524
820 Q_XCB_CALL(xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window,-
821 XCB_ATOM_WM_TRANSIENT_FOR, XCB_ATOM_WINDOW, 32,-
822 1, &transientXcbParent));-
823 }
executed 524 times by 47 tests: end of block
Executed by:
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • ...
524
824 }
executed 524 times by 47 tests: end of block
Executed by:
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • ...
524
825 if (!transientXcbParent)
!transientXcbParentDescription
TRUEevaluated 3394 times by 111 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_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
FALSEevaluated 524 times by 47 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • ...
524-3394
826 Q_XCB_CALL(xcb_delete_property(xcb_connection(), m_window, XCB_ATOM_WM_TRANSIENT_FOR));
executed 3394 times by 111 tests: xcb_delete_property(xcb_connection(), m_window, XCB_ATOM_WM_TRANSIENT_FOR);
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_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
3394
827-
828 // update _MOTIF_WM_HINTS-
829 updateMotifWmHintsBeforeMap();-
830-
831 // update _NET_WM_STATE-
832 updateNetWmStateBeforeMap();-
833 }
executed 3918 times by 122 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
  • ...
3918
834-
835 if (testShowWithoutActivating(window()))
testShowWithou...ting(window())Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QWidget_window
FALSEevaluated 3985 times by 122 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
  • ...
2-3985
836 updateNetWmUserTime(0);
executed 2 times by 1 test: updateNetWmUserTime(0);
Executed by:
  • tst_QWidget_window
2
837 else if (connection()->time() != XCB_TIME_CURRENT_TIME)
connection()->...E_CURRENT_TIMEDescription
TRUEevaluated 3532 times by 96 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • ...
FALSEevaluated 453 times by 119 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
  • ...
453-3532
838 updateNetWmUserTime(connection()->time());
executed 3532 times by 96 tests: updateNetWmUserTime(connection()->time());
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • ...
3532
839-
840 if (window()->objectName() == QLatin1String("QSystemTrayIconSysWindow"))
window()->obje...conSysWindow")Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSystemTrayIcon
FALSEevaluated 3984 times by 122 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
  • ...
3-3984
841 return; // defer showing until XEMBED_EMBEDDED_NOTIFY
executed 3 times by 1 test: return;
Executed by:
  • tst_QSystemTrayIcon
3
842-
843 Q_XCB_CALL(xcb_map_window(xcb_connection(), m_window));-
844-
845 if (QGuiApplication::modalWindow() == window())
QGuiApplicatio...() == window()Description
TRUEevaluated 133 times by 17 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QColorDialog
  • tst_QDialog
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGuiApplication
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qmouseevent_modal
FALSEevaluated 3851 times by 118 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_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
133-3851
846 requestActivateWindow();
executed 133 times by 17 tests: requestActivateWindow();
Executed by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QColorDialog
  • tst_QDialog
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGuiApplication
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qmouseevent_modal
133
847-
848 xcbScreen()->windowShown(this);-
849-
850 connection()->sync();-
851}
executed 3984 times by 122 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
  • ...
3984
852-
853void QXcbWindow::hide()-
854{-
855 Q_XCB_CALL(xcb_unmap_window(xcb_connection(), m_window));-
856-
857 // send synthetic UnmapNotify event according to icccm 4.1.4-
858 xcb_unmap_notify_event_t event;-
859 event.response_type = XCB_UNMAP_NOTIFY;-
860 event.event = xcbScreen()->root();-
861 event.window = m_window;-
862 event.from_configure = false;-
863 Q_XCB_CALL(xcb_send_event(xcb_connection(), false, xcbScreen()->root(),-
864 XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY | XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT, (const char *)&event));-
865-
866 xcb_flush(xcb_connection());-
867-
868 if (connection()->mouseGrabber() == this)
connection()->...bber() == thisDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QMenu
FALSEevaluated 3982 times by 130 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
  • ...
3-3982
869 connection()->setMouseGrabber(Q_NULLPTR);
executed 3 times by 1 test: connection()->setMouseGrabber(nullptr);
Executed by:
  • tst_QMenu
3
870 if (QPlatformWindow *w = connection()->mousePressWindow()) {
QPlatformWindo...ePressWindow()Description
TRUEnever evaluated
FALSEevaluated 3985 times by 130 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-3985
871 // Unset mousePressWindow when it (or one of its parents) is unmapped-
872 while (w) {
wDescription
TRUEnever evaluated
FALSEnever evaluated
0
873 if (w == this) {
w == thisDescription
TRUEnever evaluated
FALSEnever evaluated
0
874 connection()->setMousePressWindow(Q_NULLPTR);-
875 break;
never executed: break;
0
876 }-
877 w = w->parent();-
878 }
never executed: end of block
0
879 }
never executed: end of block
0
880-
881 m_mapped = false;-
882-
883 // Hiding a modal window doesn't send an enter event to its transient parent when the-
884 // mouse is already over the parent window, so the enter event must be emulated.-
885 if (window()->isModal()) {
window()->isModal()Description
TRUEevaluated 132 times by 16 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QColorDialog
  • tst_QDialog
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGuiApplication
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
  • tst_qmouseevent_modal
FALSEevaluated 3853 times by 126 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_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
132-3853
886 // Get the cursor position at modal window screen-
887 const QPoint nativePos = xcbScreen()->cursor()->pos();-
888 const QPoint cursorPos = QHighDpi::fromNativePixels(nativePos, xcbScreen()->screenForPosition(nativePos)->screen());-
889-
890 // Find the top level window at cursor position.-
891 // Don't use QGuiApplication::topLevelAt(): search only the virtual siblings of this window's screen-
892 QWindow *enterWindow = Q_NULLPTR;-
893 const auto screens = xcbScreen()->virtualSiblings();-
894 for (QPlatformScreen *screen : screens) {-
895 if (screen->geometry().contains(cursorPos)) {
screen->geomet...ins(cursorPos)Description
TRUEevaluated 132 times by 16 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QColorDialog
  • tst_QDialog
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGuiApplication
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
  • tst_qmouseevent_modal
FALSEnever evaluated
0-132
896 const QPoint devicePosition = QHighDpi::toNativePixels(cursorPos, screen->screen());-
897 enterWindow = screen->topLevelAt(devicePosition);-
898 break;
executed 132 times by 16 tests: break;
Executed by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QColorDialog
  • tst_QDialog
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGuiApplication
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
  • tst_qmouseevent_modal
132
899 }-
900 }
never executed: end of block
0
901-
902 if (enterWindow && enterWindow != window()) {
enterWindowDescription
TRUEevaluated 6 times by 3 tests
Evaluated by:
  • tst_QApplication
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWindow
FALSEevaluated 126 times by 16 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QColorDialog
  • tst_QDialog
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGuiApplication
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
  • tst_qmouseevent_modal
enterWindow != window()Description
TRUEevaluated 6 times by 3 tests
Evaluated by:
  • tst_QApplication
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWindow
FALSEnever evaluated
0-126
903 // Find the child window at cursor position, otherwise use the top level window-
904 if (QWindow *childWindow = childWindowAt(enterWindow, cursorPos))
QWindow *child...ow, cursorPos)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QWindow
FALSEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QApplication
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWindow
1-5
905 enterWindow = childWindow;
executed 1 time by 1 test: enterWindow = childWindow;
Executed by:
  • tst_QWindow
1
906 const QPoint localPos = enterWindow->mapFromGlobal(cursorPos);-
907 QWindowSystemInterface::handleEnterEvent(enterWindow, localPos, cursorPos);-
908 }
executed 6 times by 3 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWindow
6
909 }
executed 132 times by 16 tests: end of block
Executed by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QColorDialog
  • tst_QDialog
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGuiApplication
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
  • tst_qmouseevent_modal
132
910}
executed 3985 times by 130 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
  • ...
3985
911-
912static QWindow *tlWindow(QWindow *window)-
913{-
914 if (window && window->parent())
windowDescription
TRUEevaluated 7848 times by 105 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEnever evaluated
window->parent()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QWindow
  • tst_QWindowContainer
FALSEevaluated 7840 times by 105 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
0-7848
915 return tlWindow(window->parent());
executed 8 times by 2 tests: return tlWindow(window->parent());
Executed by:
  • tst_QWindow
  • tst_QWindowContainer
8
916 return window;
executed 7840 times by 105 tests: return window;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
7840
917}-
918-
919bool QXcbWindow::relayFocusToModalWindow() const-
920{-
921 QWindow *w = tlWindow(static_cast<QWindowPrivate *>(QObjectPrivate::get(window()))->eventReceiver());-
922 QWindow *modal_window = 0;-
923 if (QGuiApplicationPrivate::instance()->isWindowBlocked(w,&modal_window) && modal_window != w) {
QGuiApplicatio...&modal_window)Description
TRUEevaluated 37 times by 8 tests
Evaluated by:
  • tst_QApplication
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_qmouseevent_modal
FALSEevaluated 7803 times by 105 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
modal_window != wDescription
TRUEevaluated 36 times by 8 tests
Evaluated by:
  • tst_QApplication
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_qmouseevent_modal
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QWindow
1-7803
924 modal_window->requestActivate();-
925 connection()->flush();-
926 return true;
executed 36 times by 8 tests: return true;
Executed by:
  • tst_QApplication
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_qmouseevent_modal
36
927 }-
928-
929 return false;
executed 7804 times by 105 tests: return false;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
7804
930}-
931-
932void QXcbWindow::doFocusIn()-
933{-
934 if (relayFocusToModalWindow())
relayFocusToModalWindow()Description
TRUEevaluated 7 times by 5 tests
Evaluated by:
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWindow
  • tst_qmouseevent_modal
FALSEevaluated 3072 times by 103 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
7-3072
935 return;
executed 7 times by 5 tests: return;
Executed by:
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWindow
  • tst_qmouseevent_modal
7
936 QWindow *w = static_cast<QWindowPrivate *>(QObjectPrivate::get(window()))->eventReceiver();-
937 connection()->setFocusWindow(static_cast<QXcbWindow *>(w->handle()));-
938 QWindowSystemInterface::handleWindowActivated(w, Qt::ActiveWindowFocusReason);-
939}
executed 3072 times by 103 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
3072
940-
941static bool focusInPeeker(QXcbConnection *connection, xcb_generic_event_t *event)-
942{-
943 if (!event) {
!eventDescription
TRUEevaluated 1941 times by 83 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • ...
FALSEevaluated 121824 times by 85 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsEffect
  • ...
1941-121824
944 // FocusIn event is not in the queue, proceed with FocusOut normally.-
945 QWindowSystemInterface::handleWindowActivated(0, Qt::ActiveWindowFocusReason);-
946 return true;
executed 1941 times by 83 tests: return true;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • ...
1941
947 }-
948 uint response_type = event->response_type & ~0x80;-
949 if (response_type == XCB_FOCUS_IN) {
response_type == 9Description
TRUEevaluated 969 times by 63 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDoubleSpinBox
  • 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
  • ...
FALSEevaluated 120855 times by 85 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsEffect
  • ...
969-120855
950 // Ignore focus events that are being sent only because the pointer is over-
951 // our window, even if the input focus is in a different window.-
952 xcb_focus_in_event_t *e = (xcb_focus_in_event_t *) event;-
953 if (e->detail != XCB_NOTIFY_DETAIL_POINTER)
e->detail != X...DETAIL_POINTERDescription
TRUEevaluated 459 times by 43 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • ...
FALSEevaluated 510 times by 54 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • 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
  • tst_QListView
  • ...
459-510
954 return true;
executed 459 times by 43 tests: return true;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • ...
459
955 }
executed 510 times by 54 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • 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
  • tst_QListView
  • ...
510
956-
957 /* We are also interested in XEMBED_FOCUS_IN events */-
958 if (response_type == XCB_CLIENT_MESSAGE) {
response_type == 33Description
TRUEevaluated 5697 times by 76 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • ...
FALSEevaluated 115668 times by 85 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsEffect
  • ...
5697-115668
959 xcb_client_message_event_t *cme = (xcb_client_message_event_t *)event;-
960 if (cme->type == connection->atom(QXcbAtom::_XEMBED)
cme->type == c...Atom::_XEMBED)Description
TRUEnever evaluated
FALSEevaluated 5697 times by 76 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • ...
0-5697
961 && cme->data.data32[1] == XEMBED_FOCUS_IN)
cme->data.data...EMBED_FOCUS_INDescription
TRUEnever evaluated
FALSEnever evaluated
0
962 return true;
never executed: return true;
0
963 }
executed 5697 times by 76 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • ...
5697
964-
965 return false;
executed 121365 times by 85 tests: return false;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsEffect
  • ...
121365
966}-
967-
968void QXcbWindow::doFocusOut()-
969{-
970 if (relayFocusToModalWindow())
relayFocusToModalWindow()Description
TRUEevaluated 19 times by 7 tests
Evaluated by:
  • tst_QApplication
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QWidget
  • tst_QWindow
  • tst_qmouseevent_modal
FALSEevaluated 2505 times by 103 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
19-2505
971 return;
executed 19 times by 7 tests: return;
Executed by:
  • tst_QApplication
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QWidget
  • tst_QWindow
  • tst_qmouseevent_modal
19
972 connection()->setFocusWindow(0);-
973 // Do not set the active window to 0 if there is a FocusIn coming.-
974 // There is however no equivalent for XPutBackEvent so register a-
975 // callback for QXcbConnection instead.-
976 connection()->addPeekFunc(focusInPeeker);-
977}
executed 2505 times by 103 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2505
978-
979struct QtMotifWmHints {-
980 quint32 flags, functions, decorations;-
981 qint32 input_mode;-
982 quint32 status;-
983};-
984-
985enum {-
986 MWM_HINTS_FUNCTIONS = (1L << 0),-
987-
988 MWM_FUNC_ALL = (1L << 0),-
989 MWM_FUNC_RESIZE = (1L << 1),-
990 MWM_FUNC_MOVE = (1L << 2),-
991 MWM_FUNC_MINIMIZE = (1L << 3),-
992 MWM_FUNC_MAXIMIZE = (1L << 4),-
993 MWM_FUNC_CLOSE = (1L << 5),-
994-
995 MWM_HINTS_DECORATIONS = (1L << 1),-
996-
997 MWM_DECOR_ALL = (1L << 0),-
998 MWM_DECOR_BORDER = (1L << 1),-
999 MWM_DECOR_RESIZEH = (1L << 2),-
1000 MWM_DECOR_TITLE = (1L << 3),-
1001 MWM_DECOR_MENU = (1L << 4),-
1002 MWM_DECOR_MINIMIZE = (1L << 5),-
1003 MWM_DECOR_MAXIMIZE = (1L << 6),-
1004-
1005 MWM_HINTS_INPUT_MODE = (1L << 2),-
1006-
1007 MWM_INPUT_MODELESS = 0L,-
1008 MWM_INPUT_PRIMARY_APPLICATION_MODAL = 1L,-
1009 MWM_INPUT_FULL_APPLICATION_MODAL = 3L-
1010};-
1011-
1012static QtMotifWmHints getMotifWmHints(QXcbConnection *c, xcb_window_t window)-
1013{-
1014 QtMotifWmHints hints;-
1015-
1016 xcb_get_property_cookie_t get_cookie =-
1017 xcb_get_property_unchecked(c->xcb_connection(), 0, window, c->atom(QXcbAtom::_MOTIF_WM_HINTS),-
1018 c->atom(QXcbAtom::_MOTIF_WM_HINTS), 0, 20);-
1019-
1020 xcb_get_property_reply_t *reply =-
1021 xcb_get_property_reply(c->xcb_connection(), get_cookie, NULL);-
1022-
1023 if (reply && reply->format == 32 && reply->type == c->atom(QXcbAtom::_MOTIF_WM_HINTS)) {
replyDescription
TRUEevaluated 3918 times by 122 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
reply->format == 32Description
TRUEevaluated 3917 times by 121 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPixmap
reply->type ==...OTIF_WM_HINTS)Description
TRUEevaluated 3917 times by 121 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-3918
1024 hints = *((QtMotifWmHints *)xcb_get_property_value(reply));-
1025 } else {
executed 3917 times by 121 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
  • ...
3917
1026 hints.flags = 0L;-
1027 hints.functions = MWM_FUNC_ALL;-
1028 hints.decorations = MWM_DECOR_ALL;-
1029 hints.input_mode = 0L;-
1030 hints.status = 0L;-
1031 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QPixmap
1
1032-
1033 free(reply);-
1034-
1035 return hints;
executed 3918 times by 122 tests: return hints;
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
  • ...
3918
1036}-
1037-
1038static void setMotifWmHints(QXcbConnection *c, xcb_window_t window, const QtMotifWmHints &hints)-
1039{-
1040 if (hints.flags != 0l) {
hints.flags != 0lDescription
TRUEevaluated 8074 times by 124 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QPixmap
2-8074
1041 Q_XCB_CALL2(xcb_change_property(c->xcb_connection(),-
1042 XCB_PROP_MODE_REPLACE,-
1043 window,-
1044 c->atom(QXcbAtom::_MOTIF_WM_HINTS),-
1045 c->atom(QXcbAtom::_MOTIF_WM_HINTS),-
1046 32,-
1047 5,-
1048 &hints), c);-
1049 } else {
executed 8074 times by 124 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
  • ...
8074
1050 Q_XCB_CALL2(xcb_delete_property(c->xcb_connection(), window, c->atom(QXcbAtom::_MOTIF_WM_HINTS)), c);-
1051 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QPixmap
2
1052}-
1053-
1054QXcbWindow::NetWmStates QXcbWindow::netWmStates()-
1055{-
1056 NetWmStates result(0);-
1057-
1058 xcb_get_property_cookie_t get_cookie =-
1059 xcb_get_property_unchecked(xcb_connection(), 0, m_window, atom(QXcbAtom::_NET_WM_STATE),-
1060 XCB_ATOM_ATOM, 0, 1024);-
1061-
1062 xcb_get_property_reply_t *reply =-
1063 xcb_get_property_reply(xcb_connection(), get_cookie, NULL);-
1064-
1065 if (reply && reply->format == 32 && reply->type == XCB_ATOM_ATOM) {
replyDescription
TRUEevaluated 11551 times by 107 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEnever evaluated
reply->format == 32Description
TRUEevaluated 11381 times by 107 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 170 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCompleter
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QScrollBar
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QWidget
  • ...
reply->type == XCB_ATOM_ATOMDescription
TRUEevaluated 11381 times by 107 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEnever evaluated
0-11551
1066 const xcb_atom_t *states = static_cast<const xcb_atom_t *>(xcb_get_property_value(reply));-
1067 const xcb_atom_t *statesEnd = states + reply->length;-
1068 if (statesEnd != std::find(states, statesEnd, atom(QXcbAtom::_NET_WM_STATE_ABOVE)))
statesEnd != s..._STATE_ABOVE))Description
TRUEevaluated 55 times by 2 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QWidget
FALSEevaluated 11326 times by 107 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
55-11326
1069 result |= NetWmStateAbove;
executed 55 times by 2 tests: result |= NetWmStateAbove;
Executed by:
  • tst_QGraphicsView
  • tst_QWidget
55
1070 if (statesEnd != std::find(states, statesEnd, atom(QXcbAtom::_NET_WM_STATE_BELOW)))
statesEnd != s..._STATE_BELOW))Description
TRUEnever evaluated
FALSEevaluated 11381 times by 107 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
0-11381
1071 result |= NetWmStateBelow;
never executed: result |= NetWmStateBelow;
0
1072 if (statesEnd != std::find(states, statesEnd, atom(QXcbAtom::_NET_WM_STATE_FULLSCREEN)))
statesEnd != s...E_FULLSCREEN))Description
TRUEevaluated 14 times by 3 tests
Evaluated by:
  • tst_QSizeGrip
  • tst_QWidget
  • tst_QWindow
FALSEevaluated 11367 times by 107 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
14-11367
1073 result |= NetWmStateFullScreen;
executed 14 times by 3 tests: result |= NetWmStateFullScreen;
Executed by:
  • tst_QSizeGrip
  • tst_QWidget
  • tst_QWindow
14
1074 if (statesEnd != std::find(states, statesEnd, atom(QXcbAtom::_NET_WM_STATE_MAXIMIZED_HORZ)))
statesEnd != s...XIMIZED_HORZ))Description
TRUEevaluated 146 times by 15 tests
Evaluated by:
  • tst_QBackingStore
  • tst_QCommandLinkButton
  • tst_QHeaderView
  • tst_QListView
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QOpenGLWidget
  • tst_QPainter
  • tst_QPrinter
  • tst_QSplitter
  • tst_QStatusBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWindow
FALSEevaluated 11235 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
146-11235
1075 result |= NetWmStateMaximizedHorz;
executed 146 times by 15 tests: result |= NetWmStateMaximizedHorz;
Executed by:
  • tst_QBackingStore
  • tst_QCommandLinkButton
  • tst_QHeaderView
  • tst_QListView
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QOpenGLWidget
  • tst_QPainter
  • tst_QPrinter
  • tst_QSplitter
  • tst_QStatusBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWindow
146
1076 if (statesEnd != std::find(states, statesEnd, atom(QXcbAtom::_NET_WM_STATE_MAXIMIZED_VERT)))
statesEnd != s...XIMIZED_VERT))Description
TRUEevaluated 146 times by 15 tests
Evaluated by:
  • tst_QBackingStore
  • tst_QCommandLinkButton
  • tst_QHeaderView
  • tst_QListView
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QOpenGLWidget
  • tst_QPainter
  • tst_QPrinter
  • tst_QSplitter
  • tst_QStatusBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWindow
FALSEevaluated 11235 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
146-11235
1077 result |= NetWmStateMaximizedVert;
executed 146 times by 15 tests: result |= NetWmStateMaximizedVert;
Executed by:
  • tst_QBackingStore
  • tst_QCommandLinkButton
  • tst_QHeaderView
  • tst_QListView
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QOpenGLWidget
  • tst_QPainter
  • tst_QPrinter
  • tst_QSplitter
  • tst_QStatusBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWindow
146
1078 if (statesEnd != std::find(states, statesEnd, atom(QXcbAtom::_NET_WM_STATE_MODAL)))
statesEnd != s..._STATE_MODAL))Description
TRUEevaluated 500 times by 17 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QColorDialog
  • tst_QDialog
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGuiApplication
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qmouseevent_modal
FALSEevaluated 10881 times by 102 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
500-10881
1079 result |= NetWmStateModal;
executed 500 times by 17 tests: result |= NetWmStateModal;
Executed by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QColorDialog
  • tst_QDialog
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGuiApplication
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qmouseevent_modal
500
1080 if (statesEnd != std::find(states, statesEnd, atom(QXcbAtom::_NET_WM_STATE_STAYS_ON_TOP)))
statesEnd != s...STAYS_ON_TOP))Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QWidget
FALSEevaluated 11371 times by 107 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
10-11371
1081 result |= NetWmStateStaysOnTop;
executed 10 times by 2 tests: result |= NetWmStateStaysOnTop;
Executed by:
  • tst_QGraphicsView
  • tst_QWidget
10
1082 if (statesEnd != std::find(states, statesEnd, atom(QXcbAtom::_NET_WM_STATE_DEMANDS_ATTENTION)))
statesEnd != s...DS_ATTENTION))Description
TRUEevaluated 3 times by 3 tests
Evaluated by:
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QWidget_window
FALSEevaluated 11378 times by 107 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
3-11378
1083 result |= NetWmStateDemandsAttention;
executed 3 times by 3 tests: result |= NetWmStateDemandsAttention;
Executed by:
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QWidget_window
3
1084 free(reply);-
1085 } else {
executed 11381 times by 107 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
11381
1086#ifdef NET_WM_STATE_DEBUG-
1087 printf("getting net wm state (%x), empty\n", m_window);-
1088#endif-
1089 }
executed 170 times by 28 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCompleter
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QScrollBar
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QWidget
  • ...
170
1090-
1091 return result;
executed 11551 times by 107 tests: return result;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
11551
1092}-
1093-
1094void QXcbWindow::setNetWmStates(NetWmStates states)-
1095{-
1096 QVector<xcb_atom_t> atoms;-
1097-
1098 xcb_get_property_cookie_t get_cookie =-
1099 xcb_get_property_unchecked(xcb_connection(), 0, m_window, atom(QXcbAtom::_NET_WM_STATE),-
1100 XCB_ATOM_ATOM, 0, 1024);-
1101-
1102 xcb_get_property_reply_t *reply =-
1103 xcb_get_property_reply(xcb_connection(), get_cookie, NULL);-
1104-
1105 if (reply && reply->format == 32 && reply->type == XCB_ATOM_ATOM && reply->value_len > 0) {
replyDescription
TRUEevaluated 3918 times by 122 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
reply->format == 32Description
TRUEevaluated 60 times by 20 tests
Evaluated by:
  • tst_QApplication
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QGuiApplication
  • tst_QLabel
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QOpenGLWidget
  • tst_QPlainTextEdit
  • tst_QScrollBar
  • tst_QWidget
  • tst_QWidget_window
  • tst_qmouseevent_modal
FALSEevaluated 3858 times by 122 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
  • ...
reply->type == XCB_ATOM_ATOMDescription
TRUEevaluated 60 times by 20 tests
Evaluated by:
  • tst_QApplication
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QGuiApplication
  • tst_QLabel
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QOpenGLWidget
  • tst_QPlainTextEdit
  • tst_QScrollBar
  • tst_QWidget
  • tst_QWidget_window
  • tst_qmouseevent_modal
FALSEnever evaluated
reply->value_len > 0Description
TRUEevaluated 49 times by 17 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QGuiApplication
  • tst_QLabel
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QOpenGLWidget
  • tst_QScrollBar
  • tst_QWidget
  • tst_QWidget_window
  • tst_qmouseevent_modal
FALSEevaluated 11 times by 7 tests
Evaluated by:
  • tst_QApplication
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QWidget
0-3918
1106 const xcb_atom_t *data = static_cast<const xcb_atom_t *>(xcb_get_property_value(reply));-
1107 atoms.resize(reply->value_len);-
1108 memcpy((void *)&atoms.first(), (void *)data, reply->value_len * sizeof(xcb_atom_t));-
1109 }
executed 49 times by 17 tests: end of block
Executed by:
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QGuiApplication
  • tst_QLabel
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QOpenGLWidget
  • tst_QScrollBar
  • tst_QWidget
  • tst_QWidget_window
  • tst_qmouseevent_modal
49
1110-
1111 free(reply);-
1112-
1113 if (states & NetWmStateAbove && !atoms.contains(atom(QXcbAtom::_NET_WM_STATE_ABOVE)))
!atoms.contain..._STATE_ABOVE))Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QWidget
FALSEnever evaluated
0-10
1114 atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_ABOVE));
executed 10 times by 2 tests: atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_ABOVE));
Executed by:
  • tst_QGraphicsView
  • tst_QWidget
10
1115 if (states & NetWmStateBelow && !atoms.contains(atom(QXcbAtom::_NET_WM_STATE_BELOW)))
!atoms.contain..._STATE_BELOW))Description
TRUEnever evaluated
FALSEnever evaluated
0
1116 atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_BELOW));
never executed: atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_BELOW));
0
1117 if (states & NetWmStateFullScreen && !atoms.contains(atom(QXcbAtom::_NET_WM_STATE_FULLSCREEN)))
!atoms.contain...E_FULLSCREEN))Description
TRUEevaluated 3 times by 3 tests
Evaluated by:
  • tst_QDialog
  • tst_QWidget
  • tst_QWindow
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDialog
2-3
1118 atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_FULLSCREEN));
executed 3 times by 3 tests: atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_FULLSCREEN));
Executed by:
  • tst_QDialog
  • tst_QWidget
  • tst_QWindow
3
1119 if (states & NetWmStateMaximizedHorz && !atoms.contains(atom(QXcbAtom::_NET_WM_STATE_MAXIMIZED_HORZ)))
!atoms.contain...XIMIZED_HORZ))Description
TRUEevaluated 12 times by 10 tests
Evaluated by:
  • tst_QBackingStore
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QHeaderView
  • tst_QListView
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStatusBar
  • tst_QTreeView
  • tst_QWidget
FALSEevaluated 4 times by 3 tests
Evaluated by:
  • tst_QDialog
  • tst_QOpenGLWidget
  • tst_QWidget
4-12
1120 atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_MAXIMIZED_HORZ));
executed 12 times by 10 tests: atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_MAXIMIZED_HORZ));
Executed by:
  • tst_QBackingStore
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QHeaderView
  • tst_QListView
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStatusBar
  • tst_QTreeView
  • tst_QWidget
12
1121 if (states & NetWmStateMaximizedVert && !atoms.contains(atom(QXcbAtom::_NET_WM_STATE_MAXIMIZED_VERT)))
!atoms.contain...XIMIZED_VERT))Description
TRUEevaluated 12 times by 10 tests
Evaluated by:
  • tst_QBackingStore
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QHeaderView
  • tst_QListView
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStatusBar
  • tst_QTreeView
  • tst_QWidget
FALSEevaluated 4 times by 3 tests
Evaluated by:
  • tst_QDialog
  • tst_QOpenGLWidget
  • tst_QWidget
4-12
1122 atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_MAXIMIZED_VERT));
executed 12 times by 10 tests: atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_MAXIMIZED_VERT));
Executed by:
  • tst_QBackingStore
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QHeaderView
  • tst_QListView
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStatusBar
  • tst_QTreeView
  • tst_QWidget
12
1123 if (states & NetWmStateModal && !atoms.contains(atom(QXcbAtom::_NET_WM_STATE_MODAL)))
!atoms.contain..._STATE_MODAL))Description
TRUEevaluated 125 times by 17 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QColorDialog
  • tst_QDialog
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGuiApplication
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qmouseevent_modal
FALSEevaluated 8 times by 3 tests
Evaluated by:
  • tst_QGuiApplication
  • tst_QMessageBox
  • tst_qmouseevent_modal
8-125
1124 atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_MODAL));
executed 125 times by 17 tests: atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_MODAL));
Executed by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QColorDialog
  • tst_QDialog
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGuiApplication
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qmouseevent_modal
125
1125 if (states & NetWmStateStaysOnTop && !atoms.contains(atom(QXcbAtom::_NET_WM_STATE_STAYS_ON_TOP)))
!atoms.contain...STAYS_ON_TOP))Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QWidget
FALSEnever evaluated
0-10
1126 atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_STAYS_ON_TOP));
executed 10 times by 2 tests: atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_STAYS_ON_TOP));
Executed by:
  • tst_QGraphicsView
  • tst_QWidget
10
1127 if (states & NetWmStateDemandsAttention && !atoms.contains(atom(QXcbAtom::_NET_WM_STATE_DEMANDS_ATTENTION)))
!atoms.contain...DS_ATTENTION))Description
TRUEnever evaluated
FALSEnever evaluated
0
1128 atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_DEMANDS_ATTENTION));
never executed: atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_DEMANDS_ATTENTION));
0
1129-
1130 if (atoms.isEmpty()) {
atoms.isEmpty()Description
TRUEevaluated 3723 times by 117 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
FALSEevaluated 195 times by 36 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QBackingStore
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
195-3723
1131 Q_XCB_CALL(xcb_delete_property(xcb_connection(), m_window, atom(QXcbAtom::_NET_WM_STATE)));-
1132 } else {
executed 3723 times by 117 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
3723
1133 Q_XCB_CALL(xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window,-
1134 atom(QXcbAtom::_NET_WM_STATE), XCB_ATOM_ATOM, 32,-
1135 atoms.count(), atoms.constData()));-
1136 }
executed 195 times by 36 tests: end of block
Executed by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QBackingStore
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
195
1137 xcb_flush(xcb_connection());-
1138}
executed 3918 times by 122 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
  • ...
3918
1139-
1140void QXcbWindow::setWindowFlags(Qt::WindowFlags flags)-
1141{-
1142 Qt::WindowType type = static_cast<Qt::WindowType>(int(flags & Qt::WindowType_Mask));-
1143-
1144 if (type == Qt::ToolTip)
type == Qt::ToolTipDescription
TRUEevaluated 16 times by 6 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QToolTip
  • tst_QWidget
FALSEevaluated 4142 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
  • ...
16-4142
1145 flags |= Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint | Qt::X11BypassWindowManagerHint;
executed 16 times by 6 tests: flags |= Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint | Qt::X11BypassWindowManagerHint;
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QToolTip
  • tst_QWidget
16
1146 if (type == Qt::Popup)
type == Qt::PopupDescription
TRUEevaluated 147 times by 23 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidgetAction
  • tst_QWindow
FALSEevaluated 4011 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
  • ...
147-4011
1147 flags |= Qt::X11BypassWindowManagerHint;
executed 147 times by 23 tests: flags |= Qt::X11BypassWindowManagerHint;
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidgetAction
  • tst_QWindow
147
1148-
1149 const quint32 mask = XCB_CW_OVERRIDE_REDIRECT | XCB_CW_EVENT_MASK;-
1150 const quint32 values[] = {-
1151 // XCB_CW_OVERRIDE_REDIRECT-
1152 (flags & Qt::BypassWindowManagerHint) ? 1u : 0,-
1153 // XCB_CW_EVENT_MASK-
1154 (flags & Qt::WindowTransparentForInput) ? transparentForInputEventMask : defaultEventMask-
1155 };-
1156-
1157 xcb_change_window_attributes(xcb_connection(), xcb_window(), mask, values);-
1158-
1159 QXcbWindowFunctions::WmWindowTypes wmWindowTypes = 0;-
1160 if (window()->dynamicPropertyNames().contains(wm_window_type_property_id)) {
window()->dyna...e_property_id)Description
TRUEevaluated 154 times by 23 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QPushButton
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QToolButton
  • tst_QWidget
  • tst_QWidgetAction
  • tst_QWidget_window
FALSEevaluated 4004 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
  • ...
154-4004
1161 wmWindowTypes = static_cast<QXcbWindowFunctions::WmWindowTypes>(-
1162 window()->property(wm_window_type_property_id).value<int>());-
1163 }
executed 154 times by 23 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QPushButton
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QToolButton
  • tst_QWidget
  • tst_QWidgetAction
  • tst_QWidget_window
154
1164-
1165 setWmWindowType(wmWindowTypes, flags);-
1166 setNetWmStateWindowFlags(flags);-
1167 setMotifWindowFlags(flags);-
1168-
1169 setTransparentForMouseEvents(flags & Qt::WindowTransparentForInput);-
1170 updateDoesNotAcceptFocus(flags & Qt::WindowDoesNotAcceptFocus);-
1171}
executed 4158 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
  • ...
4158
1172-
1173void QXcbWindow::setMotifWindowFlags(Qt::WindowFlags flags)-
1174{-
1175 Qt::WindowType type = static_cast<Qt::WindowType>(int(flags & Qt::WindowType_Mask));-
1176-
1177 QtMotifWmHints mwmhints;-
1178 mwmhints.flags = 0L;-
1179 mwmhints.functions = 0L;-
1180 mwmhints.decorations = 0;-
1181 mwmhints.input_mode = 0L;-
1182 mwmhints.status = 0L;-
1183-
1184 if (type != Qt::SplashScreen) {
type != Qt::SplashScreenDescription
TRUEevaluated 4157 times by 124 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPixmap
1-4157
1185 mwmhints.flags |= MWM_HINTS_DECORATIONS;-
1186-
1187 bool customize = flags & Qt::CustomizeWindowHint;-
1188 if (type == Qt::Window && !customize) {
type == Qt::WindowDescription
TRUEevaluated 3565 times by 116 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_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
FALSEevaluated 592 times by 48 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
!customizeDescription
TRUEevaluated 3565 times by 116 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_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
FALSEnever evaluated
0-3565
1189 const Qt::WindowFlags defaultFlags = Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint;-
1190 if (!(flags & defaultFlags))
!(flags & defaultFlags)Description
TRUEevaluated 352 times by 37 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDockWidget
  • tst_QFormLayout
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QKeyEvent
  • tst_QLayout
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMouseEvent
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
  • ...
FALSEevaluated 3213 times by 104 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
352-3213
1191 flags |= defaultFlags;
executed 352 times by 37 tests: flags |= defaultFlags;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDockWidget
  • tst_QFormLayout
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QKeyEvent
  • tst_QLayout
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMouseEvent
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
  • ...
352
1192 }
executed 3565 times by 116 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_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
3565
1193 if (!(flags & Qt::FramelessWindowHint) && !(customize && !(flags & Qt::WindowTitleHint))) {
!(flags & Qt::...essWindowHint)Description
TRUEevaluated 3902 times by 123 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • 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
  • tst_QDialogButtonBox
  • ...
FALSEevaluated 255 times by 26 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDockWidget
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QLayout
  • tst_QListView
  • tst_QMainWindow
  • tst_QMenu
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QToolTip
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidgetAction
  • tst_QWidget_window
  • ...
customizeDescription
TRUEnever evaluated
FALSEevaluated 3902 times by 123 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • 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
  • tst_QDialogButtonBox
  • ...
!(flags & Qt::WindowTitleHint)Description
TRUEnever evaluated
FALSEnever evaluated
0-3902
1194 mwmhints.decorations |= MWM_DECOR_BORDER;-
1195 mwmhints.decorations |= MWM_DECOR_RESIZEH;-
1196 mwmhints.decorations |= MWM_DECOR_TITLE;-
1197-
1198 if (flags & Qt::WindowSystemMenuHint)
flags & Qt::Wi...SystemMenuHintDescription
TRUEevaluated 3883 times by 123 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • 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
  • tst_QDialogButtonBox
  • ...
FALSEevaluated 19 times by 1 test
Evaluated by:
  • tst_QWindow
19-3883
1199 mwmhints.decorations |= MWM_DECOR_MENU;
executed 3883 times by 123 tests: mwmhints.decorations |= MWM_DECOR_MENU;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • 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
  • tst_QDialogButtonBox
  • ...
3883
1200-
1201 if (flags & Qt::WindowMinimizeButtonHint) {
flags & Qt::Wi...mizeButtonHintDescription
TRUEevaluated 3616 times by 116 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
FALSEevaluated 286 times by 29 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QWidget
  • tst_QWindow
  • ...
286-3616
1202 mwmhints.decorations |= MWM_DECOR_MINIMIZE;-
1203 mwmhints.functions |= MWM_FUNC_MINIMIZE;-
1204 }
executed 3616 times by 116 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
3616
1205-
1206 if (flags & Qt::WindowMaximizeButtonHint) {
flags & Qt::Wi...mizeButtonHintDescription
TRUEevaluated 3616 times by 116 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
FALSEevaluated 286 times by 29 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QWidget
  • tst_QWindow
  • ...
286-3616
1207 mwmhints.decorations |= MWM_DECOR_MAXIMIZE;-
1208 mwmhints.functions |= MWM_FUNC_MAXIMIZE;-
1209 }
executed 3616 times by 116 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
3616
1210-
1211 if (flags & Qt::WindowCloseButtonHint)
flags & Qt::Wi...loseButtonHintDescription
TRUEevaluated 3896 times by 123 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • 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
  • tst_QDialogButtonBox
  • ...
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QWindow
6-3896
1212 mwmhints.functions |= MWM_FUNC_CLOSE;
executed 3896 times by 123 tests: mwmhints.functions |= MWM_FUNC_CLOSE;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • 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
  • tst_QDialogButtonBox
  • ...
3896
1213 }
executed 3902 times by 123 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • 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
  • tst_QDialogButtonBox
  • ...
3902
1214 } else {
executed 4157 times by 124 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
  • ...
4157
1215 // if type == Qt::SplashScreen-
1216 mwmhints.decorations = MWM_DECOR_ALL;-
1217 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QPixmap
1
1218-
1219 if (mwmhints.functions != 0) {
mwmhints.functions != 0Description
TRUEevaluated 3896 times by 123 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • 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
  • tst_QDialogButtonBox
  • ...
FALSEevaluated 262 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDockWidget
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QLayout
  • tst_QListView
  • tst_QMainWindow
  • tst_QMenu
  • tst_QPixmap
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QToolTip
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidgetAction
  • ...
262-3896
1220 mwmhints.flags |= MWM_HINTS_FUNCTIONS;-
1221 mwmhints.functions |= MWM_FUNC_MOVE | MWM_FUNC_RESIZE;-
1222 } else {
executed 3896 times by 123 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • 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
  • tst_QDialogButtonBox
  • ...
3896
1223 mwmhints.functions = MWM_FUNC_ALL;-
1224 }
executed 262 times by 28 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDockWidget
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QLayout
  • tst_QListView
  • tst_QMainWindow
  • tst_QMenu
  • tst_QPixmap
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QToolTip
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidgetAction
  • ...
262
1225-
1226 if (!(flags & Qt::FramelessWindowHint)
!(flags & Qt::...essWindowHint)Description
TRUEevaluated 3902 times by 123 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • 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
  • tst_QDialogButtonBox
  • ...
FALSEevaluated 256 times by 27 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDockWidget
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QLayout
  • tst_QListView
  • tst_QMainWindow
  • tst_QMenu
  • tst_QPixmap
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QToolTip
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidgetAction
  • ...
256-3902
1227 && flags & Qt::CustomizeWindowHint-
1228 && flags & Qt::WindowTitleHint
flags & Qt::WindowTitleHintDescription
TRUEnever evaluated
FALSEnever evaluated
0
1229 && !(flags &
!(flags & (Qt:...seButtonHint))Description
TRUEnever evaluated
FALSEnever evaluated
0
1230 (Qt::WindowMinimizeButtonHint
!(flags & (Qt:...seButtonHint))Description
TRUEnever evaluated
FALSEnever evaluated
0
1231 | Qt::WindowMaximizeButtonHint
!(flags & (Qt:...seButtonHint))Description
TRUEnever evaluated
FALSEnever evaluated
0
1232 | Qt::WindowCloseButtonHint)))
!(flags & (Qt:...seButtonHint))Description
TRUEnever evaluated
FALSEnever evaluated
0
1233 {-
1234 // a special case - only the titlebar without any button-
1235 mwmhints.flags = MWM_HINTS_FUNCTIONS;-
1236 mwmhints.functions = MWM_FUNC_MOVE | MWM_FUNC_RESIZE;-
1237 mwmhints.decorations = 0;-
1238 }
never executed: end of block
0
1239-
1240 setMotifWmHints(connection(), m_window, mwmhints);-
1241}
executed 4158 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
  • ...
4158
1242-
1243void QXcbWindow::changeNetWmState(bool set, xcb_atom_t one, xcb_atom_t two)-
1244{-
1245 xcb_client_message_event_t event;-
1246-
1247 event.response_type = XCB_CLIENT_MESSAGE;-
1248 event.format = 32;-
1249 event.sequence = 0;-
1250 event.window = m_window;-
1251 event.type = atom(QXcbAtom::_NET_WM_STATE);-
1252 event.data.data32[0] = set ? 1 : 0;
setDescription
TRUEevaluated 71 times by 20 tests
Evaluated by:
  • tst_QApplication
  • tst_QBackingStore
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QHeaderView
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QToolTip
  • tst_QTreeView
  • tst_QWidget
  • tst_QWindow
FALSEevaluated 8321 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
  • ...
71-8321
1253 event.data.data32[1] = one;-
1254 event.data.data32[2] = two;-
1255 event.data.data32[3] = 0;-
1256 event.data.data32[4] = 0;-
1257-
1258 Q_XCB_CALL(xcb_send_event(xcb_connection(), 0, xcbScreen()->root(), XCB_EVENT_MASK_STRUCTURE_NOTIFY | XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT, (const char *)&event));-
1259}
executed 8392 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
  • ...
8392
1260-
1261void QXcbWindow::setWindowState(Qt::WindowState state)-
1262{-
1263 if (state == m_windowState)
state == m_windowStateDescription
TRUEevaluated 4118 times by 124 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
FALSEevaluated 101 times by 13 tests
Evaluated by:
  • tst_QBackingStore
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QHeaderView
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWindow
101-4118
1264 return;
executed 4118 times by 124 tests: return;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
4118
1265-
1266 // unset old state-
1267 switch (m_windowState) {-
1268 case Qt::WindowMinimized:
executed 10 times by 3 tests: case Qt::WindowMinimized:
Executed by:
  • tst_QDialog
  • tst_QListView
  • tst_QWidget
10
1269 Q_XCB_CALL(xcb_map_window(xcb_connection(), m_window));-
1270 break;
executed 10 times by 3 tests: break;
Executed by:
  • tst_QDialog
  • tst_QListView
  • tst_QWidget
10
1271 case Qt::WindowMaximized:
executed 16 times by 5 tests: case Qt::WindowMaximized:
Executed by:
  • tst_QDialog
  • tst_QMdiSubWindow
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QWidget
16
1272 changeNetWmState(false,-
1273 atom(QXcbAtom::_NET_WM_STATE_MAXIMIZED_HORZ),-
1274 atom(QXcbAtom::_NET_WM_STATE_MAXIMIZED_VERT));-
1275 break;
executed 16 times by 5 tests: break;
Executed by:
  • tst_QDialog
  • tst_QMdiSubWindow
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QWidget
16
1276 case Qt::WindowFullScreen:
executed 14 times by 6 tests: case Qt::WindowFullScreen:
Executed by:
  • tst_QDialog
  • tst_QMdiArea
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QWidget
  • tst_QWindow
14
1277 changeNetWmState(false, atom(QXcbAtom::_NET_WM_STATE_FULLSCREEN));-
1278 break;
executed 14 times by 6 tests: break;
Executed by:
  • tst_QDialog
  • tst_QMdiArea
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QWidget
  • tst_QWindow
14
1279 default:
executed 61 times by 13 tests: default:
Executed by:
  • tst_QBackingStore
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QHeaderView
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWindow
61
1280 break;
executed 61 times by 13 tests: break;
Executed by:
  • tst_QBackingStore
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QHeaderView
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWindow
61
1281 }-
1282-
1283 // set new state-
1284 switch (state) {-
1285 case Qt::WindowMinimized:
executed 23 times by 5 tests: case Qt::WindowMinimized:
Executed by:
  • tst_QDialog
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QWidget
23
1286 {-
1287 xcb_client_message_event_t event;-
1288-
1289 event.response_type = XCB_CLIENT_MESSAGE;-
1290 event.format = 32;-
1291 event.sequence = 0;-
1292 event.window = m_window;-
1293 event.type = atom(QXcbAtom::WM_CHANGE_STATE);-
1294 event.data.data32[0] = XCB_WM_STATE_ICONIC;-
1295 event.data.data32[1] = 0;-
1296 event.data.data32[2] = 0;-
1297 event.data.data32[3] = 0;-
1298 event.data.data32[4] = 0;-
1299-
1300 Q_XCB_CALL(xcb_send_event(xcb_connection(), 0, xcbScreen()->root(), XCB_EVENT_MASK_STRUCTURE_NOTIFY | XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT, (const char *)&event));-
1301 }-
1302 break;
executed 23 times by 5 tests: break;
Executed by:
  • tst_QDialog
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QWidget
23
1303 case Qt::WindowMaximized:
executed 28 times by 11 tests: case Qt::WindowMaximized:
Executed by:
  • tst_QBackingStore
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QHeaderView
  • tst_QListView
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QTreeView
  • tst_QWidget
28
1304 changeNetWmState(true,-
1305 atom(QXcbAtom::_NET_WM_STATE_MAXIMIZED_HORZ),-
1306 atom(QXcbAtom::_NET_WM_STATE_MAXIMIZED_VERT));-
1307 break;
executed 28 times by 11 tests: break;
Executed by:
  • tst_QBackingStore
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QHeaderView
  • tst_QListView
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QTreeView
  • tst_QWidget
28
1308 case Qt::WindowFullScreen:
executed 17 times by 6 tests: case Qt::WindowFullScreen:
Executed by:
  • tst_QDialog
  • tst_QMdiArea
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QWidget
  • tst_QWindow
17
1309 changeNetWmState(true, atom(QXcbAtom::_NET_WM_STATE_FULLSCREEN));-
1310 break;
executed 17 times by 6 tests: break;
Executed by:
  • tst_QDialog
  • tst_QMdiArea
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QWidget
  • tst_QWindow
17
1311 case Qt::WindowNoState:
executed 33 times by 8 tests: case Qt::WindowNoState:
Executed by:
  • tst_QDialog
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QWidget
  • tst_QWindow
33
1312 break;
executed 33 times by 8 tests: break;
Executed by:
  • tst_QDialog
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QWidget
  • tst_QWindow
33
1313 default:
never executed: default:
0
1314 break;
never executed: break;
0
1315 }-
1316-
1317 connection()->sync();-
1318-
1319 m_windowState = state;-
1320}
executed 101 times by 13 tests: end of block
Executed by:
  • tst_QBackingStore
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QHeaderView
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWindow
101
1321-
1322void QXcbWindow::updateMotifWmHintsBeforeMap()-
1323{-
1324 QtMotifWmHints mwmhints = getMotifWmHints(connection(), m_window);-
1325-
1326 if (window()->modality() != Qt::NonModal) {
window()->moda...= Qt::NonModalDescription
TRUEevaluated 133 times by 17 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QColorDialog
  • tst_QDialog
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGuiApplication
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qmouseevent_modal
FALSEevaluated 3785 times by 118 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_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
133-3785
1327 switch (window()->modality()) {-
1328 case Qt::WindowModal:
executed 8 times by 3 tests: case Qt::WindowModal:
Executed by:
  • tst_QGuiApplication
  • tst_QMessageBox
  • tst_QWindow
8
1329 mwmhints.input_mode = MWM_INPUT_PRIMARY_APPLICATION_MODAL;-
1330 break;
executed 8 times by 3 tests: break;
Executed by:
  • tst_QGuiApplication
  • tst_QMessageBox
  • tst_QWindow
8
1331 case Qt::ApplicationModal:
executed 125 times by 17 tests: case Qt::ApplicationModal:
Executed by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QColorDialog
  • tst_QDialog
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGuiApplication
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qmouseevent_modal
125
1332 default:
never executed: default:
0
1333 mwmhints.input_mode = MWM_INPUT_FULL_APPLICATION_MODAL;-
1334 break;
executed 125 times by 17 tests: break;
Executed by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QColorDialog
  • tst_QDialog
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGuiApplication
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qmouseevent_modal
125
1335 }-
1336 mwmhints.flags |= MWM_HINTS_INPUT_MODE;-
1337 } else {
executed 133 times by 17 tests: end of block
Executed by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QColorDialog
  • tst_QDialog
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGuiApplication
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qmouseevent_modal
133
1338 mwmhints.input_mode = MWM_INPUT_MODELESS;-
1339 mwmhints.flags &= ~MWM_HINTS_INPUT_MODE;-
1340 }
executed 3785 times by 118 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
3785
1341-
1342 if (windowMinimumSize() == windowMaximumSize()) {
windowMinimumS...wMaximumSize()Description
TRUEevaluated 106 times by 21 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QListView
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QShortcut
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QTextEdit
  • tst_QTreeView
  • tst_QWidget
  • tst_QWizard
  • tst_languageChange
FALSEevaluated 3812 times by 121 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_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
106-3812
1343 // fixed size, remove the resize handle (since mwm/dtwm-
1344 // isn't smart enough to do it itself)-
1345 mwmhints.flags |= MWM_HINTS_FUNCTIONS;-
1346 if (mwmhints.functions == MWM_FUNC_ALL) {
mwmhints.funct...= MWM_FUNC_ALLDescription
TRUEevaluated 12 times by 5 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QSystemTrayIcon
  • tst_QTreeView
  • tst_QWidget
FALSEevaluated 94 times by 19 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QListView
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QShortcut
  • tst_QTableView
  • tst_QTextEdit
  • tst_QWidget
  • tst_QWizard
  • tst_languageChange
12-94
1347 mwmhints.functions = MWM_FUNC_MOVE;-
1348 } else {
executed 12 times by 5 tests: end of block
Executed by:
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QSystemTrayIcon
  • tst_QTreeView
  • tst_QWidget
12
1349 mwmhints.functions &= ~MWM_FUNC_RESIZE;-
1350 }
executed 94 times by 19 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QListView
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QShortcut
  • tst_QTableView
  • tst_QTextEdit
  • tst_QWidget
  • tst_QWizard
  • tst_languageChange
94
1351-
1352 if (mwmhints.decorations == MWM_DECOR_ALL) {
mwmhints.decor... MWM_DECOR_ALLDescription
TRUEnever evaluated
FALSEevaluated 106 times by 21 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QListView
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QShortcut
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QTextEdit
  • tst_QTreeView
  • tst_QWidget
  • tst_QWizard
  • tst_languageChange
0-106
1353 mwmhints.flags |= MWM_HINTS_DECORATIONS;-
1354 mwmhints.decorations = (MWM_DECOR_BORDER-
1355 | MWM_DECOR_TITLE-
1356 | MWM_DECOR_MENU);-
1357 } else {
never executed: end of block
0
1358 mwmhints.decorations &= ~MWM_DECOR_RESIZEH;-
1359 }
executed 106 times by 21 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QListView
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QShortcut
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QTextEdit
  • tst_QTreeView
  • tst_QWidget
  • tst_QWizard
  • tst_languageChange
106
1360 }-
1361-
1362 if (window()->flags() & Qt::WindowMinimizeButtonHint) {
window()->flag...mizeButtonHintDescription
TRUEevaluated 3258 times by 104 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
FALSEevaluated 660 times by 58 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QGuiApplication
  • ...
660-3258
1363 mwmhints.flags |= MWM_HINTS_DECORATIONS;-
1364 mwmhints.decorations |= MWM_DECOR_MINIMIZE;-
1365 mwmhints.functions |= MWM_FUNC_MINIMIZE;-
1366 }
executed 3258 times by 104 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
3258
1367 if (window()->flags() & Qt::WindowMaximizeButtonHint) {
window()->flag...mizeButtonHintDescription
TRUEevaluated 3258 times by 104 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
FALSEevaluated 660 times by 58 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QGuiApplication
  • ...
660-3258
1368 mwmhints.flags |= MWM_HINTS_DECORATIONS;-
1369 mwmhints.decorations |= MWM_DECOR_MAXIMIZE;-
1370 mwmhints.functions |= MWM_FUNC_MAXIMIZE;-
1371 }
executed 3258 times by 104 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
3258
1372 if (window()->flags() & Qt::WindowCloseButtonHint)
window()->flag...loseButtonHintDescription
TRUEevaluated 3560 times by 113 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
FALSEevaluated 358 times by 35 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDockWidget
  • tst_QFormLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QKeyEvent
  • tst_QLayout
  • tst_QLineEdit
  • tst_QListView
  • tst_QMainWindow
  • tst_QMenu
  • tst_QMouseEvent
  • tst_QOpenGLWindow
  • tst_QPixmap
  • tst_QRasterWindow
  • tst_QStyle
  • ...
358-3560
1373 mwmhints.functions |= MWM_FUNC_CLOSE;
executed 3560 times by 113 tests: mwmhints.functions |= MWM_FUNC_CLOSE;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
3560
1374-
1375 setMotifWmHints(connection(), m_window, mwmhints);-
1376}
executed 3918 times by 122 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
  • ...
3918
1377-
1378void QXcbWindow::updateNetWmStateBeforeMap()-
1379{-
1380 NetWmStates states(0);-
1381-
1382 const Qt::WindowFlags flags = window()->flags();-
1383 if (flags & Qt::WindowStaysOnTopHint) {
flags & Qt::Wi...StaysOnTopHintDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QWidget
FALSEevaluated 3908 times by 122 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
  • ...
10-3908
1384 states |= NetWmStateAbove;-
1385 states |= NetWmStateStaysOnTop;-
1386 } else if (flags & Qt::WindowStaysOnBottomHint) {
executed 10 times by 2 tests: end of block
Executed by:
  • tst_QGraphicsView
  • tst_QWidget
flags & Qt::Wi...ysOnBottomHintDescription
TRUEnever evaluated
FALSEevaluated 3908 times by 122 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-3908
1387 states |= NetWmStateBelow;-
1388 }
never executed: end of block
0
1389-
1390 if (window()->windowState() & Qt::WindowFullScreen)
window()->wind...ndowFullScreenDescription
TRUEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QDialog
  • tst_QWidget
  • tst_QWindow
FALSEevaluated 3913 times by 122 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
  • ...
5-3913
1391 states |= NetWmStateFullScreen;
executed 5 times by 3 tests: states |= NetWmStateFullScreen;
Executed by:
  • tst_QDialog
  • tst_QWidget
  • tst_QWindow
5
1392-
1393 if (window()->windowState() & Qt::WindowMaximized) {
window()->wind...indowMaximizedDescription
TRUEevaluated 16 times by 11 tests
Evaluated by:
  • tst_QBackingStore
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QHeaderView
  • tst_QListView
  • tst_QMdiSubWindow
  • tst_QOpenGLWidget
  • tst_QPrinter
  • tst_QStatusBar
  • tst_QTreeView
  • tst_QWidget
FALSEevaluated 3902 times by 121 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
16-3902
1394 states |= NetWmStateMaximizedHorz;-
1395 states |= NetWmStateMaximizedVert;-
1396 }
executed 16 times by 11 tests: end of block
Executed by:
  • tst_QBackingStore
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QHeaderView
  • tst_QListView
  • tst_QMdiSubWindow
  • tst_QOpenGLWidget
  • tst_QPrinter
  • tst_QStatusBar
  • tst_QTreeView
  • tst_QWidget
16
1397-
1398 if (window()->modality() != Qt::NonModal)
window()->moda...= Qt::NonModalDescription
TRUEevaluated 133 times by 17 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QColorDialog
  • tst_QDialog
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGuiApplication
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qmouseevent_modal
FALSEevaluated 3785 times by 118 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_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
133-3785
1399 states |= NetWmStateModal;
executed 133 times by 17 tests: states |= NetWmStateModal;
Executed by:
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QColorDialog
  • tst_QDialog
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGuiApplication
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qmouseevent_modal
133
1400-
1401 setNetWmStates(states);-
1402}
executed 3918 times by 122 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
  • ...
3918
1403-
1404void QXcbWindow::setNetWmStateWindowFlags(Qt::WindowFlags flags)-
1405{-
1406 changeNetWmState(flags & Qt::WindowStaysOnTopHint,-
1407 atom(QXcbAtom::_NET_WM_STATE_ABOVE),-
1408 atom(QXcbAtom::_NET_WM_STATE_STAYS_ON_TOP));-
1409 changeNetWmState(flags & Qt::WindowStaysOnBottomHint,-
1410 atom(QXcbAtom::_NET_WM_STATE_BELOW));-
1411}
executed 4158 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
  • ...
4158
1412-
1413void QXcbWindow::updateNetWmUserTime(xcb_timestamp_t timestamp)-
1414{-
1415 xcb_window_t wid = m_window;-
1416 // If timestamp == 0, then it means that the window should not be-
1417 // initially activated. Don't update global user time for this-
1418 // special case.-
1419 if (timestamp != 0)
timestamp != 0Description
TRUEevaluated 4182 times by 101 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QWidget_window
2-4182
1420 connection()->setNetWmUserTime(timestamp);
executed 4182 times by 101 tests: connection()->setNetWmUserTime(timestamp);
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • ...
4182
1421-
1422 const bool isSupportedByWM = connection()->wmSupport()->isSupportedByWM(atom(QXcbAtom::_NET_WM_USER_TIME_WINDOW));-
1423 if (m_netWmUserTimeWindow || isSupportedByWM) {
m_netWmUserTimeWindowDescription
TRUEevaluated 744 times by 54 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QHeaderView
  • ...
FALSEevaluated 3440 times by 101 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • ...
isSupportedByWMDescription
TRUEevaluated 3440 times by 101 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • ...
FALSEnever evaluated
0-3440
1424 if (!m_netWmUserTimeWindow) {
!m_netWmUserTimeWindowDescription
TRUEevaluated 3440 times by 101 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • ...
FALSEevaluated 744 times by 54 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QHeaderView
  • ...
744-3440
1425 m_netWmUserTimeWindow = xcb_generate_id(xcb_connection());-
1426 Q_XCB_CALL(xcb_create_window(xcb_connection(),-
1427 XCB_COPY_FROM_PARENT, // depth -- same as root-
1428 m_netWmUserTimeWindow, // window id-
1429 m_window, // parent window id-
1430 -1, -1, 1, 1,-
1431 0, // border width-
1432 XCB_WINDOW_CLASS_INPUT_OUTPUT, // window class-
1433 m_visualId, // visual-
1434 0, // value mask-
1435 0)); // value list-
1436 wid = m_netWmUserTimeWindow;-
1437 xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window, atom(QXcbAtom::_NET_WM_USER_TIME_WINDOW),-
1438 XCB_ATOM_WINDOW, 32, 1, &m_netWmUserTimeWindow);-
1439 xcb_delete_property(xcb_connection(), m_window, atom(QXcbAtom::_NET_WM_USER_TIME));-
1440#ifndef QT_NO_DEBUG-
1441 QByteArray ba("Qt NET_WM user time window");-
1442 Q_XCB_CALL(xcb_change_property(xcb_connection(),-
1443 XCB_PROP_MODE_REPLACE,-
1444 m_netWmUserTimeWindow,-
1445 atom(QXcbAtom::_NET_WM_NAME),-
1446 atom(QXcbAtom::UTF8_STRING),-
1447 8,-
1448 ba.length(),-
1449 ba.constData()));-
1450#endif-
1451 } else if (!isSupportedByWM) {
executed 3440 times by 101 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • ...
!isSupportedByWMDescription
TRUEnever evaluated
FALSEevaluated 744 times by 54 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QHeaderView
  • ...
0-3440
1452 // WM no longer supports it, then we should remove the-
1453 // _NET_WM_USER_TIME_WINDOW atom.-
1454 xcb_delete_property(xcb_connection(), m_window, atom(QXcbAtom::_NET_WM_USER_TIME_WINDOW));-
1455 xcb_destroy_window(xcb_connection(), m_netWmUserTimeWindow);-
1456 m_netWmUserTimeWindow = XCB_NONE;-
1457 } else {
never executed: end of block
0
1458 wid = m_netWmUserTimeWindow;-
1459 }
executed 744 times by 54 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QHeaderView
  • ...
744
1460 }-
1461 xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, wid, atom(QXcbAtom::_NET_WM_USER_TIME),-
1462 XCB_ATOM_CARDINAL, 32, 1, &timestamp);-
1463}
executed 4184 times by 101 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • ...
4184
1464-
1465void QXcbWindow::setTransparentForMouseEvents(bool transparent)-
1466{-
1467 if (!connection()->hasXFixes() || transparent == m_transparent)
!connection()->hasXFixes()Description
TRUEnever evaluated
FALSEevaluated 4159 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
  • ...
transparent == m_transparentDescription
TRUEevaluated 4158 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QWidget_window
0-4159
1468 return;
executed 4158 times by 125 tests: return;
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
  • ...
4158
1469-
1470 xcb_rectangle_t rectangle;-
1471-
1472 xcb_rectangle_t *rect = 0;-
1473 int nrect = 0;-
1474-
1475 if (!transparent) {
!transparentDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QWidget_window
0-1
1476 rectangle.x = 0;-
1477 rectangle.y = 0;-
1478 rectangle.width = geometry().width();-
1479 rectangle.height = geometry().height();-
1480 rect = &rectangle;-
1481 nrect = 1;-
1482 }
never executed: end of block
0
1483-
1484 xcb_xfixes_region_t region = xcb_generate_id(xcb_connection());-
1485 xcb_xfixes_create_region(xcb_connection(), region, nrect, rect);-
1486 xcb_xfixes_set_window_shape_region_checked(xcb_connection(), m_window, XCB_SHAPE_SK_INPUT, 0, 0, region);-
1487 xcb_xfixes_destroy_region(xcb_connection(), region);-
1488-
1489 m_transparent = transparent;-
1490}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QWidget_window
1
1491-
1492void QXcbWindow::updateDoesNotAcceptFocus(bool doesNotAcceptFocus)-
1493{-
1494 xcb_get_property_cookie_t cookie = xcb_get_wm_hints_unchecked(xcb_connection(), m_window);-
1495-
1496 xcb_wm_hints_t hints;-
1497 if (!xcb_get_wm_hints_reply(xcb_connection(), cookie, &hints, NULL)) {
!xcb_icccm_get...hints, __null)Description
TRUEnever evaluated
FALSEevaluated 4158 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-4158
1498 return;
never executed: return;
0
1499 }-
1500-
1501 xcb_wm_hints_set_input(&hints, !doesNotAcceptFocus);-
1502 xcb_set_wm_hints(xcb_connection(), m_window, &hints);-
1503}
executed 4158 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
  • ...
4158
1504-
1505WId QXcbWindow::winId() const-
1506{-
1507 return m_window;
executed 4715 times by 120 tests: return m_window;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
4715
1508}-
1509-
1510void QXcbWindow::setParent(const QPlatformWindow *parent)-
1511{-
1512 QPoint topLeft = geometry().topLeft();-
1513-
1514 xcb_window_t xcb_parent_id;-
1515 if (parent) {
parentDescription
TRUEevaluated 32 times by 6 tests
Evaluated by:
  • tst_QMdiArea
  • tst_QTabBar
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
FALSEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QWidget
  • tst_QWindow
7-32
1516 const QXcbWindow *qXcbParent = static_cast<const QXcbWindow *>(parent);-
1517 xcb_parent_id = qXcbParent->xcb_window();-
1518 m_embedded = qXcbParent->window()->type() == Qt::ForeignWindow;-
1519 } else {
executed 32 times by 6 tests: end of block
Executed by:
  • tst_QMdiArea
  • tst_QTabBar
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
32
1520 xcb_parent_id = xcbScreen()->root();-
1521 m_embedded = false;-
1522 }
executed 7 times by 2 tests: end of block
Executed by:
  • tst_QWidget
  • tst_QWindow
7
1523 Q_XCB_CALL(xcb_reparent_window(xcb_connection(), xcb_window(), xcb_parent_id, topLeft.x(), topLeft.y()));-
1524}
executed 39 times by 6 tests: end of block
Executed by:
  • tst_QMdiArea
  • tst_QTabBar
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
39
1525-
1526void QXcbWindow::setWindowTitle(const QString &title)-
1527{-
1528 const QString fullTitle = formatWindowTitle(title, QString::fromUtf8(" \xe2\x80\x94 ")); // unicode character U+2014, EM DASH-
1529 const QByteArray ba = fullTitle.toUtf8();-
1530 Q_XCB_CALL(xcb_change_property(xcb_connection(),-
1531 XCB_PROP_MODE_REPLACE,-
1532 m_window,-
1533 atom(QXcbAtom::_NET_WM_NAME),-
1534 atom(QXcbAtom::UTF8_STRING),-
1535 8,-
1536 ba.length(),-
1537 ba.constData()));-
1538-
1539#ifdef XCB_USE_XLIB-
1540 XTextProperty *text = qstringToXTP(DISPLAY_FROM_XCB(this), title);-
1541 if (text)
textDescription
TRUEevaluated 8685 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-8685
1542 XSetWMName(DISPLAY_FROM_XCB(this), m_window, text);
executed 8685 times by 125 tests: XSetWMName(((Display *)(this->connection()->xlib_display())), m_window, text);
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
  • ...
8685
1543#endif-
1544 xcb_flush(xcb_connection());-
1545}
executed 8685 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
  • ...
8685
1546-
1547void QXcbWindow::setWindowIconText(const QString &title)-
1548{-
1549 const QByteArray ba = title.toUtf8();-
1550 Q_XCB_CALL(xcb_change_property(xcb_connection(),-
1551 XCB_PROP_MODE_REPLACE,-
1552 m_window,-
1553 atom(QXcbAtom::_NET_WM_ICON_NAME),-
1554 atom(QXcbAtom::UTF8_STRING),-
1555 8,-
1556 ba.length(),-
1557 ba.constData()));-
1558}
executed 4507 times by 117 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
4507
1559-
1560void QXcbWindow::setWindowIcon(const QIcon &icon)-
1561{-
1562 QVector<quint32> icon_data;-
1563 if (!icon.isNull()) {
!icon.isNull()Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QGuiApplication
  • tst_QWidget
FALSEevaluated 7892 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
  • ...
5-7892
1564 QList<QSize> availableSizes = icon.availableSizes();-
1565 if (availableSizes.isEmpty()) {
availableSizes.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QGuiApplication
  • tst_QWidget
0-5
1566 // try to use default sizes since the icon can be a scalable image like svg.-
1567 availableSizes.push_back(QSize(16,16));-
1568 availableSizes.push_back(QSize(32,32));-
1569 availableSizes.push_back(QSize(64,64));-
1570 availableSizes.push_back(QSize(128,128));-
1571 }
never executed: end of block
0
1572 for (int i = 0; i < availableSizes.size(); ++i) {
i < availableSizes.size()Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QGuiApplication
  • tst_QWidget
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QGuiApplication
  • tst_QWidget
5-7
1573 QSize size = availableSizes.at(i);-
1574 QPixmap pixmap = icon.pixmap(size);-
1575 if (!pixmap.isNull()) {
!pixmap.isNull()Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QGuiApplication
  • tst_QWidget
FALSEnever evaluated
0-7
1576 QImage image = pixmap.toImage().convertToFormat(QImage::Format_ARGB32);-
1577 int pos = icon_data.size();-
1578 icon_data.resize(pos + 2 + image.width()*image.height());-
1579 icon_data[pos++] = image.width();-
1580 icon_data[pos++] = image.height();-
1581 memcpy(icon_data.data() + pos, image.bits(), image.width()*image.height()*4);-
1582 }
executed 7 times by 2 tests: end of block
Executed by:
  • tst_QGuiApplication
  • tst_QWidget
7
1583 }
executed 7 times by 2 tests: end of block
Executed by:
  • tst_QGuiApplication
  • tst_QWidget
7
1584 }
executed 5 times by 2 tests: end of block
Executed by:
  • tst_QGuiApplication
  • tst_QWidget
5
1585-
1586 if (!icon_data.isEmpty()) {
!icon_data.isEmpty()Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QGuiApplication
  • tst_QWidget
FALSEevaluated 7892 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
  • ...
5-7892
1587 Q_XCB_CALL(xcb_change_property(xcb_connection(),-
1588 XCB_PROP_MODE_REPLACE,-
1589 m_window,-
1590 atom(QXcbAtom::_NET_WM_ICON),-
1591 atom(QXcbAtom::CARDINAL),-
1592 32,-
1593 icon_data.size(),-
1594 (unsigned char *) icon_data.data()));-
1595 } else {
executed 5 times by 2 tests: end of block
Executed by:
  • tst_QGuiApplication
  • tst_QWidget
5
1596 Q_XCB_CALL(xcb_delete_property(xcb_connection(),-
1597 m_window,-
1598 atom(QXcbAtom::_NET_WM_ICON)));-
1599 }
executed 7892 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
  • ...
7892
1600}-
1601-
1602void QXcbWindow::raise()-
1603{-
1604 const quint32 mask = XCB_CONFIG_WINDOW_STACK_MODE;-
1605 const quint32 values[] = { XCB_STACK_MODE_ABOVE };-
1606 Q_XCB_CALL(xcb_configure_window(xcb_connection(), m_window, mask, values));-
1607}
executed 257 times by 29 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • ...
257
1608-
1609void QXcbWindow::lower()-
1610{-
1611 const quint32 mask = XCB_CONFIG_WINDOW_STACK_MODE;-
1612 const quint32 values[] = { XCB_STACK_MODE_BELOW };-
1613 Q_XCB_CALL(xcb_configure_window(xcb_connection(), m_window, mask, values));-
1614}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QWidget
1
1615-
1616// Adapt the geometry to match the WM expection with regards-
1617// to gravity.-
1618QRect QXcbWindow::windowToWmGeometry(QRect r) const-
1619{-
1620 if (m_dirtyFrameMargins || m_frameMargins.isNull())
m_dirtyFrameMarginsDescription
TRUEevaluated 188 times by 20 tests
Evaluated by:
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFiledialog
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QOpenGLWindow
  • tst_QPushButton
  • tst_QSplitter
  • tst_QWidget
  • tst_QWidgetAction
  • tst_QWindow
  • tst_QWindowContainer
  • tst_QWizard
FALSEevaluated 14423 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
  • ...
m_frameMargins.isNull()Description
TRUEevaluated 14040 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEevaluated 383 times by 33 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QDialog
  • tst_QDockWidget
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QLayout
  • tst_QListView
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QOpenGLWidget
  • tst_QScrollBar
  • tst_QSpinBox
  • tst_QStackedLayout
  • tst_QStatusBar
  • tst_QStyleSheetStyle
  • tst_QTabWidget
  • tst_QTableView
  • ...
188-14423
1621 return r;
executed 14228 times by 125 tests: return r;
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
  • ...
14228
1622 const bool frameInclusive = positionIncludesFrame(window());-
1623 // XCB_GRAVITY_STATIC requires the inner geometry, whereas-
1624 // XCB_GRAVITY_NORTH_WEST requires the frame geometry-
1625 if (frameInclusive && m_gravity == XCB_GRAVITY_STATIC) {
frameInclusiveDescription
TRUEevaluated 25 times by 5 tests
Evaluated by:
  • tst_QScrollBar
  • tst_QWidget
  • tst_QWindow
  • tst_QWindowContainer
  • tst_QWizard
FALSEevaluated 358 times by 31 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QDialog
  • tst_QDockWidget
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QLayout
  • tst_QListView
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QOpenGLWidget
  • tst_QSpinBox
  • tst_QStackedLayout
  • tst_QStatusBar
  • tst_QStyleSheetStyle
  • tst_QTabWidget
  • tst_QTableView
  • tst_QTreeView
  • ...
m_gravity == X...GRAVITY_STATICDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QWindow
FALSEevaluated 23 times by 4 tests
Evaluated by:
  • tst_QScrollBar
  • tst_QWidget
  • tst_QWindowContainer
  • tst_QWizard
2-358
1626 r.translate(m_frameMargins.left(), m_frameMargins.top());-
1627 } else if (!frameInclusive && m_gravity == XCB_GRAVITY_NORTH_WEST) {
executed 2 times by 1 test: end of block
Executed by:
  • tst_QWindow
!frameInclusiveDescription
TRUEevaluated 358 times by 31 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QDialog
  • tst_QDockWidget
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QLayout
  • tst_QListView
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QOpenGLWidget
  • tst_QSpinBox
  • tst_QStackedLayout
  • tst_QStatusBar
  • tst_QStyleSheetStyle
  • tst_QTabWidget
  • tst_QTableView
  • tst_QTreeView
  • ...
FALSEevaluated 23 times by 4 tests
Evaluated by:
  • tst_QScrollBar
  • tst_QWidget
  • tst_QWindowContainer
  • tst_QWizard
m_gravity == X...ITY_NORTH_WESTDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QWidget
  • tst_QWidget_window
FALSEevaluated 344 times by 31 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QDialog
  • tst_QDockWidget
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QLayout
  • tst_QListView
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QOpenGLWidget
  • tst_QSpinBox
  • tst_QStackedLayout
  • tst_QStatusBar
  • tst_QStyleSheetStyle
  • tst_QTabWidget
  • tst_QTableView
  • tst_QTreeView
  • ...
2-358
1628 r.translate(-m_frameMargins.left(), -m_frameMargins.top());-
1629 }
executed 14 times by 2 tests: end of block
Executed by:
  • tst_QWidget
  • tst_QWidget_window
14
1630 return r;
executed 383 times by 33 tests: return r;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QDialog
  • tst_QDockWidget
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QLayout
  • tst_QListView
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QOpenGLWidget
  • tst_QScrollBar
  • tst_QSpinBox
  • tst_QStackedLayout
  • tst_QStatusBar
  • tst_QStyleSheetStyle
  • tst_QTabWidget
  • tst_QTableView
  • ...
383
1631}-
1632-
1633void QXcbWindow::propagateSizeHints()-
1634{-
1635 // update WM_NORMAL_HINTS-
1636 xcb_size_hints_t hints;-
1637 memset(&hints, 0, sizeof(hints));-
1638-
1639 const QRect xRect = windowToWmGeometry(geometry());-
1640-
1641 QWindow *win = window();-
1642-
1643 if (!qt_window_private(win)->positionAutomatic)
!qt_window_pri...itionAutomaticDescription
TRUEevaluated 3181 times by 79 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsGridLayout
  • ...
FALSEevaluated 8577 times by 119 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
3181-8577
1644 xcb_size_hints_set_position(&hints, true, xRect.x(), xRect.y());
executed 3181 times by 79 tests: xcb_icccm_size_hints_set_position(&hints, true, xRect.x(), xRect.y());
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsGridLayout
  • ...
3181
1645 if (xRect.width() < QWINDOWSIZE_MAX || xRect.height() < QWINDOWSIZE_MAX)
xRect.width() < ((1<<24)-1)Description
TRUEevaluated 11758 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
xRect.height() < ((1<<24)-1)Description
TRUEnever evaluated
FALSEnever evaluated
0-11758
1646 xcb_size_hints_set_size(&hints, true, xRect.width(), xRect.height());
executed 11758 times by 125 tests: xcb_icccm_size_hints_set_size(&hints, true, xRect.width(), xRect.height());
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
  • ...
11758
1647 xcb_size_hints_set_win_gravity(&hints, m_gravity);-
1648-
1649 QSize minimumSize = windowMinimumSize();-
1650 QSize maximumSize = windowMaximumSize();-
1651 QSize baseSize = windowBaseSize();-
1652 QSize sizeIncrement = windowSizeIncrement();-
1653-
1654 if (minimumSize.width() > 0 || minimumSize.height() > 0)
minimumSize.width() > 0Description
TRUEevaluated 2384 times by 67 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 9374 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
  • ...
minimumSize.height() > 0Description
TRUEevaluated 53 times by 7 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QListView
  • tst_QMainWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QSizeGrip
  • tst_QStatusBar
FALSEevaluated 9321 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
  • ...
53-9374
1655 xcb_size_hints_set_min_size(&hints,
executed 2437 times by 67 tests: xcb_icccm_size_hints_set_min_size(&hints, qMin(16383,minimumSize.width()), qMin(16383,minimumSize.height()));
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
2437
1656 qMin(XCOORD_MAX,minimumSize.width()),
executed 2437 times by 67 tests: xcb_icccm_size_hints_set_min_size(&hints, qMin(16383,minimumSize.width()), qMin(16383,minimumSize.height()));
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
2437
1657 qMin(XCOORD_MAX,minimumSize.height()));
executed 2437 times by 67 tests: xcb_icccm_size_hints_set_min_size(&hints, qMin(16383,minimumSize.width()), qMin(16383,minimumSize.height()));
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
2437
1658-
1659 if (maximumSize.width() < QWINDOWSIZE_MAX || maximumSize.height() < QWINDOWSIZE_MAX)
maximumSize.wi... < ((1<<24)-1)Description
TRUEevaluated 790 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QInputDialog
  • tst_QListView
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QShortcut
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QTextEdit
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
FALSEevaluated 10968 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
  • ...
maximumSize.he... < ((1<<24)-1)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QListView
FALSEevaluated 10965 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
  • ...
3-10968
1660 xcb_size_hints_set_max_size(&hints,
executed 793 times by 28 tests: xcb_icccm_size_hints_set_max_size(&hints, qMin(16383, maximumSize.width()), qMin(16383, maximumSize.height()));
Executed by:
  • tst_QAbstractItemView
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QInputDialog
  • tst_QListView
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QShortcut
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QTextEdit
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
793
1661 qMin(XCOORD_MAX, maximumSize.width()),
executed 793 times by 28 tests: xcb_icccm_size_hints_set_max_size(&hints, qMin(16383, maximumSize.width()), qMin(16383, maximumSize.height()));
Executed by:
  • tst_QAbstractItemView
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QInputDialog
  • tst_QListView
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QShortcut
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QTextEdit
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
793
1662 qMin(XCOORD_MAX, maximumSize.height()));
executed 793 times by 28 tests: xcb_icccm_size_hints_set_max_size(&hints, qMin(16383, maximumSize.width()), qMin(16383, maximumSize.height()));
Executed by:
  • tst_QAbstractItemView
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QInputDialog
  • tst_QListView
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QShortcut
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QTextEdit
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
793
1663-
1664 if (sizeIncrement.width() > 0 || sizeIncrement.height() > 0) {
sizeIncrement.width() > 0Description
TRUEnever evaluated
FALSEevaluated 11758 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
  • ...
sizeIncrement.height() > 0Description
TRUEnever evaluated
FALSEevaluated 11758 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-11758
1665 xcb_size_hints_set_base_size(&hints, baseSize.width(), baseSize.height());-
1666 xcb_size_hints_set_resize_inc(&hints, sizeIncrement.width(), sizeIncrement.height());-
1667 }
never executed: end of block
0
1668-
1669 xcb_set_wm_normal_hints(xcb_connection(), m_window, &hints);-
1670}
executed 11758 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
  • ...
11758
1671-
1672void QXcbWindow::requestActivateWindow()-
1673{-
1674 /* Never activate embedded windows; doing that would prevent the container-
1675 * to re-gain the keyboard focus later. */-
1676 if (m_embedded) {
m_embeddedDescription
TRUEnever evaluated
FALSEevaluated 1383 times by 63 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
0-1383
1677 QPlatformWindow::requestActivateWindow();-
1678 return;
never executed: return;
0
1679 }-
1680-
1681 if (!m_mapped) {
!m_mappedDescription
TRUEevaluated 733 times by 58 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 650 times by 59 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • ...
650-733
1682 m_deferredActivation = true;-
1683 return;
executed 733 times by 58 tests: return;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • ...
733
1684 }-
1685 m_deferredActivation = false;-
1686-
1687 updateNetWmUserTime(connection()->time());-
1688 QWindow *focusWindow = QGuiApplication::focusWindow();-
1689-
1690 if (window()->isTopLevel()
window()->isTopLevel()Description
TRUEevaluated 646 times by 59 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QWindow
  • tst_QWindowContainer
4-646
1691 && !(window()->flags() & Qt::X11BypassWindowManagerHint)
!(window()->fl...owManagerHint)Description
TRUEevaluated 631 times by 59 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 15 times by 6 tests
Evaluated by:
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QShortcut
  • tst_QStyleSheetStyle
  • tst_QWidget
15-631
1692 && (!focusWindow || !window()->isAncestorOf(focusWindow))
!focusWindowDescription
TRUEevaluated 363 times by 52 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGroupBox
  • ...
FALSEevaluated 268 times by 29 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCompleter
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QShortcut
  • tst_QSizeGrip
  • tst_QSpinBox
  • tst_QStackedLayout
  • tst_QStatusBar
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
!window()->isA...f(focusWindow)Description
TRUEevaluated 257 times by 29 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCompleter
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QShortcut
  • tst_QSizeGrip
  • tst_QSpinBox
  • tst_QStackedLayout
  • tst_QStatusBar
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
FALSEevaluated 11 times by 4 tests
Evaluated by:
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QWindow
11-363
1693 && connection()->wmSupport()->isSupportedByWM(atom(QXcbAtom::_NET_ACTIVE_WINDOW))) {
connection()->...CTIVE_WINDOW))Description
TRUEevaluated 620 times by 59 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • ...
FALSEnever evaluated
0-620
1694 xcb_client_message_event_t event;-
1695-
1696 event.response_type = XCB_CLIENT_MESSAGE;-
1697 event.format = 32;-
1698 event.sequence = 0;-
1699 event.window = m_window;-
1700 event.type = atom(QXcbAtom::_NET_ACTIVE_WINDOW);-
1701 event.data.data32[0] = 1;-
1702 event.data.data32[1] = connection()->time();-
1703 event.data.data32[2] = focusWindow ? focusWindow->winId() : XCB_NONE;
focusWindowDescription
TRUEevaluated 257 times by 29 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCompleter
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QShortcut
  • tst_QSizeGrip
  • tst_QSpinBox
  • tst_QStackedLayout
  • tst_QStatusBar
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
FALSEevaluated 363 times by 52 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGroupBox
  • ...
257-363
1704 event.data.data32[3] = 0;-
1705 event.data.data32[4] = 0;-
1706-
1707 Q_XCB_CALL(xcb_send_event(xcb_connection(), 0, xcbScreen()->root(), XCB_EVENT_MASK_STRUCTURE_NOTIFY | XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT, (const char *)&event));-
1708 } else {
executed 620 times by 59 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • ...
620
1709 Q_XCB_CALL(xcb_set_input_focus(xcb_connection(), XCB_INPUT_FOCUS_PARENT, m_window, connection()->time()));-
1710 }
executed 30 times by 11 tests: end of block
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QShortcut
  • tst_QStyleSheetStyle
  • tst_QWidget
  • tst_QWindow
  • tst_QWindowContainer
30
1711-
1712 connection()->sync();-
1713}
executed 650 times by 59 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • ...
650
1714-
1715QSurfaceFormat QXcbWindow::format() const-
1716{-
1717 return m_format;
executed 241 times by 9 tests: return m_format;
Executed by:
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
  • tst_QWidget
  • tst_QWidget_window
241
1718}-
1719-
1720void QXcbWindow::setWmWindowTypeStatic(QWindow *window, QXcbWindowFunctions::WmWindowTypes windowTypes)-
1721{-
1722 window->setProperty(wm_window_type_property_id, QVariant::fromValue(static_cast<int>(windowTypes)));-
1723-
1724 if (window->handle())
window->handle()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMenu
FALSEevaluated 152 times by 23 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QPushButton
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QToolButton
  • tst_QWidget
  • tst_QWidgetAction
  • tst_QWidget_window
2-152
1725 static_cast<QXcbWindow *>(window->handle())->setWmWindowType(windowTypes, window->flags());
executed 2 times by 1 test: static_cast<QXcbWindow *>(window->handle())->setWmWindowType(windowTypes, window->flags());
Executed by:
  • tst_QMenu
2
1726}
executed 154 times by 23 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QPushButton
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QToolButton
  • tst_QWidget
  • tst_QWidgetAction
  • tst_QWidget_window
154
1727-
1728void QXcbWindow::setWindowIconTextStatic(QWindow *window, const QString &text)-
1729{-
1730 if (window->handle())
window->handle()Description
TRUEevaluated 4507 times by 117 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
FALSEnever evaluated
0-4507
1731 static_cast<QXcbWindow *>(window->handle())->setWindowIconText(text);
executed 4507 times by 117 tests: static_cast<QXcbWindow *>(window->handle())->setWindowIconText(text);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
4507
1732}
executed 4507 times by 117 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
4507
1733-
1734void QXcbWindow::setWmWindowRoleStatic(QWindow *window, const QByteArray &role)-
1735{-
1736 if (window->handle())
window->handle()Description
TRUEnever evaluated
FALSEnever evaluated
0
1737 static_cast<QXcbWindow *>(window->handle())->setWmWindowRole(role);
never executed: static_cast<QXcbWindow *>(window->handle())->setWmWindowRole(role);
0
1738 else-
1739 window->setProperty(wm_window_role_property_id, role);
never executed: window->setProperty(wm_window_role_property_id, role);
0
1740}-
1741-
1742uint QXcbWindow::visualIdStatic(QWindow *window)-
1743{-
1744 if (window && window->handle())
windowDescription
TRUEnever evaluated
FALSEnever evaluated
window->handle()Description
TRUEnever evaluated
FALSEnever evaluated
0
1745 return static_cast<QXcbWindow *>(window->handle())->visualId();
never executed: return static_cast<QXcbWindow *>(window->handle())->visualId();
0
1746 return UINT_MAX;
never executed: return (2147483647 * 2U + 1U);
0
1747}-
1748-
1749QXcbWindowFunctions::WmWindowTypes QXcbWindow::wmWindowTypes() const-
1750{-
1751 QXcbWindowFunctions::WmWindowTypes result(0);-
1752-
1753 xcb_get_property_cookie_t get_cookie =-
1754 xcb_get_property_unchecked(xcb_connection(), 0, m_window, atom(QXcbAtom::_NET_WM_WINDOW_TYPE),-
1755 XCB_ATOM_ATOM, 0, 1024);-
1756-
1757 xcb_get_property_reply_t *reply =-
1758 xcb_get_property_reply(xcb_connection(), get_cookie, NULL);-
1759-
1760 if (reply && reply->format == 32 && reply->type == XCB_ATOM_ATOM) {
replyDescription
TRUEnever evaluated
FALSEnever evaluated
reply->format == 32Description
TRUEnever evaluated
FALSEnever evaluated
reply->type == XCB_ATOM_ATOMDescription
TRUEnever evaluated
FALSEnever evaluated
0
1761 const xcb_atom_t *types = static_cast<const xcb_atom_t *>(xcb_get_property_value(reply));-
1762 const xcb_atom_t *types_end = types + reply->length;-
1763 for (; types != types_end; types++) {
types != types_endDescription
TRUEnever evaluated
FALSEnever evaluated
0
1764 QXcbAtom::Atom type = connection()->qatom(*types);-
1765 switch (type) {-
1766 case QXcbAtom::_NET_WM_WINDOW_TYPE_NORMAL:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_NORMAL:
0
1767 result |= QXcbWindowFunctions::Normal;-
1768 break;
never executed: break;
0
1769 case QXcbAtom::_NET_WM_WINDOW_TYPE_DESKTOP:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_DESKTOP:
0
1770 result |= QXcbWindowFunctions::Desktop;-
1771 break;
never executed: break;
0
1772 case QXcbAtom::_NET_WM_WINDOW_TYPE_DOCK:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_DOCK:
0
1773 result |= QXcbWindowFunctions::Dock;-
1774 break;
never executed: break;
0
1775 case QXcbAtom::_NET_WM_WINDOW_TYPE_TOOLBAR:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_TOOLBAR:
0
1776 result |= QXcbWindowFunctions::Toolbar;-
1777 break;
never executed: break;
0
1778 case QXcbAtom::_NET_WM_WINDOW_TYPE_MENU:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_MENU:
0
1779 result |= QXcbWindowFunctions::Menu;-
1780 break;
never executed: break;
0
1781 case QXcbAtom::_NET_WM_WINDOW_TYPE_UTILITY:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_UTILITY:
0
1782 result |= QXcbWindowFunctions::Utility;-
1783 break;
never executed: break;
0
1784 case QXcbAtom::_NET_WM_WINDOW_TYPE_SPLASH:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_SPLASH:
0
1785 result |= QXcbWindowFunctions::Splash;-
1786 break;
never executed: break;
0
1787 case QXcbAtom::_NET_WM_WINDOW_TYPE_DIALOG:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_DIALOG:
0
1788 result |= QXcbWindowFunctions::Dialog;-
1789 break;
never executed: break;
0
1790 case QXcbAtom::_NET_WM_WINDOW_TYPE_DROPDOWN_MENU:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_DROPDOWN_MENU:
0
1791 result |= QXcbWindowFunctions::DropDownMenu;-
1792 break;
never executed: break;
0
1793 case QXcbAtom::_NET_WM_WINDOW_TYPE_POPUP_MENU:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_POPUP_MENU:
0
1794 result |= QXcbWindowFunctions::PopupMenu;-
1795 break;
never executed: break;
0
1796 case QXcbAtom::_NET_WM_WINDOW_TYPE_TOOLTIP:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_TOOLTIP:
0
1797 result |= QXcbWindowFunctions::Tooltip;-
1798 break;
never executed: break;
0
1799 case QXcbAtom::_NET_WM_WINDOW_TYPE_NOTIFICATION:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_NOTIFICATION:
0
1800 result |= QXcbWindowFunctions::Notification;-
1801 break;
never executed: break;
0
1802 case QXcbAtom::_NET_WM_WINDOW_TYPE_COMBO:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_COMBO:
0
1803 result |= QXcbWindowFunctions::Combo;-
1804 break;
never executed: break;
0
1805 case QXcbAtom::_NET_WM_WINDOW_TYPE_DND:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_DND:
0
1806 result |= QXcbWindowFunctions::Dnd;-
1807 break;
never executed: break;
0
1808 case QXcbAtom::_KDE_NET_WM_WINDOW_TYPE_OVERRIDE:
never executed: case QXcbAtom::_KDE_NET_WM_WINDOW_TYPE_OVERRIDE:
0
1809 result |= QXcbWindowFunctions::KdeOverride;-
1810 break;
never executed: break;
0
1811 default:
never executed: default:
0
1812 break;
never executed: break;
0
1813 }-
1814 }-
1815 free(reply);-
1816 }
never executed: end of block
0
1817 return result;
never executed: return result;
0
1818}-
1819-
1820void QXcbWindow::setWmWindowType(QXcbWindowFunctions::WmWindowTypes types, Qt::WindowFlags flags)-
1821{-
1822 QVector<xcb_atom_t> atoms;-
1823-
1824 // manual selection 1 (these are never set by Qt and take precedence)-
1825 if (types & QXcbWindowFunctions::Normal)
types & QXcbWi...ctions::NormalDescription
TRUEnever evaluated
FALSEevaluated 4160 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-4160
1826 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_NORMAL));
never executed: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_NORMAL));
0
1827 if (types & QXcbWindowFunctions::Desktop)
types & QXcbWi...tions::DesktopDescription
TRUEnever evaluated
FALSEevaluated 4160 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-4160
1828 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DESKTOP));
never executed: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DESKTOP));
0
1829 if (types & QXcbWindowFunctions::Dock)
types & QXcbWi...unctions::DockDescription
TRUEnever evaluated
FALSEevaluated 4160 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-4160
1830 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DOCK));
never executed: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DOCK));
0
1831 if (types & QXcbWindowFunctions::Notification)
types & QXcbWi...::NotificationDescription
TRUEnever evaluated
FALSEevaluated 4160 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-4160
1832 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_NOTIFICATION));
never executed: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_NOTIFICATION));
0
1833-
1834 // manual selection 2 (Qt uses these during auto selection);-
1835 if (types & QXcbWindowFunctions::Utility)
types & QXcbWi...tions::UtilityDescription
TRUEnever evaluated
FALSEevaluated 4160 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-4160
1836 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_UTILITY));
never executed: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_UTILITY));
0
1837 if (types & QXcbWindowFunctions::Splash)
types & QXcbWi...ctions::SplashDescription
TRUEnever evaluated
FALSEevaluated 4160 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-4160
1838 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_SPLASH));
never executed: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_SPLASH));
0
1839 if (types & QXcbWindowFunctions::Dialog)
types & QXcbWi...ctions::DialogDescription
TRUEnever evaluated
FALSEevaluated 4160 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-4160
1840 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DIALOG));
never executed: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DIALOG));
0
1841 if (types & QXcbWindowFunctions::Tooltip)
types & QXcbWi...tions::TooltipDescription
TRUEnever evaluated
FALSEevaluated 4160 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-4160
1842 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_TOOLTIP));
never executed: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_TOOLTIP));
0
1843 if (types & QXcbWindowFunctions::KdeOverride)
types & QXcbWi...s::KdeOverrideDescription
TRUEnever evaluated
FALSEevaluated 4160 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-4160
1844 atoms.append(atom(QXcbAtom::_KDE_NET_WM_WINDOW_TYPE_OVERRIDE));
never executed: atoms.append(atom(QXcbAtom::_KDE_NET_WM_WINDOW_TYPE_OVERRIDE));
0
1845-
1846 // manual selection 3 (these can be set by Qt, but don't have a-
1847 // corresponding Qt::WindowType). note that order of the *MENU-
1848 // atoms is important-
1849 if (types & QXcbWindowFunctions::Menu)
types & QXcbWi...unctions::MenuDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QMenu
FALSEevaluated 4157 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
  • ...
3-4157
1850 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_MENU));
executed 3 times by 1 test: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_MENU));
Executed by:
  • tst_QMenu
3
1851 if (types & QXcbWindowFunctions::DropDownMenu)
types & QXcbWi...::DropDownMenuDescription
TRUEevaluated 21 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QMenu
  • tst_QMenuBar
FALSEevaluated 4139 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
  • ...
21-4139
1852 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DROPDOWN_MENU));
executed 21 times by 3 tests: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DROPDOWN_MENU));
Executed by:
  • tst_QAccessibility
  • tst_QMenu
  • tst_QMenuBar
21
1853 if (types & QXcbWindowFunctions::PopupMenu)
types & QXcbWi...ons::PopupMenuDescription
TRUEevaluated 81 times by 17 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCommandLinkButton
  • tst_QFileDialog2
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QWidget
  • tst_QWidgetAction
FALSEevaluated 4079 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
  • ...
81-4079
1854 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_POPUP_MENU));
executed 81 times by 17 tests: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_POPUP_MENU));
Executed by:
  • tst_QAccessibility
  • tst_QCommandLinkButton
  • tst_QFileDialog2
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QWidget
  • tst_QWidgetAction
81
1855 if (types & QXcbWindowFunctions::Toolbar)
types & QXcbWi...tions::ToolbarDescription
TRUEevaluated 26 times by 5 tests
Evaluated by:
  • tst_QMainWindow
  • tst_QStyle
  • tst_QToolBar
  • tst_QWidgetAction
  • tst_QWidget_window
FALSEevaluated 4134 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
  • ...
26-4134
1856 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_TOOLBAR));
executed 26 times by 5 tests: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_TOOLBAR));
Executed by:
  • tst_QMainWindow
  • tst_QStyle
  • tst_QToolBar
  • tst_QWidgetAction
  • tst_QWidget_window
26
1857 if (types & QXcbWindowFunctions::Combo)
types & QXcbWi...nctions::ComboDescription
TRUEevaluated 49 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
FALSEevaluated 4111 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
  • ...
49-4111
1858 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_COMBO));
executed 49 times by 4 tests: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_COMBO));
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
49
1859 if (types & QXcbWindowFunctions::Dnd)
types & QXcbWi...Functions::DndDescription
TRUEnever evaluated
FALSEevaluated 4160 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-4160
1860 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DND));
never executed: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DND));
0
1861-
1862 // automatic selection-
1863 Qt::WindowType type = static_cast<Qt::WindowType>(int(flags & Qt::WindowType_Mask));-
1864 switch (type) {-
1865 case Qt::Dialog:
executed 278 times by 29 tests: case Qt::Dialog:
Executed by:
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QWidget
  • tst_QWindow
  • ...
278
1866 case Qt::Sheet:
never executed: case Qt::Sheet:
0
1867 if (!(types & QXcbWindowFunctions::Dialog))
!(types & QXcb...tions::Dialog)Description
TRUEevaluated 278 times by 29 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QWidget
  • tst_QWindow
  • ...
FALSEnever evaluated
0-278
1868 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DIALOG));
executed 278 times by 29 tests: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DIALOG));
Executed by:
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QWidget
  • tst_QWindow
  • ...
278
1869 break;
executed 278 times by 29 tests: break;
Executed by:
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QWidget
  • tst_QWindow
  • ...
278
1870 case Qt::Tool:
executed 36 times by 8 tests: case Qt::Tool:
Executed by:
  • tst_QDialog
  • tst_QDockWidget
  • tst_QGraphicsItem
  • tst_QMainWindow
  • tst_QMenu
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
36
1871 case Qt::Drawer:
never executed: case Qt::Drawer:
0
1872 if (!(types & QXcbWindowFunctions::Utility))
!(types & QXcb...ions::Utility)Description
TRUEevaluated 36 times by 8 tests
Evaluated by:
  • tst_QDialog
  • tst_QDockWidget
  • tst_QGraphicsItem
  • tst_QMainWindow
  • tst_QMenu
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
FALSEnever evaluated
0-36
1873 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_UTILITY));
executed 36 times by 8 tests: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_UTILITY));
Executed by:
  • tst_QDialog
  • tst_QDockWidget
  • tst_QGraphicsItem
  • tst_QMainWindow
  • tst_QMenu
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
36
1874 break;
executed 36 times by 8 tests: break;
Executed by:
  • tst_QDialog
  • tst_QDockWidget
  • tst_QGraphicsItem
  • tst_QMainWindow
  • tst_QMenu
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
36
1875 case Qt::ToolTip:
executed 16 times by 6 tests: case Qt::ToolTip:
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QToolTip
  • tst_QWidget
16
1876 if (!(types & QXcbWindowFunctions::Tooltip))
!(types & QXcb...ions::Tooltip)Description
TRUEevaluated 16 times by 6 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QToolTip
  • tst_QWidget
FALSEnever evaluated
0-16
1877 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_TOOLTIP));
executed 16 times by 6 tests: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_TOOLTIP));
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QToolTip
  • tst_QWidget
16
1878 break;
executed 16 times by 6 tests: break;
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QToolTip
  • tst_QWidget
16
1879 case Qt::SplashScreen:
executed 1 time by 1 test: case Qt::SplashScreen:
Executed by:
  • tst_QPixmap
1
1880 if (!(types & QXcbWindowFunctions::Splash))
!(types & QXcb...tions::Splash)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPixmap
FALSEnever evaluated
0-1
1881 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_SPLASH));
executed 1 time by 1 test: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_SPLASH));
Executed by:
  • tst_QPixmap
1
1882 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QPixmap
1
1883 default:
executed 3829 times by 117 tests: default:
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_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
3829
1884 break;
executed 3829 times by 117 tests: break;
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_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
3829
1885 }-
1886-
1887 if ((flags & Qt::FramelessWindowHint) && !(type & QXcbWindowFunctions::KdeOverride)) {
!(type & QXcbW...::KdeOverride)Description
TRUEevaluated 256 times by 27 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDockWidget
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QLayout
  • tst_QListView
  • tst_QMainWindow
  • tst_QMenu
  • tst_QPixmap
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QToolTip
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidgetAction
  • ...
FALSEnever evaluated
0-256
1888 // override netwm type - quick and easy for KDE noborder-
1889 atoms.append(atom(QXcbAtom::_KDE_NET_WM_WINDOW_TYPE_OVERRIDE));-
1890 }
executed 256 times by 27 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDockWidget
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QLayout
  • tst_QListView
  • tst_QMainWindow
  • tst_QMenu
  • tst_QPixmap
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QToolTip
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidgetAction
  • ...
256
1891-
1892 if (atoms.size() == 1 && atoms.first() == atom(QXcbAtom::_NET_WM_WINDOW_TYPE_NORMAL))
atoms.size() == 1Description
TRUEevaluated 595 times by 54 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QInputDialog
  • ...
FALSEevaluated 3565 times by 117 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
atoms.first() ...W_TYPE_NORMAL)Description
TRUEnever evaluated
FALSEevaluated 595 times by 54 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QInputDialog
  • ...
0-3565
1893 atoms.clear();
never executed: atoms.clear();
0
1894 else-
1895 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_NORMAL));
executed 4160 times by 125 tests: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_NORMAL));
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
  • ...
4160
1896-
1897 if (atoms.isEmpty()) {
atoms.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 4160 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-4160
1898 Q_XCB_CALL(xcb_delete_property(xcb_connection(), m_window, atom(QXcbAtom::_NET_WM_WINDOW_TYPE)));-
1899 } else {
never executed: end of block
0
1900 Q_XCB_CALL(xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window,-
1901 atom(QXcbAtom::_NET_WM_WINDOW_TYPE), XCB_ATOM_ATOM, 32,-
1902 atoms.count(), atoms.constData()));-
1903 }
executed 4160 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
  • ...
4160
1904 xcb_flush(xcb_connection());-
1905}
executed 4160 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
  • ...
4160
1906-
1907void QXcbWindow::setWmWindowRole(const QByteArray &role)-
1908{-
1909 Q_XCB_CALL(xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window,-
1910 atom(QXcbAtom::WM_WINDOW_ROLE), XCB_ATOM_STRING, 8,-
1911 role.size(), role.constData()));-
1912}
never executed: end of block
0
1913-
1914void QXcbWindow::setParentRelativeBackPixmapStatic(QWindow *window)-
1915{-
1916 if (window->handle())
window->handle()Description
TRUEnever evaluated
FALSEnever evaluated
0
1917 static_cast<QXcbWindow *>(window->handle())->setParentRelativeBackPixmap();
never executed: static_cast<QXcbWindow *>(window->handle())->setParentRelativeBackPixmap();
0
1918}
never executed: end of block
0
1919-
1920void QXcbWindow::setParentRelativeBackPixmap()-
1921{-
1922 const quint32 mask = XCB_CW_BACK_PIXMAP;-
1923 const quint32 values[] = { XCB_BACK_PIXMAP_PARENT_RELATIVE };-
1924 Q_XCB_CALL(xcb_change_window_attributes(xcb_connection(), m_window, mask, values));-
1925}
never executed: end of block
0
1926-
1927bool QXcbWindow::requestSystemTrayWindowDockStatic(const QWindow *window)-
1928{-
1929 if (window->handle())
window->handle()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSystemTrayIcon
FALSEnever evaluated
0-3
1930 return static_cast<QXcbWindow *>(window->handle())->requestSystemTrayWindowDock();
executed 3 times by 1 test: return static_cast<QXcbWindow *>(window->handle())->requestSystemTrayWindowDock();
Executed by:
  • tst_QSystemTrayIcon
3
1931 return false;
never executed: return false;
0
1932}-
1933-
1934bool QXcbWindow::requestSystemTrayWindowDock() const-
1935{-
1936 if (!connection()->systemTrayTracker())
!connection()-...mTrayTracker()Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSystemTrayIcon
0-3
1937 return false;
never executed: return false;
0
1938 connection()->systemTrayTracker()->requestSystemTrayWindowDock(m_window);-
1939 return true;
executed 3 times by 1 test: return true;
Executed by:
  • tst_QSystemTrayIcon
3
1940}-
1941-
1942QRect QXcbWindow::systemTrayWindowGlobalGeometryStatic(const QWindow *window)-
1943{-
1944 if (window->handle())
window->handle()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSystemTrayIcon
FALSEnever evaluated
0-4
1945 return static_cast<QXcbWindow *>(window->handle())->systemTrayWindowGlobalGeometry();
executed 4 times by 1 test: return static_cast<QXcbWindow *>(window->handle())->systemTrayWindowGlobalGeometry();
Executed by:
  • tst_QSystemTrayIcon
4
1946 return QRect();
never executed: return QRect();
0
1947}-
1948-
1949QRect QXcbWindow::systemTrayWindowGlobalGeometry() const-
1950{-
1951 if (!connection()->systemTrayTracker())
!connection()-...mTrayTracker()Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSystemTrayIcon
0-4
1952 return QRect();
never executed: return QRect();
0
1953 return connection()->systemTrayTracker()->systemTrayWindowGlobalGeometry(m_window);
executed 4 times by 1 test: return connection()->systemTrayTracker()->systemTrayWindowGlobalGeometry(m_window);
Executed by:
  • tst_QSystemTrayIcon
4
1954}-
1955-
1956class ExposeCompressor-
1957{-
1958public:-
1959 ExposeCompressor(xcb_window_t window, QRegion *region)-
1960 : m_window(window)-
1961 , m_region(region)-
1962 , m_pending(true)-
1963 {-
1964 }
executed 2664 times by 104 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2664
1965-
1966 bool checkEvent(xcb_generic_event_t *event)-
1967 {-
1968 if (!event)
!eventDescription
TRUEevaluated 29891 times by 104 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 17201 times by 104 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
17201-29891
1969 return false;
executed 29891 times by 104 tests: return false;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
29891
1970 if ((event->response_type & ~0x80) != XCB_EXPOSE)
(event->respon...& ~0x80) != 12Description
TRUEevaluated 16880 times by 104 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 321 times by 26 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFiledialog
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QLabel
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QOpenGLWindow
  • tst_QPushButton
  • tst_QSizeGrip
  • tst_QSplitter
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QToolButton
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • ...
321-16880
1971 return false;
executed 16880 times by 104 tests: return false;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
16880
1972 xcb_expose_event_t *expose = (xcb_expose_event_t *)event;-
1973 if (expose->window != m_window)
expose->window != m_windowDescription
TRUEevaluated 112 times by 19 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QDialog
  • tst_QDockWidget
  • tst_QGuiApplication
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QPushButton
  • tst_QSizeGrip
  • tst_QSplitter
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
FALSEevaluated 209 times by 14 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QDialog
  • tst_QFiledialog
  • tst_QGraphicsView
  • tst_QLabel
  • tst_QMdiArea
  • tst_QOpenGLWindow
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
112-209
1974 return false;
executed 112 times by 19 tests: return false;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QDialog
  • tst_QDockWidget
  • tst_QGuiApplication
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QPushButton
  • tst_QSizeGrip
  • tst_QSplitter
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
112
1975 if (expose->count == 0)
expose->count == 0Description
TRUEevaluated 108 times by 14 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QDialog
  • tst_QFiledialog
  • tst_QGraphicsView
  • tst_QLabel
  • tst_QMdiArea
  • tst_QOpenGLWindow
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
FALSEevaluated 101 times by 9 tests
Evaluated by:
  • tst_QDialog
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QOpenGLWindow
  • tst_QTableView
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
101-108
1976 m_pending = false;
executed 108 times by 14 tests: m_pending = false;
Executed by:
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QDialog
  • tst_QFiledialog
  • tst_QGraphicsView
  • tst_QLabel
  • tst_QMdiArea
  • tst_QOpenGLWindow
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
108
1977 *m_region |= QRect(expose->x, expose->y, expose->width, expose->height);-
1978 return true;
executed 209 times by 14 tests: return true;
Executed by:
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QDialog
  • tst_QFiledialog
  • tst_QGraphicsView
  • tst_QLabel
  • tst_QMdiArea
  • tst_QOpenGLWindow
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
209
1979 }-
1980-
1981 bool pending() const-
1982 {-
1983 return m_pending;
executed 2664 times by 104 tests: return m_pending;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2664
1984 }-
1985-
1986private:-
1987 xcb_window_t m_window;-
1988 QRegion *m_region;-
1989 bool m_pending;-
1990};-
1991-
1992bool QXcbWindow::compressExposeEvent(QRegion &exposeRegion)-
1993{-
1994 ExposeCompressor compressor(m_window, &exposeRegion);-
1995 xcb_generic_event_t *filter = 0;-
1996 do {-
1997 filter = connection()->checkEvent(compressor);-
1998 free(filter);-
1999 } while (filter);
executed 2873 times by 104 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
filterDescription
TRUEevaluated 209 times by 14 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QDialog
  • tst_QFiledialog
  • tst_QGraphicsView
  • tst_QLabel
  • tst_QMdiArea
  • tst_QOpenGLWindow
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
FALSEevaluated 2664 times by 104 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
209-2873
2000 return compressor.pending();
executed 2664 times by 104 tests: return compressor.pending();
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2664
2001}-
2002-
2003bool QXcbWindow::handleGenericEvent(xcb_generic_event_t *event, long *result)-
2004{-
2005 return QWindowSystemInterface::handleNativeEvent(window(),
executed 117475 times by 112 tests: return QWindowSystemInterface::handleNativeEvent(window(), connection()->nativeInterface()->genericEventFilterType(), event, result);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
117475
2006 connection()->nativeInterface()->genericEventFilterType(),
executed 117475 times by 112 tests: return QWindowSystemInterface::handleNativeEvent(window(), connection()->nativeInterface()->genericEventFilterType(), event, result);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
117475
2007 event,
executed 117475 times by 112 tests: return QWindowSystemInterface::handleNativeEvent(window(), connection()->nativeInterface()->genericEventFilterType(), event, result);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
117475
2008 result);
executed 117475 times by 112 tests: return QWindowSystemInterface::handleNativeEvent(window(), connection()->nativeInterface()->genericEventFilterType(), event, result);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
117475
2009}-
2010-
2011void QXcbWindow::handleExposeEvent(const xcb_expose_event_t *event)-
2012{-
2013 QRect rect(event->x, event->y, event->width, event->height);-
2014-
2015 if (m_exposeRegion.isEmpty())
m_exposeRegion.isEmpty()Description
TRUEevaluated 2664 times by 104 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEnever evaluated
0-2664
2016 m_exposeRegion = rect;
executed 2664 times by 104 tests: m_exposeRegion = rect;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2664
2017 else-
2018 m_exposeRegion |= rect;
never executed: m_exposeRegion |= rect;
0
2019-
2020 bool pending = compressExposeEvent(m_exposeRegion);-
2021-
2022 // if count is non-zero there are more expose events pending-
2023 if (event->count == 0 || !pending) {
event->count == 0Description
TRUEevaluated 2599 times by 104 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 65 times by 10 tests
Evaluated by:
  • tst_QDialog
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QOpenGLWindow
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
!pendingDescription
TRUEevaluated 65 times by 10 tests
Evaluated by:
  • tst_QDialog
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QOpenGLWindow
  • tst_QSystemTrayIcon
  • tst_QTableView
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
  • tst_QWindowContainer
FALSEnever evaluated
0-2599
2024 QWindowSystemInterface::handleExposeEvent(window(), m_exposeRegion);-
2025 m_exposeRegion = QRegion();-
2026 }
executed 2664 times by 104 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2664
2027}
executed 2664 times by 104 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2664
2028-
2029void QXcbWindow::handleClientMessageEvent(const xcb_client_message_event_t *event)-
2030{-
2031 if (event->format != 32)
event->format != 32Description
TRUEnever evaluated
FALSEevaluated 9158 times by 110 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
0-9158
2032 return;
never executed: return;
0
2033-
2034 if (event->type == atom(QXcbAtom::WM_PROTOCOLS)) {
event->type ==...:WM_PROTOCOLS)Description
TRUEevaluated 2798 times by 99 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • ...
FALSEevaluated 6360 times by 110 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
2798-6360
2035 if (event->data.data32[0] == atom(QXcbAtom::WM_DELETE_WINDOW)) {
event->data.da...DELETE_WINDOW)Description
TRUEnever evaluated
FALSEevaluated 2798 times by 99 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • ...
0-2798
2036 QWindowSystemInterface::handleCloseEvent(window());-
2037 } else if (event->data.data32[0] == atom(QXcbAtom::WM_TAKE_FOCUS)) {
never executed: end of block
event->data.da...WM_TAKE_FOCUS)Description
TRUEevaluated 2237 times by 99 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • ...
FALSEevaluated 561 times by 47 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListView
  • ...
0-2237
2038 connection()->setTime(event->data.data32[1]);-
2039 relayFocusToModalWindow();-
2040 return;
executed 2237 times by 99 tests: return;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • ...
2237
2041 } else if (event->data.data32[0] == atom(QXcbAtom::_NET_WM_PING)) {
event->data.da...:_NET_WM_PING)Description
TRUEevaluated 561 times by 47 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListView
  • ...
FALSEnever evaluated
0-561
2042 if (event->window == xcbScreen()->root())
event->window ...reen()->root()Description
TRUEevaluated 270 times by 45 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiArea
  • ...
FALSEevaluated 291 times by 47 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListView
  • ...
270-291
2043 return;
executed 270 times by 45 tests: return;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiArea
  • ...
270
2044-
2045 xcb_client_message_event_t reply = *event;-
2046-
2047 reply.response_type = XCB_CLIENT_MESSAGE;-
2048 reply.window = xcbScreen()->root();-
2049-
2050 xcb_send_event(xcb_connection(), 0, xcbScreen()->root(), XCB_EVENT_MASK_STRUCTURE_NOTIFY | XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT, (const char *)&reply);-
2051 xcb_flush(xcb_connection());-
2052 } else if (event->data.data32[0] == atom(QXcbAtom::_NET_WM_SYNC_REQUEST)) {
executed 291 times by 47 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListView
  • ...
event->data.da..._SYNC_REQUEST)Description
TRUEnever evaluated
FALSEnever evaluated
0-291
2053 connection()->setTime(event->data.data32[1]);-
2054 m_syncValue.lo = event->data.data32[2];-
2055 m_syncValue.hi = event->data.data32[3];-
2056 if (m_usingSyncProtocol)
m_usingSyncProtocolDescription
TRUEnever evaluated
FALSEnever evaluated
0
2057 m_syncState = SyncReceived;
never executed: m_syncState = SyncReceived;
0
2058#ifndef QT_NO_WHATSTHIS-
2059 } else if (event->data.data32[0] == atom(QXcbAtom::_NET_WM_CONTEXT_HELP)) {
never executed: end of block
event->data.da..._CONTEXT_HELP)Description
TRUEnever evaluated
FALSEnever evaluated
0
2060 QWindowSystemInterface::handleEnterWhatsThisEvent();-
2061#endif-
2062 } else {
never executed: end of block
0
2063 qWarning() << "QXcbWindow: Unhandled WM_PROTOCOLS message:" << connection()->atomName(event->data.data32[0]);-
2064 }
never executed: end of block
0
2065#ifndef QT_NO_DRAGANDDROP-
2066 } else if (event->type == atom(QXcbAtom::XdndEnter)) {
event->type ==...om::XdndEnter)Description
TRUEnever evaluated
FALSEevaluated 6360 times by 110 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
0-6360
2067 connection()->drag()->handleEnter(this, event);-
2068 } else if (event->type == atom(QXcbAtom::XdndPosition)) {
never executed: end of block
event->type ==...:XdndPosition)Description
TRUEnever evaluated
FALSEevaluated 6360 times by 110 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
0-6360
2069 connection()->drag()->handlePosition(this, event);-
2070 } else if (event->type == atom(QXcbAtom::XdndLeave)) {
never executed: end of block
event->type ==...om::XdndLeave)Description
TRUEnever evaluated
FALSEevaluated 6360 times by 110 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
0-6360
2071 connection()->drag()->handleLeave(this, event);-
2072 } else if (event->type == atom(QXcbAtom::XdndDrop)) {
never executed: end of block
event->type ==...tom::XdndDrop)Description
TRUEnever evaluated
FALSEevaluated 6360 times by 110 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
0-6360
2073 connection()->drag()->handleDrop(this, event);-
2074#endif-
2075 } else if (event->type == atom(QXcbAtom::_XEMBED)) {
never executed: end of block
event->type ==...Atom::_XEMBED)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSystemTrayIcon
FALSEevaluated 6359 times by 110 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
0-6359
2076 handleXEmbedMessage(event);-
2077 } else if (event->type == atom(QXcbAtom::_NET_ACTIVE_WINDOW)) {
executed 1 time by 1 test: end of block
Executed by:
  • tst_QSystemTrayIcon
event->type ==...ACTIVE_WINDOW)Description
TRUEevaluated 553 times by 56 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 5806 times by 110 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
1-5806
2078 doFocusIn();-
2079 } else if (event->type == atom(QXcbAtom::MANAGER)
executed 553 times by 56 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • ...
event->type ==...Atom::MANAGER)Description
TRUEnever evaluated
FALSEevaluated 5806 times by 110 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
0-5806
2080 || event->type == atom(QXcbAtom::_NET_WM_STATE)
event->type ==..._NET_WM_STATE)Description
TRUEevaluated 5799 times by 110 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
FALSEevaluated 7 times by 3 tests
Evaluated by:
  • tst_QListView
  • tst_QMdiSubWindow
  • tst_QWidget
7-5799
2081 || event->type == atom(QXcbAtom::WM_CHANGE_STATE)) {
event->type ==..._CHANGE_STATE)Description
TRUEevaluated 7 times by 3 tests
Evaluated by:
  • tst_QListView
  • tst_QMdiSubWindow
  • tst_QWidget
FALSEnever evaluated
0-7
2082 // Ignore _NET_WM_STATE, MANAGER which are relate to tray icons-
2083 // and other messages.-
2084 } else if (event->type == atom(QXcbAtom::_COMPIZ_DECOR_PENDING)
executed 5806 times by 110 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
event->type ==...DECOR_PENDING)Description
TRUEnever evaluated
FALSEnever evaluated
0-5806
2085 || event->type == atom(QXcbAtom::_COMPIZ_DECOR_REQUEST)
event->type ==...DECOR_REQUEST)Description
TRUEnever evaluated
FALSEnever evaluated
0
2086 || event->type == atom(QXcbAtom::_COMPIZ_DECOR_DELETE_PIXMAP)
event->type ==...DELETE_PIXMAP)Description
TRUEnever evaluated
FALSEnever evaluated
0
2087 || event->type == atom(QXcbAtom::_COMPIZ_TOOLKIT_ACTION)
event->type ==...OOLKIT_ACTION)Description
TRUEnever evaluated
FALSEnever evaluated
0
2088 || event->type == atom(QXcbAtom::_GTK_LOAD_ICONTHEMES)) {
event->type ==...AD_ICONTHEMES)Description
TRUEnever evaluated
FALSEnever evaluated
0
2089 //silence the _COMPIZ and _GTK messages for now-
2090 } else {
never executed: end of block
0
2091 qWarning() << "QXcbWindow: Unhandled client message:" << connection()->atomName(event->type);-
2092 }
never executed: end of block
0
2093}-
2094-
2095void QXcbWindow::handleConfigureNotifyEvent(const xcb_configure_notify_event_t *event)-
2096{-
2097 bool fromSendEvent = (event->response_type & 0x80);-
2098 QPoint pos(event->x, event->y);-
2099 if (!parent() && !fromSendEvent) {
!parent()Description
TRUEevaluated 5733 times by 109 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
FALSEevaluated 23 times by 5 tests
Evaluated by:
  • tst_QDialog
  • tst_QMdiArea
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
!fromSendEventDescription
TRUEevaluated 3467 times by 109 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
FALSEevaluated 2266 times by 102 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
23-5733
2100 // Do not trust the position, query it instead.-
2101 xcb_translate_coordinates_cookie_t cookie = xcb_translate_coordinates(xcb_connection(), xcb_window(),-
2102 xcbScreen()->root(), 0, 0);-
2103 xcb_translate_coordinates_reply_t *reply = xcb_translate_coordinates_reply(xcb_connection(), cookie, NULL);-
2104 if (reply) {
replyDescription
TRUEevaluated 3467 times by 109 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
0-3467
2105 pos.setX(reply->dst_x);-
2106 pos.setY(reply->dst_y);-
2107 free(reply);-
2108 }
executed 3467 times by 109 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
3467
2109 }
executed 3467 times by 109 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
3467
2110-
2111 const QRect actualGeometry = QRect(pos, QSize(event->width, event->height));-
2112 QPlatformScreen *newScreen = parent() ? parent()->screen() : screenForGeometry(actualGeometry);
parent()Description
TRUEevaluated 23 times by 5 tests
Evaluated by:
  • tst_QDialog
  • tst_QMdiArea
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
FALSEevaluated 5733 times by 109 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
23-5733
2113 if (!newScreen)
!newScreenDescription
TRUEnever evaluated
FALSEevaluated 5756 times by 109 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
0-5756
2114 return;
never executed: return;
0
2115-
2116 // Persist the actual geometry so that QWindow::geometry() can-
2117 // be queried in the resize event.-
2118 QPlatformWindow::setGeometry(actualGeometry);-
2119-
2120 // FIXME: In the case of the requestedGeometry not matching the actualGeometry due-
2121 // to e.g. the window manager applying restrictions to the geometry, the application-
2122 // will never see a move/resize event if the actualGeometry is the same as the current-
2123 // geometry, and may think the requested geometry was fulfilled.-
2124 QWindowSystemInterface::handleGeometryChange(window(), actualGeometry);-
2125-
2126 // QPlatformScreen::screen() is updated asynchronously, so we can't compare it-
2127 // with the newScreen. Just send the WindowScreenChanged event and QGuiApplication-
2128 // will make the comparison later.-
2129 QWindowSystemInterface::handleWindowScreenChanged(window(), newScreen->screen());-
2130-
2131 // Send the synthetic expose event on resize only when the window is shrinked,-
2132 // because the "XCB_GRAVITY_NORTH_WEST" flag doesn't send it automatically.-
2133 if (!m_oldWindowSize.isEmpty()
!m_oldWindowSize.isEmpty()Description
TRUEevaluated 3362 times by 104 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 2394 times by 109 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
2394-3362
2134 && (actualGeometry.width() < m_oldWindowSize.width()
actualGeometry...owSize.width()Description
TRUEevaluated 97 times by 9 tests
Evaluated by:
  • tst_QApplication
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
FALSEevaluated 3265 times by 104 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
97-3265
2135 || actualGeometry.height() < m_oldWindowSize.height())) {
actualGeometry...wSize.height()Description
TRUEevaluated 12 times by 4 tests
Evaluated by:
  • tst_QFiledialog
  • tst_QSplitter
  • tst_QWidget
  • tst_QWindow
FALSEevaluated 3253 times by 104 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
12-3253
2136 QWindowSystemInterface::handleExposeEvent(window(), QRegion(0, 0, actualGeometry.width(), actualGeometry.height()));-
2137 }
executed 109 times by 11 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QDockWidget
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QSplitter
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
109
2138 m_oldWindowSize = actualGeometry.size();-
2139-
2140 if (m_usingSyncProtocol && m_syncState == SyncReceived)
m_usingSyncProtocolDescription
TRUEevaluated 5756 times by 109 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
m_syncState == SyncReceivedDescription
TRUEnever evaluated
FALSEevaluated 5756 times by 109 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
0-5756
2141 m_syncState = SyncAndConfigureReceived;
never executed: m_syncState = SyncAndConfigureReceived;
0
2142-
2143 m_dirtyFrameMargins = true;-
2144}
executed 5756 times by 109 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
5756
2145-
2146bool QXcbWindow::isExposed() const-
2147{-
2148 return m_mapped;
executed 5348 times by 104 tests: return m_mapped;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
5348
2149}-
2150-
2151bool QXcbWindow::isEmbedded(const QPlatformWindow *parentWindow) const-
2152{-
2153 if (!m_embedded)
!m_embeddedDescription
TRUEevaluated 16231 times by 84 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • ...
FALSEnever evaluated
0-16231
2154 return false;
executed 16231 times by 84 tests: return false;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • ...
16231
2155-
2156 return parentWindow ? (parentWindow == parent()) : true;
never executed: return parentWindow ? (parentWindow == parent()) : true;
0
2157}-
2158-
2159QPoint QXcbWindow::mapToGlobal(const QPoint &pos) const-
2160{-
2161 if (!m_embedded)
!m_embeddedDescription
TRUEnever evaluated
FALSEnever evaluated
0
2162 return pos;
never executed: return pos;
0
2163-
2164 QPoint ret;-
2165 xcb_translate_coordinates_cookie_t cookie =-
2166 xcb_translate_coordinates(xcb_connection(), xcb_window(), xcbScreen()->root(),-
2167 pos.x(), pos.y());-
2168 xcb_translate_coordinates_reply_t *reply =-
2169 xcb_translate_coordinates_reply(xcb_connection(), cookie, NULL);-
2170 if (reply) {
replyDescription
TRUEnever evaluated
FALSEnever evaluated
0
2171 ret.setX(reply->dst_x);-
2172 ret.setY(reply->dst_y);-
2173 free(reply);-
2174 }
never executed: end of block
0
2175-
2176 return ret;
never executed: return ret;
0
2177}-
2178-
2179QPoint QXcbWindow::mapFromGlobal(const QPoint &pos) const-
2180{-
2181 if (!m_embedded)
!m_embeddedDescription
TRUEnever evaluated
FALSEnever evaluated
0
2182 return pos;
never executed: return pos;
0
2183-
2184 QPoint ret;-
2185 xcb_translate_coordinates_cookie_t cookie =-
2186 xcb_translate_coordinates(xcb_connection(), xcbScreen()->root(), xcb_window(),-
2187 pos.x(), pos.y());-
2188 xcb_translate_coordinates_reply_t *reply =-
2189 xcb_translate_coordinates_reply(xcb_connection(), cookie, NULL);-
2190 if (reply) {
replyDescription
TRUEnever evaluated
FALSEnever evaluated
0
2191 ret.setX(reply->dst_x);-
2192 ret.setY(reply->dst_y);-
2193 free(reply);-
2194 }
never executed: end of block
0
2195-
2196 return ret;
never executed: return ret;
0
2197}-
2198-
2199void QXcbWindow::handleMapNotifyEvent(const xcb_map_notify_event_t *event)-
2200{-
2201 if (event->window == m_window) {
event->window == m_windowDescription
TRUEevaluated 2478 times by 104 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEnever evaluated
0-2478
2202 m_mapped = true;-
2203 if (m_deferredActivation)
m_deferredActivationDescription
TRUEevaluated 388 times by 53 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGroupBox
  • tst_QGuiApplication
  • ...
FALSEevaluated 2090 times by 93 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • ...
388-2090
2204 requestActivateWindow();
executed 388 times by 53 tests: requestActivateWindow();
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGroupBox
  • tst_QGuiApplication
  • ...
388
2205-
2206 QWindowSystemInterface::handleExposeEvent(window(), QRect(QPoint(), geometry().size()));-
2207 }
executed 2478 times by 104 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2478
2208}
executed 2478 times by 104 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2478
2209-
2210void QXcbWindow::handleUnmapNotifyEvent(const xcb_unmap_notify_event_t *event)-
2211{-
2212 if (event->window == m_window) {
event->window == m_windowDescription
TRUEevaluated 97 times by 30 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QLabel
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QScrollBar
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QWidget
  • ...
FALSEnever evaluated
0-97
2213 m_mapped = false;-
2214 QWindowSystemInterface::handleExposeEvent(window(), QRegion());-
2215 }
executed 97 times by 30 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QLabel
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QScrollBar
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QWidget
  • ...
97
2216}
executed 97 times by 30 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QLabel
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QScrollBar
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QWidget
  • ...
97
2217-
2218void QXcbWindow::handleButtonPressEvent(int event_x, int event_y, int root_x, int root_y,-
2219 int detail, Qt::KeyboardModifiers modifiers, xcb_timestamp_t timestamp, Qt::MouseEventSource source)-
2220{-
2221 const bool isWheel = detail >= 4 && detail <= 7;
detail >= 4Description
TRUEnever evaluated
FALSEnever evaluated
detail <= 7Description
TRUEnever evaluated
FALSEnever evaluated
0
2222 if (!isWheel && window() != QGuiApplication::focusWindow()) {
!isWheelDescription
TRUEnever evaluated
FALSEnever evaluated
window() != QG...:focusWindow()Description
TRUEnever evaluated
FALSEnever evaluated
0
2223 QWindow *w = static_cast<QWindowPrivate *>(QObjectPrivate::get(window()))->eventReceiver();-
2224 if (!(w->flags() & (Qt::WindowDoesNotAcceptFocus | Qt::BypassWindowManagerHint))
!(w->flags() &...wManagerHint))Description
TRUEnever evaluated
FALSEnever evaluated
0
2225 && w->type() != Qt::ToolTip
w->type() != Qt::ToolTipDescription
TRUEnever evaluated
FALSEnever evaluated
0
2226 && w->type() != Qt::Popup) {
w->type() != Qt::PopupDescription
TRUEnever evaluated
FALSEnever evaluated
0
2227 w->requestActivate();-
2228 }
never executed: end of block
0
2229 }
never executed: end of block
0
2230-
2231 updateNetWmUserTime(timestamp);-
2232-
2233 if (m_embedded) {
m_embeddedDescription
TRUEnever evaluated
FALSEnever evaluated
0
2234 if (window() != QGuiApplication::focusWindow()) {
window() != QG...:focusWindow()Description
TRUEnever evaluated
FALSEnever evaluated
0
2235 const QXcbWindow *container = static_cast<const QXcbWindow *>(parent());-
2236 Q_ASSERT(container != 0);-
2237-
2238 sendXEmbedMessage(container->xcb_window(), XEMBED_REQUEST_FOCUS);-
2239 }
never executed: end of block
0
2240 }
never executed: end of block
0
2241 QPoint local(event_x, event_y);-
2242 QPoint global(root_x, root_y);-
2243-
2244 if (isWheel) {
isWheelDescription
TRUEnever evaluated
FALSEnever evaluated
0
2245 if (!connection()->isAtLeastXI21()) {
!connection()->isAtLeastXI21()Description
TRUEnever evaluated
FALSEnever evaluated
0
2246 // Logic borrowed from qapplication_x11.cpp-
2247 int delta = 120 * ((detail == 4 || detail == 6) ? 1 : -1);-
2248 bool hor = (((detail == 4 || detail == 5)
detail == 4Description
TRUEnever evaluated
FALSEnever evaluated
detail == 5Description
TRUEnever evaluated
FALSEnever evaluated
0
2249 && (modifiers & Qt::AltModifier))
(modifiers & Qt::AltModifier)Description
TRUEnever evaluated
FALSEnever evaluated
0
2250 || (detail == 6 || detail == 7));
detail == 6Description
TRUEnever evaluated
FALSEnever evaluated
detail == 7Description
TRUEnever evaluated
FALSEnever evaluated
0
2251-
2252 QWindowSystemInterface::handleWheelEvent(window(), timestamp,-
2253 local, global, delta, hor ? Qt::Horizontal : Qt::Vertical, modifiers);-
2254 }
never executed: end of block
0
2255 return;
never executed: return;
0
2256 }-
2257-
2258 connection()->setMousePressWindow(this);-
2259-
2260 handleMouseEvent(timestamp, local, global, modifiers, source);-
2261}
never executed: end of block
0
2262-
2263void QXcbWindow::handleButtonReleaseEvent(int event_x, int event_y, int root_x, int root_y,-
2264 int detail, Qt::KeyboardModifiers modifiers, xcb_timestamp_t timestamp, Qt::MouseEventSource source)-
2265{-
2266 QPoint local(event_x, event_y);-
2267 QPoint global(root_x, root_y);-
2268-
2269 if (detail >= 4 && detail <= 7) {
detail >= 4Description
TRUEnever evaluated
FALSEnever evaluated
detail <= 7Description
TRUEnever evaluated
FALSEnever evaluated
0
2270 // mouse wheel, handled in handleButtonPressEvent()-
2271 return;
never executed: return;
0
2272 }-
2273-
2274 if (connection()->buttons() == Qt::NoButton)
connection()->...= Qt::NoButtonDescription
TRUEnever evaluated
FALSEnever evaluated
0
2275 connection()->setMousePressWindow(Q_NULLPTR);
never executed: connection()->setMousePressWindow(nullptr);
0
2276-
2277 handleMouseEvent(timestamp, local, global, modifiers, source);-
2278}
never executed: end of block
0
2279-
2280static inline bool doCheckUnGrabAncestor(QXcbConnection *conn)-
2281{-
2282 /* Checking for XCB_NOTIFY_MODE_GRAB and XCB_NOTIFY_DETAIL_ANCESTOR prevents unwanted-
2283 * enter/leave events on AwesomeWM on mouse button press. It also ignores duplicated-
2284 * enter/leave events on Alt+Tab switching on some WMs with XInput2 events.-
2285 * Without XInput2 events the (Un)grabAncestor cannot be checked when mouse button is-
2286 * not pressed, otherwise (e.g. on Alt+Tab) it can igonre important enter/leave events.-
2287 */-
2288 if (conn) {
connDescription
TRUEevaluated 854 times by 70 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 17 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QGraphicsScene
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWindow
17-854
2289 const bool mouseButtonsPressed = (conn->buttons() != Qt::NoButton);-
2290#ifdef XCB_USE_XINPUT22-
2291 return mouseButtonsPressed || (conn->isAtLeastXI22() && conn->xi2MouseEvents());
executed 854 times by 70 tests: return mouseButtonsPressed || (conn->isAtLeastXI22() && conn->xi2MouseEvents());
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
  • ...
854
2292#else-
2293 return mouseButtonsPressed;-
2294#endif-
2295 }-
2296 return true;
executed 17 times by 8 tests: return true;
Executed by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QGraphicsScene
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWindow
17
2297}-
2298-
2299static bool ignoreLeaveEvent(quint8 mode, quint8 detail, QXcbConnection *conn = Q_NULLPTR)-
2300{-
2301 return ((doCheckUnGrabAncestor(conn)
executed 141 times by 27 tests: return ((doCheckUnGrabAncestor(conn) && mode == XCB_NOTIFY_MODE_GRAB && detail == XCB_NOTIFY_DETAIL_ANCESTOR) || (mode == XCB_NOTIFY_MODE_UNGRAB && detail == XCB_NOTIFY_DETAIL_INFERIOR) || detail == XCB_NOTIFY_DETAIL_VIRTUAL || detail == XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL);
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
  • ...
141
2302 && mode == XCB_NOTIFY_MODE_GRAB && detail == XCB_NOTIFY_DETAIL_ANCESTOR)
executed 141 times by 27 tests: return ((doCheckUnGrabAncestor(conn) && mode == XCB_NOTIFY_MODE_GRAB && detail == XCB_NOTIFY_DETAIL_ANCESTOR) || (mode == XCB_NOTIFY_MODE_UNGRAB && detail == XCB_NOTIFY_DETAIL_INFERIOR) || detail == XCB_NOTIFY_DETAIL_VIRTUAL || detail == XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL);
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
  • ...
141
2303 || (mode == XCB_NOTIFY_MODE_UNGRAB && detail == XCB_NOTIFY_DETAIL_INFERIOR)
executed 141 times by 27 tests: return ((doCheckUnGrabAncestor(conn) && mode == XCB_NOTIFY_MODE_GRAB && detail == XCB_NOTIFY_DETAIL_ANCESTOR) || (mode == XCB_NOTIFY_MODE_UNGRAB && detail == XCB_NOTIFY_DETAIL_INFERIOR) || detail == XCB_NOTIFY_DETAIL_VIRTUAL || detail == XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL);
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
  • ...
141
2304 || detail == XCB_NOTIFY_DETAIL_VIRTUAL
executed 141 times by 27 tests: return ((doCheckUnGrabAncestor(conn) && mode == XCB_NOTIFY_MODE_GRAB && detail == XCB_NOTIFY_DETAIL_ANCESTOR) || (mode == XCB_NOTIFY_MODE_UNGRAB && detail == XCB_NOTIFY_DETAIL_INFERIOR) || detail == XCB_NOTIFY_DETAIL_VIRTUAL || detail == XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL);
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
  • ...
141
2305 || detail == XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL);
executed 141 times by 27 tests: return ((doCheckUnGrabAncestor(conn) && mode == XCB_NOTIFY_MODE_GRAB && detail == XCB_NOTIFY_DETAIL_ANCESTOR) || (mode == XCB_NOTIFY_MODE_UNGRAB && detail == XCB_NOTIFY_DETAIL_INFERIOR) || detail == XCB_NOTIFY_DETAIL_VIRTUAL || detail == XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL);
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
  • ...
141
2306}-
2307-
2308static bool ignoreEnterEvent(quint8 mode, quint8 detail, QXcbConnection *conn = Q_NULLPTR)-
2309{-
2310 return ((doCheckUnGrabAncestor(conn)
executed 730 times by 70 tests: return ((doCheckUnGrabAncestor(conn) && mode == XCB_NOTIFY_MODE_UNGRAB && detail == XCB_NOTIFY_DETAIL_ANCESTOR) || (mode != XCB_NOTIFY_MODE_NORMAL && mode != XCB_NOTIFY_MODE_UNGRAB) || detail == XCB_NOTIFY_DETAIL_VIRTUAL || detail == XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL);
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
  • ...
730
2311 && mode == XCB_NOTIFY_MODE_UNGRAB && detail == XCB_NOTIFY_DETAIL_ANCESTOR)
executed 730 times by 70 tests: return ((doCheckUnGrabAncestor(conn) && mode == XCB_NOTIFY_MODE_UNGRAB && detail == XCB_NOTIFY_DETAIL_ANCESTOR) || (mode != XCB_NOTIFY_MODE_NORMAL && mode != XCB_NOTIFY_MODE_UNGRAB) || detail == XCB_NOTIFY_DETAIL_VIRTUAL || detail == XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL);
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
  • ...
730
2312 || (mode != XCB_NOTIFY_MODE_NORMAL && mode != XCB_NOTIFY_MODE_UNGRAB)
executed 730 times by 70 tests: return ((doCheckUnGrabAncestor(conn) && mode == XCB_NOTIFY_MODE_UNGRAB && detail == XCB_NOTIFY_DETAIL_ANCESTOR) || (mode != XCB_NOTIFY_MODE_NORMAL && mode != XCB_NOTIFY_MODE_UNGRAB) || detail == XCB_NOTIFY_DETAIL_VIRTUAL || detail == XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL);
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
  • ...
730
2313 || detail == XCB_NOTIFY_DETAIL_VIRTUAL
executed 730 times by 70 tests: return ((doCheckUnGrabAncestor(conn) && mode == XCB_NOTIFY_MODE_UNGRAB && detail == XCB_NOTIFY_DETAIL_ANCESTOR) || (mode != XCB_NOTIFY_MODE_NORMAL && mode != XCB_NOTIFY_MODE_UNGRAB) || detail == XCB_NOTIFY_DETAIL_VIRTUAL || detail == XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL);
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
  • ...
730
2314 || detail == XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL);
executed 730 times by 70 tests: return ((doCheckUnGrabAncestor(conn) && mode == XCB_NOTIFY_MODE_UNGRAB && detail == XCB_NOTIFY_DETAIL_ANCESTOR) || (mode != XCB_NOTIFY_MODE_NORMAL && mode != XCB_NOTIFY_MODE_UNGRAB) || detail == XCB_NOTIFY_DETAIL_VIRTUAL || detail == XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL);
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
  • ...
730
2315}-
2316-
2317class EnterEventChecker-
2318{-
2319public:-
2320 bool checkEvent(xcb_generic_event_t *event)-
2321 {-
2322 if (!event)
!eventDescription
TRUEevaluated 2525 times by 27 tests
Evaluated 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
  • ...
FALSEevaluated 1056 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGridLayout
  • tst_QListView
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QOpenGLWidget
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWindow
  • tst_QWizard
1056-2525
2323 return false;
executed 2525 times by 27 tests: return false;
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
  • ...
2525
2324 if ((event->response_type & ~0x80) != XCB_ENTER_NOTIFY)
(event->respon... & ~0x80) != 7Description
TRUEevaluated 1039 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGridLayout
  • tst_QListView
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QOpenGLWidget
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWindow
  • tst_QWizard
FALSEevaluated 17 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QGraphicsScene
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWindow
17-1039
2325 return false;
executed 1039 times by 24 tests: return false;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGridLayout
  • tst_QListView
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QOpenGLWidget
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWindow
  • tst_QWizard
1039
2326-
2327 xcb_enter_notify_event_t *enter = (xcb_enter_notify_event_t *)event;-
2328 if (ignoreEnterEvent(enter->mode, enter->detail))
ignoreEnterEve...enter->detail)Description
TRUEevaluated 8 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QMdiSubWindow
  • tst_QMenu
FALSEevaluated 9 times by 5 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QGraphicsScene
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWindow
8-9
2329 return false;
executed 8 times by 3 tests: return false;
Executed by:
  • tst_QAccessibility
  • tst_QMdiSubWindow
  • tst_QMenu
8
2330-
2331 return true;
executed 9 times by 5 tests: return true;
Executed by:
  • tst_QFileDialog2
  • tst_QGraphicsScene
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWindow
9
2332 }-
2333};-
2334-
2335void QXcbWindow::handleEnterNotifyEvent(int event_x, int event_y, int root_x, int root_y,-
2336 quint8 mode, quint8 detail, xcb_timestamp_t timestamp)-
2337{-
2338 connection()->setTime(timestamp);-
2339#ifdef XCB_USE_XINPUT21-
2340 connection()->handleEnterEvent();-
2341#endif-
2342-
2343 const QPoint global = QPoint(root_x, root_y);-
2344-
2345 if (ignoreEnterEvent(mode, detail, connection()) || connection()->mousePressWindow())
ignoreEnterEve... connection())Description
TRUEevaluated 65 times by 18 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QToolButton
  • tst_QWidget
  • tst_QWidgetAction
  • tst_QWindow
FALSEevaluated 648 times by 66 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_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
  • ...
connection()->...ePressWindow()Description
TRUEnever evaluated
FALSEevaluated 648 times by 66 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_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
  • ...
0-648
2346 return;
executed 65 times by 18 tests: return;
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QToolButton
  • tst_QWidget
  • tst_QWidgetAction
  • tst_QWindow
65
2347-
2348 const QPoint local(event_x, event_y);-
2349 QWindowSystemInterface::handleEnterEvent(window(), local, global);-
2350}
executed 648 times by 66 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_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
  • ...
648
2351-
2352void QXcbWindow::handleLeaveNotifyEvent(int root_x, int root_y,-
2353 quint8 mode, quint8 detail, xcb_timestamp_t timestamp)-
2354{-
2355 connection()->setTime(timestamp);-
2356-
2357 if (ignoreLeaveEvent(mode, detail, connection()) || connection()->mousePressWindow())
ignoreLeaveEve... connection())Description
TRUEnever evaluated
FALSEevaluated 141 times by 27 tests
Evaluated 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
  • ...
connection()->...ePressWindow()Description
TRUEnever evaluated
FALSEevaluated 141 times by 27 tests
Evaluated 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
  • ...
0-141
2358 return;
never executed: return;
0
2359-
2360 EnterEventChecker checker;-
2361 xcb_enter_notify_event_t *enter = (xcb_enter_notify_event_t *)connection()->checkEvent(checker);-
2362 QXcbWindow *enterWindow = enter ? connection()->platformWindowFromId(enter->event) : 0;
enterDescription
TRUEevaluated 9 times by 5 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QGraphicsScene
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWindow
FALSEevaluated 132 times by 27 tests
Evaluated 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
  • ...
9-132
2363-
2364 if (enterWindow) {
enterWindowDescription
TRUEevaluated 9 times by 5 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QGraphicsScene
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWindow
FALSEevaluated 132 times by 27 tests
Evaluated 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
  • ...
9-132
2365 QPoint local(enter->event_x, enter->event_y);-
2366 QPoint global = QPoint(root_x, root_y);-
2367 QWindowSystemInterface::handleEnterLeaveEvent(enterWindow->window(), window(), local, global);-
2368 } else {
executed 9 times by 5 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QGraphicsScene
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWindow
9
2369 QWindowSystemInterface::handleLeaveEvent(window());-
2370 }
executed 132 times by 27 tests: end of block
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
  • ...
132
2371-
2372 free(enter);-
2373}
executed 141 times by 27 tests: end of block
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
  • ...
141
2374-
2375void QXcbWindow::handleMotionNotifyEvent(int event_x, int event_y, int root_x, int root_y,-
2376 Qt::KeyboardModifiers modifiers, xcb_timestamp_t timestamp, Qt::MouseEventSource source)-
2377{-
2378 QPoint local(event_x, event_y);-
2379 QPoint global(root_x, root_y);-
2380-
2381 // "mousePressWindow" can be NULL i.e. if a window will be grabbed or unmapped, so set it again here.-
2382 // Unset "mousePressWindow" when mouse button isn't pressed - in some cases the release event won't arrive.-
2383 const bool isMouseButtonPressed = (connection()->buttons() != Qt::NoButton);-
2384 const bool hasMousePressWindow = (connection()->mousePressWindow() != Q_NULLPTR);-
2385 if (isMouseButtonPressed && !hasMousePressWindow)
isMouseButtonPressedDescription
TRUEnever evaluated
FALSEevaluated 453 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
!hasMousePressWindowDescription
TRUEnever evaluated
FALSEnever evaluated
0-453
2386 connection()->setMousePressWindow(this);
never executed: connection()->setMousePressWindow(this);
0
2387 else if (hasMousePressWindow && !isMouseButtonPressed)
hasMousePressWindowDescription
TRUEnever evaluated
FALSEevaluated 453 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
!isMouseButtonPressedDescription
TRUEnever evaluated
FALSEnever evaluated
0-453
2388 connection()->setMousePressWindow(Q_NULLPTR);
never executed: connection()->setMousePressWindow(nullptr);
0
2389-
2390 handleMouseEvent(timestamp, local, global, modifiers, source);-
2391}
executed 453 times by 17 tests: end of block
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
453
2392-
2393// Handlers for plain xcb events. Used only when XI 2.2 or newer is not available.-
2394void QXcbWindow::handleButtonPressEvent(const xcb_button_press_event_t *event)-
2395{-
2396 Qt::KeyboardModifiers modifiers = connection()->keyboard()->translateModifiers(event->state);-
2397 handleButtonPressEvent(event->event_x, event->event_y, event->root_x, event->root_y, event->detail,-
2398 modifiers, event->time);-
2399}
never executed: end of block
0
2400-
2401void QXcbWindow::handleButtonReleaseEvent(const xcb_button_release_event_t *event)-
2402{-
2403 Qt::KeyboardModifiers modifiers = connection()->keyboard()->translateModifiers(event->state);-
2404 handleButtonReleaseEvent(event->event_x, event->event_y, event->root_x, event->root_y, event->detail,-
2405 modifiers, event->time);-
2406}
never executed: end of block
0
2407-
2408void QXcbWindow::handleMotionNotifyEvent(const xcb_motion_notify_event_t *event)-
2409{-
2410 Qt::KeyboardModifiers modifiers = connection()->keyboard()->translateModifiers(event->state);-
2411 handleMotionNotifyEvent(event->event_x, event->event_y, event->root_x, event->root_y, modifiers, event->time);-
2412}
never executed: end of block
0
2413-
2414#ifdef XCB_USE_XINPUT22-
2415static inline int fixed1616ToInt(FP1616 val)-
2416{-
2417 return int((qreal(val >> 16)) + (val & 0xFFFF) / (qreal)0xFFFF);
executed 4946 times by 70 tests: return int((qreal(val >> 16)) + (val & 0xFFFF) / (qreal)0xFFFF);
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
  • ...
4946
2418}-
2419-
2420// With XI 2.2+ press/release/motion comes here instead of the above handlers.-
2421void QXcbWindow::handleXIMouseEvent(xcb_ge_event_t *event, Qt::MouseEventSource source)-
2422{-
2423 QXcbConnection *conn = connection();-
2424 xXIDeviceEvent *ev = reinterpret_cast<xXIDeviceEvent *>(event);-
2425 const Qt::KeyboardModifiers modifiers = conn->keyboard()->translateModifiers(ev->mods.effective_mods);-
2426 const int event_x = fixed1616ToInt(ev->event_x);-
2427 const int event_y = fixed1616ToInt(ev->event_y);-
2428 const int root_x = fixed1616ToInt(ev->root_x);-
2429 const int root_y = fixed1616ToInt(ev->root_y);-
2430-
2431 conn->keyboard()->updateXKBStateFromXI(&ev->mods, &ev->group);-
2432-
2433 const Qt::MouseButton button = conn->xiToQtMouseButton(ev->detail);-
2434-
2435 if (ev->buttons_len > 0) {
ev->buttons_len > 0Description
TRUEevaluated 453 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-453
2436 unsigned char *buttonMask = (unsigned char *) &ev[1];-
2437 for (int i = 1; i <= 15; ++i)
i <= 15Description
TRUEevaluated 6795 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 453 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
453-6795
2438 conn->setButton(conn->translateMouseButton(i), XIMaskIsSet(buttonMask, i));
executed 6795 times by 17 tests: conn->setButton(conn->translateMouseButton(i), (((unsigned char*)(buttonMask))[(i)>>3] & (1 << ((i) & 7))));
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
6795
2439 }
executed 453 times by 17 tests: end of block
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
453
2440-
2441 const char *sourceName = 0;-
2442 if (Q_UNLIKELY(lcQpaXInputEvents().isDebugEnabled())) {
__builtin_expe...led()), false)Description
TRUEnever evaluated
FALSEevaluated 453 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
0-453
2443 const QMetaObject *metaObject = qt_getEnumMetaObject(source);-
2444 const QMetaEnum me = metaObject->enumerator(metaObject->indexOfEnumerator(qt_getEnumName(source)));-
2445 sourceName = me.valueToKey(source);-
2446 }
never executed: end of block
0
2447-
2448 switch (ev->evtype) {-
2449 case XI_ButtonPress:
never executed: case 4:
0
2450 if (Q_UNLIKELY(lcQpaXInputEvents().isDebugEnabled()))
__builtin_expe...led()), false)Description
TRUEnever evaluated
FALSEnever evaluated
0
2451 qCDebug(lcQpaXInputEvents, "XI2 mouse press, button %d, time %d, source %s", button, ev->time, sourceName);
never executed: QMessageLogger(__FILE__, 2451, __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 mouse press, button %d, time %d, source %s", button, ev->time, sourceName);
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
2452 conn->setButton(button, true);-
2453 handleButtonPressEvent(event_x, event_y, root_x, root_y, ev->detail, modifiers, ev->time, source);-
2454 break;
never executed: break;
0
2455 case XI_ButtonRelease:
never executed: case 5:
0
2456 if (Q_UNLIKELY(lcQpaXInputEvents().isDebugEnabled()))
__builtin_expe...led()), false)Description
TRUEnever evaluated
FALSEnever evaluated
0
2457 qCDebug(lcQpaXInputEvents, "XI2 mouse release, button %d, time %d, source %s", button, ev->time, sourceName);
never executed: QMessageLogger(__FILE__, 2457, __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 mouse release, button %d, time %d, source %s", button, ev->time, sourceName);
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
2458 conn->setButton(button, false);-
2459 handleButtonReleaseEvent(event_x, event_y, root_x, root_y, ev->detail, modifiers, ev->time, source);-
2460 break;
never executed: break;
0
2461 case XI_Motion:
executed 453 times by 17 tests: case 6:
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
453
2462 if (Q_UNLIKELY(lcQpaXInputEvents().isDebugEnabled()))
__builtin_expe...led()), false)Description
TRUEnever evaluated
FALSEevaluated 453 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
0-453
2463 qCDebug(lcQpaXInputEvents, "XI2 mouse motion %d,%d, time %d, source %s", event_x, event_y, ev->time, sourceName);
never executed: QMessageLogger(__FILE__, 2463, __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("XI2 mouse motion %d,%d, time %d, source %s", event_x, event_y, ev->time, sourceName);
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
2464 handleMotionNotifyEvent(event_x, event_y, root_x, root_y, modifiers, ev->time, source);-
2465 break;
executed 453 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
453
2466 default:
never executed: default:
0
2467 qWarning() << "Unrecognized XI2 mouse event" << ev->evtype;-
2468 break;
never executed: break;
0
2469 }-
2470}-
2471-
2472// With XI 2.2+ enter/leave comes here and are blocked in plain xcb events-
2473void QXcbWindow::handleXIEnterLeave(xcb_ge_event_t *event)-
2474{-
2475 xXIEnterEvent *ev = reinterpret_cast<xXIEnterEvent *>(event);-
2476-
2477 // Compare the window with current mouse grabber to prevent deliver events to any other windows.-
2478 // If leave event occurs and the window is under mouse - allow to deliver the leave event.-
2479 QXcbWindow *mouseGrabber = connection()->mouseGrabber();-
2480 if (mouseGrabber && mouseGrabber != this
mouseGrabberDescription
TRUEevaluated 94 times by 16 tests
Evaluated by:
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QWidget
  • tst_QWidgetAction
FALSEevaluated 772 times by 66 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
  • ...
mouseGrabber != thisDescription
TRUEevaluated 24 times by 8 tests
Evaluated by:
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QToolButton
FALSEevaluated 70 times by 16 tests
Evaluated by:
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QWidget
  • tst_QWidgetAction
24-772
2481 && (ev->evtype != XI_Leave || QGuiApplicationPrivate::currentMouseWindow != window())) {
ev->evtype != 8Description
TRUEevaluated 6 times by 4 tests
Evaluated by:
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QMenu
FALSEevaluated 18 times by 8 tests
Evaluated by:
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QToolButton
QGuiApplicatio...ow != window()Description
TRUEevaluated 6 times by 4 tests
Evaluated by:
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QMdiSubWindow
  • tst_QMenu
FALSEevaluated 12 times by 8 tests
Evaluated by:
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QToolButton
6-18
2482 return;
executed 12 times by 5 tests: return;
Executed by:
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QMdiSubWindow
  • tst_QMenu
12
2483 }-
2484-
2485 const int root_x = fixed1616ToInt(ev->root_x);-
2486 const int root_y = fixed1616ToInt(ev->root_y);-
2487-
2488 switch (ev->evtype) {-
2489 case XI_Enter: {
executed 713 times by 70 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
  • ...
713
2490 const int event_x = fixed1616ToInt(ev->event_x);-
2491 const int event_y = fixed1616ToInt(ev->event_y);-
2492 qCDebug(lcQpaXInput, "XI2 mouse enter %d,%d, mode %d, detail %d, time %d", event_x, event_y, ev->mode, ev->detail, ev->time);
never executed: QMessageLogger(__FILE__, 2492, __PRETTY_FUNCTION__, lcQpaXInput().categoryName()).debug("XI2 mouse enter %d,%d, mode %d, detail %d, time %d", event_x, event_y, ev->mode, ev->detail, ev->time);
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 713 times by 70 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-713
2493 handleEnterNotifyEvent(event_x, event_y, root_x, root_y, ev->mode, ev->detail, ev->time);-
2494 break;
executed 713 times by 70 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
  • ...
713
2495 }-
2496 case XI_Leave:
executed 141 times by 27 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
  • ...
141
2497 qCDebug(lcQpaXInput, "XI2 mouse leave, mode %d, detail %d, time %d", ev->mode, ev->detail, ev->time);
never executed: QMessageLogger(__FILE__, 2497, __PRETTY_FUNCTION__, lcQpaXInput().categoryName()).debug("XI2 mouse leave, mode %d, detail %d, time %d", ev->mode, ev->detail, ev->time);
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 141 times by 27 tests
Evaluated 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
  • ...
0-141
2498 connection()->keyboard()->updateXKBStateFromXI(&ev->mods, &ev->group);-
2499 handleLeaveNotifyEvent(root_x, root_y, ev->mode, ev->detail, ev->time);-
2500 break;
executed 141 times by 27 tests: break;
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
  • ...
141
2501 }-
2502}
executed 854 times by 70 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
  • ...
854
2503#endif-
2504-
2505QXcbWindow *QXcbWindow::toWindow() { return this; }
executed 9237 times by 110 tests: return this;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
9237
2506-
2507void QXcbWindow::handleMouseEvent(xcb_timestamp_t time, const QPoint &local, const QPoint &global,-
2508 Qt::KeyboardModifiers modifiers, Qt::MouseEventSource source)-
2509{-
2510 connection()->setTime(time);-
2511 QWindowSystemInterface::handleMouseEvent(window(), time, local, global, connection()->buttons(), modifiers, source);-
2512}
executed 453 times by 17 tests: end of block
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
453
2513-
2514void QXcbWindow::handleEnterNotifyEvent(const xcb_enter_notify_event_t *event)-
2515{-
2516 handleEnterNotifyEvent(event->event_x, event->event_y, event->root_x, event->root_y, event->mode, event->detail, event->time);-
2517}
never executed: end of block
0
2518-
2519void QXcbWindow::handleLeaveNotifyEvent(const xcb_leave_notify_event_t *event)-
2520{-
2521 handleLeaveNotifyEvent(event->root_x, event->root_y, event->mode, event->detail, event->time);-
2522}
never executed: end of block
0
2523-
2524void QXcbWindow::handlePropertyNotifyEvent(const xcb_property_notify_event_t *event)-
2525{-
2526 connection()->setTime(event->time);-
2527-
2528 const bool propertyDeleted = event->state == XCB_PROPERTY_DELETE;-
2529-
2530 if (event->atom == atom(QXcbAtom::_NET_WM_STATE) || event->atom == atom(QXcbAtom::WM_STATE)) {
event->atom ==..._NET_WM_STATE)Description
TRUEevaluated 9238 times by 107 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 92913 times by 112 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
event->atom ==...tom::WM_STATE)Description
TRUEevaluated 2411 times by 105 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 90502 times by 112 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
2411-92913
2531 if (propertyDeleted)
propertyDeletedDescription
TRUEevaluated 92 times by 27 tests
Evaluated by:
  • tst_QApplication
  • tst_QCompleter
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QScrollBar
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QWidget
  • tst_QWidget_window
  • ...
FALSEevaluated 11557 times by 107 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
92-11557
2532 return;
executed 92 times by 27 tests: return;
Executed by:
  • tst_QApplication
  • tst_QCompleter
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QScrollBar
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QWidget
  • tst_QWidget_window
  • ...
92
2533-
2534 Qt::WindowState newState = Qt::WindowNoState;-
2535 if (event->atom == atom(QXcbAtom::WM_STATE)) { // WM_STATE: Quick check for 'Minimize'.
event->atom ==...tom::WM_STATE)Description
TRUEevaluated 2411 times by 105 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 9146 times by 107 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2411-9146
2536 const xcb_get_property_cookie_t get_cookie =-
2537 xcb_get_property(xcb_connection(), 0, m_window, atom(QXcbAtom::WM_STATE),-
2538 XCB_ATOM_ANY, 0, 1024);-
2539-
2540 xcb_get_property_reply_t *reply =-
2541 xcb_get_property_reply(xcb_connection(), get_cookie, NULL);-
2542-
2543 if (reply && reply->format == 32 && reply->type == atom(QXcbAtom::WM_STATE)) {
replyDescription
TRUEevaluated 2411 times by 105 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEnever evaluated
reply->format == 32Description
TRUEevaluated 2411 times by 105 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEnever evaluated
reply->type ==...tom::WM_STATE)Description
TRUEevaluated 2411 times by 105 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEnever evaluated
0-2411
2544 const quint32 *data = (const quint32 *)xcb_get_property_value(reply);-
2545 if (reply->length != 0) {
reply->length != 0Description
TRUEevaluated 2411 times by 105 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEnever evaluated
0-2411
2546 if (data[0] == XCB_WM_STATE_ICONIC
data[0] == XCB...M_STATE_ICONICDescription
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QWidget
FALSEevaluated 2409 times by 105 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2-2409
2547 || (data[0] == XCB_WM_STATE_WITHDRAWN
data[0] == XCB...TATE_WITHDRAWNDescription
TRUEevaluated 107 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCompleter
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QScrollBar
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QWidget
  • ...
FALSEevaluated 2302 times by 105 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
107-2302
2548 && m_lastWindowStateEvent == Qt::WindowMinimized)) {
m_lastWindowSt...indowMinimizedDescription
TRUEnever evaluated
FALSEevaluated 107 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCompleter
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QScrollBar
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QToolButton
  • tst_QWidget
  • ...
0-107
2549 newState = Qt::WindowMinimized;-
2550 }
executed 2 times by 2 tests: end of block
Executed by:
  • tst_QListView
  • tst_QWidget
2
2551 }
executed 2411 times by 105 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2411
2552 }
executed 2411 times by 105 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2411
2553 free(reply);-
2554 } else { // _NET_WM_STATE can't change minimized state
executed 2411 times by 105 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2411
2555 if (m_lastWindowStateEvent == Qt::WindowMinimized)
m_lastWindowSt...indowMinimizedDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QWidget
FALSEevaluated 9142 times by 107 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
4-9142
2556 newState = Qt::WindowMinimized;
executed 4 times by 2 tests: newState = Qt::WindowMinimized;
Executed by:
  • tst_QListView
  • tst_QWidget
4
2557 }
executed 9146 times by 107 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
9146
2558-
2559 if (newState != Qt::WindowMinimized) { // Something else changed, get _NET_WM_STATE.
newState != Qt...indowMinimizedDescription
TRUEevaluated 11551 times by 107 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QWidget
6-11551
2560 const NetWmStates states = netWmStates();-
2561 if (states & NetWmStateFullScreen)
states & NetWmStateFullScreenDescription
TRUEevaluated 14 times by 3 tests
Evaluated by:
  • tst_QSizeGrip
  • tst_QWidget
  • tst_QWindow
FALSEevaluated 11537 times by 107 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
14-11537
2562 newState = Qt::WindowFullScreen;
executed 14 times by 3 tests: newState = Qt::WindowFullScreen;
Executed by:
  • tst_QSizeGrip
  • tst_QWidget
  • tst_QWindow
14
2563 else if ((states & NetWmStateMaximizedHorz) && (states & NetWmStateMaximizedVert))-
2564 newState = Qt::WindowMaximized;
executed 146 times by 15 tests: newState = Qt::WindowMaximized;
Executed by:
  • tst_QBackingStore
  • tst_QCommandLinkButton
  • tst_QHeaderView
  • tst_QListView
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QOpenGLWidget
  • tst_QPainter
  • tst_QPrinter
  • tst_QSplitter
  • tst_QStatusBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWindow
146
2565 }
executed 11551 times by 107 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
11551
2566 // Send Window state, compress events in case other flags (modality, etc) are changed.-
2567 if (m_lastWindowStateEvent != newState) {
m_lastWindowSt...nt != newStateDescription
TRUEevaluated 2469 times by 107 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 9088 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2469-9088
2568 QWindowSystemInterface::handleWindowStateChanged(window(), newState);-
2569 m_lastWindowStateEvent = newState;-
2570 m_windowState = newState;-
2571 if (m_windowState == Qt::WindowMinimized && connection()->mouseGrabber() == this)
m_windowState ...indowMinimizedDescription
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QWidget
FALSEevaluated 2467 times by 107 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
connection()->...bber() == thisDescription
TRUEnever evaluated
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QWidget
0-2467
2572 connection()->setMouseGrabber(Q_NULLPTR);
never executed: connection()->setMouseGrabber(nullptr);
0
2573 }
executed 2469 times by 107 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2469
2574 return;
executed 11557 times by 107 tests: return;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
11557
2575 } else if (event->atom == atom(QXcbAtom::_NET_FRAME_EXTENTS)) {
event->atom ==...FRAME_EXTENTS)Description
TRUEevaluated 2255 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
FALSEevaluated 88247 times by 112 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
2255-88247
2576 m_dirtyFrameMargins = true;-
2577 }
executed 2255 times by 106 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
2255
2578}
executed 90502 times by 112 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
90502
2579-
2580void QXcbWindow::handleFocusInEvent(const xcb_focus_in_event_t *event)-
2581{-
2582 // Ignore focus events that are being sent only because the pointer is over-
2583 // our window, even if the input focus is in a different window.-
2584 if (event->detail == XCB_NOTIFY_DETAIL_POINTER)
event->detail ...DETAIL_POINTERDescription
TRUEevaluated 54 times by 17 tests
Evaluated by:
  • tst_QApplication
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGridLayout
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
FALSEevaluated 2526 times by 103 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
54-2526
2585 return;
executed 54 times by 17 tests: return;
Executed by:
  • tst_QApplication
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGridLayout
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWindow
  • tst_languageChange
54
2586 doFocusIn();-
2587}
executed 2526 times by 103 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2526
2588-
2589-
2590void QXcbWindow::handleFocusOutEvent(const xcb_focus_out_event_t *event)-
2591{-
2592 // Ignore focus events that are being sent only because the pointer is over-
2593 // our window, even if the input focus is in a different window.-
2594 if (event->detail == XCB_NOTIFY_DETAIL_POINTER)
event->detail ...DETAIL_POINTERDescription
TRUEevaluated 30 times by 11 tests
Evaluated by:
  • tst_QDialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWindow
FALSEevaluated 400 times by 49 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMdiArea
  • ...
30-400
2595 return;
executed 30 times by 11 tests: return;
Executed by:
  • tst_QDialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWindow
30
2596 doFocusOut();-
2597}
executed 400 times by 49 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMdiArea
  • ...
400
2598-
2599void QXcbWindow::updateSyncRequestCounter()-
2600{-
2601 if (m_syncState != SyncAndConfigureReceived) {
m_syncState !=...figureReceivedDescription
TRUEnever evaluated
FALSEnever evaluated
0
2602 // window manager does not expect a sync event yet.-
2603 return;
never executed: return;
0
2604 }-
2605 if (m_usingSyncProtocol && (m_syncValue.lo != 0 || m_syncValue.hi != 0)) {
m_usingSyncProtocolDescription
TRUEnever evaluated
FALSEnever evaluated
m_syncValue.lo != 0Description
TRUEnever evaluated
FALSEnever evaluated
m_syncValue.hi != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2606 Q_XCB_CALL(xcb_sync_set_counter(xcb_connection(), m_syncCounter, m_syncValue));-
2607 xcb_flush(xcb_connection());-
2608-
2609 m_syncValue.lo = 0;-
2610 m_syncValue.hi = 0;-
2611 m_syncState = NoSyncNeeded;-
2612 }
never executed: end of block
0
2613}
never executed: end of block
0
2614-
2615const xcb_visualtype_t *QXcbWindow::createVisual()-
2616{-
2617 return xcbScreen() ? xcbScreen()->visualForFormat(m_format)
executed 133 times by 12 tests: return xcbScreen() ? xcbScreen()->visualForFormat(m_format) : nullptr;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QGuiApplication
  • tst_QKeyEvent
  • tst_QLineEdit
  • tst_QMouseEvent
  • tst_QRasterWindow
  • tst_QTouchEvent
  • tst_QWindow
  • tst_QWindowContainer
  • tst_qinputmethod
133
2618 : nullptr;
executed 133 times by 12 tests: return xcbScreen() ? xcbScreen()->visualForFormat(m_format) : nullptr;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QGuiApplication
  • tst_QKeyEvent
  • tst_QLineEdit
  • tst_QMouseEvent
  • tst_QRasterWindow
  • tst_QTouchEvent
  • tst_QWindow
  • tst_QWindowContainer
  • tst_qinputmethod
133
2619}-
2620-
2621bool QXcbWindow::setKeyboardGrabEnabled(bool grab)-
2622{-
2623 if (grab && !connection()->canGrab())
grabDescription
TRUEevaluated 193 times by 21 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidgetAction
FALSEevaluated 152 times by 19 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidgetAction
!connection()->canGrab()Description
TRUEnever evaluated
FALSEevaluated 193 times by 21 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidgetAction
0-193
2624 return false;
never executed: return false;
0
2625-
2626 if (!grab) {
!grabDescription
TRUEevaluated 152 times by 19 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidgetAction
FALSEevaluated 193 times by 21 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidgetAction
152-193
2627 xcb_ungrab_keyboard(xcb_connection(), XCB_TIME_CURRENT_TIME);-
2628 return true;
executed 152 times by 19 tests: return true;
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidgetAction
152
2629 }-
2630 xcb_grab_keyboard_cookie_t cookie = xcb_grab_keyboard(xcb_connection(), false,-
2631 m_window, XCB_TIME_CURRENT_TIME,-
2632 XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC);-
2633 xcb_grab_keyboard_reply_t *reply = xcb_grab_keyboard_reply(xcb_connection(), cookie, NULL);-
2634 bool result = !(!reply || reply->status != XCB_GRAB_STATUS_SUCCESS);
!replyDescription
TRUEnever evaluated
FALSEevaluated 193 times by 21 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidgetAction
reply->status ...STATUS_SUCCESSDescription
TRUEevaluated 10 times by 4 tests
Evaluated by:
  • tst_QCommandLinkButton
  • tst_QMenu
  • tst_QMenuBar
  • tst_QPushButton
FALSEevaluated 183 times by 19 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidgetAction
0-193
2635 free(reply);-
2636 return result;
executed 193 times by 21 tests: return result;
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QPushButton
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidgetAction
193
2637}-
2638-
2639bool QXcbWindow::setMouseGrabEnabled(bool grab)-
2640{-
2641 if (!grab && connection()->mouseGrabber() == this)
!grabDescription
TRUEevaluated 169 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 198 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
connection()->...bber() == thisDescription
TRUEevaluated 169 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-198
2642 connection()->setMouseGrabber(Q_NULLPTR);
executed 169 times by 21 tests: connection()->setMouseGrabber(nullptr);
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
169
2643#ifdef XCB_USE_XINPUT22-
2644 if (connection()->isAtLeastXI22() && connection()->xi2MouseEvents()) {
connection()->isAtLeastXI22()Description
TRUEevaluated 367 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
connection()->xi2MouseEvents()Description
TRUEevaluated 367 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-367
2645 bool result = connection()->xi2SetMouseGrabEnabled(m_window, grab);-
2646 if (grab && result)
grabDescription
TRUEevaluated 198 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 169 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
resultDescription
TRUEevaluated 198 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-198
2647 connection()->setMouseGrabber(this);
executed 198 times by 21 tests: connection()->setMouseGrabber(this);
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
198
2648 return result;
executed 367 times by 21 tests: return result;
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
367
2649 }-
2650#endif-
2651 if (grab && !connection()->canGrab())
grabDescription
TRUEnever evaluated
FALSEnever evaluated
!connection()->canGrab()Description
TRUEnever evaluated
FALSEnever evaluated
0
2652 return false;
never executed: return false;
0
2653-
2654 if (!grab) {
!grabDescription
TRUEnever evaluated
FALSEnever evaluated
0
2655 xcb_ungrab_pointer(xcb_connection(), XCB_TIME_CURRENT_TIME);-
2656 return true;
never executed: return true;
0
2657 }-
2658 xcb_grab_pointer_cookie_t cookie = xcb_grab_pointer(xcb_connection(), false, m_window,-
2659 (XCB_EVENT_MASK_BUTTON_PRESS | XCB_EVENT_MASK_BUTTON_RELEASE-
2660 | XCB_EVENT_MASK_BUTTON_MOTION | XCB_EVENT_MASK_ENTER_WINDOW-
2661 | XCB_EVENT_MASK_LEAVE_WINDOW | XCB_EVENT_MASK_POINTER_MOTION),-
2662 XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC,-
2663 XCB_WINDOW_NONE, XCB_CURSOR_NONE,-
2664 XCB_TIME_CURRENT_TIME);-
2665 xcb_grab_pointer_reply_t *reply = xcb_grab_pointer_reply(xcb_connection(), cookie, NULL);-
2666 bool result = !(!reply || reply->status != XCB_GRAB_STATUS_SUCCESS);
!replyDescription
TRUEnever evaluated
FALSEnever evaluated
reply->status ...STATUS_SUCCESSDescription
TRUEnever evaluated
FALSEnever evaluated
0
2667 free(reply);-
2668 if (result)
resultDescription
TRUEnever evaluated
FALSEnever evaluated
0
2669 connection()->setMouseGrabber(this);
never executed: connection()->setMouseGrabber(this);
0
2670 return result;
never executed: return result;
0
2671}-
2672-
2673void QXcbWindow::setCursor(xcb_cursor_t cursor, bool isBitmapCursor)-
2674{-
2675 xcb_connection_t *conn = xcb_connection();-
2676-
2677 xcb_change_window_attributes(conn, m_window, XCB_CW_CURSOR, &cursor);-
2678 xcb_flush(conn);-
2679-
2680 if (m_currentBitmapCursor != XCB_CURSOR_NONE) {
m_currentBitma...CB_CURSOR_NONEDescription
TRUEnever evaluated
FALSEevaluated 7794 times by 114 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
0-7794
2681 xcb_free_cursor(conn, m_currentBitmapCursor);-
2682 }
never executed: end of block
0
2683-
2684 if (isBitmapCursor) {
isBitmapCursorDescription
TRUEnever evaluated
FALSEevaluated 7794 times by 114 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • 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
  • tst_QDialogButtonBox
  • ...
0-7794
2685 m_currentBitmapCursor = cursor;-
2686 } else {
never executed: end of block
0
2687 m_currentBitmapCursor = XCB_CURSOR_NONE;-
2688 }
executed 7794 times by 114 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_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
  • tst_QDialogButtonBox
  • ...
7794
2689}-
2690-
2691void QXcbWindow::windowEvent(QEvent *event)-
2692{-
2693 switch (event->type()) {-
2694 case QEvent::FocusIn:
executed 19 times by 8 tests: case QEvent::FocusIn:
Executed by:
  • tst_QAbstractItemView
  • tst_QApplication
  • tst_QFocusEvent
  • tst_QGraphicsScene
  • tst_QItemDelegate
  • tst_QMdiSubWindow
  • tst_QTableView
  • tst_QWidget
19
2695 if (m_embedded && !event->spontaneous()) {
m_embeddedDescription
TRUEnever evaluated
FALSEevaluated 19 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QApplication
  • tst_QFocusEvent
  • tst_QGraphicsScene
  • tst_QItemDelegate
  • tst_QMdiSubWindow
  • tst_QTableView
  • tst_QWidget
!event->spontaneous()Description
TRUEnever evaluated
FALSEnever evaluated
0-19
2696 QFocusEvent *focusEvent = static_cast<QFocusEvent *>(event);-
2697 switch (focusEvent->reason()) {-
2698 case Qt::TabFocusReason:
never executed: case Qt::TabFocusReason:
0
2699 case Qt::BacktabFocusReason:
never executed: case Qt::BacktabFocusReason:
0
2700 {-
2701 const QXcbWindow *container =-
2702 static_cast<const QXcbWindow *>(parent());-
2703 sendXEmbedMessage(container->xcb_window(),-
2704 focusEvent->reason() == Qt::TabFocusReason ?-
2705 XEMBED_FOCUS_NEXT : XEMBED_FOCUS_PREV);-
2706 event->accept();-
2707 }-
2708 break;
never executed: break;
0
2709 default:
never executed: default:
0
2710 break;
never executed: break;
0
2711 }-
2712 }-
2713 break;
executed 19 times by 8 tests: break;
Executed by:
  • tst_QAbstractItemView
  • tst_QApplication
  • tst_QFocusEvent
  • tst_QGraphicsScene
  • tst_QItemDelegate
  • tst_QMdiSubWindow
  • tst_QTableView
  • tst_QWidget
19
2714 default:
executed 24738 times by 128 tests: default:
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
  • ...
24738
2715 break;
executed 24738 times by 128 tests: break;
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
  • ...
24738
2716 }-
2717 QPlatformWindow::windowEvent(event);-
2718}
executed 24757 times by 128 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
24757
2719-
2720bool QXcbWindow::startSystemResize(const QPoint &pos, Qt::Corner corner)-
2721{-
2722 const xcb_atom_t moveResize = connection()->atom(QXcbAtom::_NET_WM_MOVERESIZE);-
2723 if (!connection()->wmSupport()->isSupportedByWM(moveResize))
!connection()-...WM(moveResize)Description
TRUEnever evaluated
FALSEnever evaluated
0
2724 return false;
never executed: return false;
0
2725 xcb_client_message_event_t xev;-
2726 xev.response_type = XCB_CLIENT_MESSAGE;-
2727 xev.type = moveResize;-
2728 xev.sequence = 0;-
2729 xev.window = xcb_window();-
2730 xev.format = 32;-
2731 const QPoint globalPos = window()->mapToGlobal(pos);-
2732 xev.data.data32[0] = globalPos.x();-
2733 xev.data.data32[1] = globalPos.y();-
2734 const bool bottom = corner == Qt::BottomRightCorner || corner == Qt::BottomLeftCorner;
corner == Qt::...tomRightCornerDescription
TRUEnever evaluated
FALSEnever evaluated
corner == Qt::BottomLeftCornerDescription
TRUEnever evaluated
FALSEnever evaluated
0
2735 const bool left = corner == Qt::BottomLeftCorner || corner == Qt::TopLeftCorner;
corner == Qt::BottomLeftCornerDescription
TRUEnever evaluated
FALSEnever evaluated
corner == Qt::TopLeftCornerDescription
TRUEnever evaluated
FALSEnever evaluated
0
2736 if (bottom)
bottomDescription
TRUEnever evaluated
FALSEnever evaluated
0
2737 xev.data.data32[2] = left ? 6 : 4; // bottomleft/bottomright
never executed: xev.data.data32[2] = left ? 6 : 4;
leftDescription
TRUEnever evaluated
FALSEnever evaluated
0
2738 else-
2739 xev.data.data32[2] = left ? 0 : 2; // topleft/topright
never executed: xev.data.data32[2] = left ? 0 : 2;
leftDescription
TRUEnever evaluated
FALSEnever evaluated
0
2740 xev.data.data32[3] = XCB_BUTTON_INDEX_1;-
2741 xev.data.data32[4] = 0;-
2742 xcb_ungrab_pointer(connection()->xcb_connection(), XCB_CURRENT_TIME);-
2743 xcb_send_event(connection()->xcb_connection(), false, xcbScreen()->root(),-
2744 XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY,-
2745 (const char *)&xev);-
2746 return true;
never executed: return true;
0
2747}-
2748-
2749// Sends an XEmbed message.-
2750void QXcbWindow::sendXEmbedMessage(xcb_window_t window, quint32 message,-
2751 quint32 detail, quint32 data1, quint32 data2)-
2752{-
2753 xcb_client_message_event_t event;-
2754-
2755 event.response_type = XCB_CLIENT_MESSAGE;-
2756 event.format = 32;-
2757 event.sequence = 0;-
2758 event.window = window;-
2759 event.type = atom(QXcbAtom::_XEMBED);-
2760 event.data.data32[0] = connection()->time();-
2761 event.data.data32[1] = message;-
2762 event.data.data32[2] = detail;-
2763 event.data.data32[3] = data1;-
2764 event.data.data32[4] = data2;-
2765 Q_XCB_CALL(xcb_send_event(xcb_connection(), false, window,-
2766 XCB_EVENT_MASK_NO_EVENT, (const char *)&event));-
2767}
never executed: end of block
0
2768-
2769static bool activeWindowChangeQueued(const QWindow *window)-
2770{-
2771 /* Check from window system event queue if the next queued activation-
2772 * targets a window other than @window.-
2773 */-
2774 QWindowSystemInterfacePrivate::ActivatedWindowEvent *systemEvent =-
2775 static_cast<QWindowSystemInterfacePrivate::ActivatedWindowEvent *>-
2776 (QWindowSystemInterfacePrivate::peekWindowSystemEvent(QWindowSystemInterfacePrivate::ActivatedWindow));-
2777 return systemEvent && systemEvent->activated != window;
never executed: return systemEvent && systemEvent->activated != window;
0
2778}-
2779-
2780void QXcbWindow::handleXEmbedMessage(const xcb_client_message_event_t *event)-
2781{-
2782 connection()->setTime(event->data.data32[0]);-
2783 switch (event->data.data32[1]) {-
2784 case XEMBED_WINDOW_ACTIVATE:
never executed: case XEMBED_WINDOW_ACTIVATE:
0
2785 case XEMBED_WINDOW_DEACTIVATE:
never executed: case XEMBED_WINDOW_DEACTIVATE:
0
2786 break;
never executed: break;
0
2787 case XEMBED_EMBEDDED_NOTIFY:
executed 1 time by 1 test: case XEMBED_EMBEDDED_NOTIFY:
Executed by:
  • tst_QSystemTrayIcon
1
2788 Q_XCB_CALL(xcb_map_window(xcb_connection(), m_window));-
2789 xcbScreen()->windowShown(this);-
2790 // Without Qt::WA_TranslucentBackground, we use a ParentRelative BackPixmap.-
2791 // Clear the whole tray icon window to its background color as early as possible-
2792 // so that we can get a clean result from grabWindow() later.-
2793 Q_XCB_CALL(xcb_clear_area(xcb_connection(), false, m_window, 0, 0, geometry().width(), geometry().height()));-
2794 xcb_flush(xcb_connection());-
2795 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QSystemTrayIcon
1
2796 case XEMBED_FOCUS_IN:
never executed: case XEMBED_FOCUS_IN:
0
2797 Qt::FocusReason reason;-
2798 switch (event->data.data32[2]) {-
2799 case XEMBED_FOCUS_FIRST:
never executed: case XEMBED_FOCUS_FIRST:
0
2800 reason = Qt::TabFocusReason;-
2801 break;
never executed: break;
0
2802 case XEMBED_FOCUS_LAST:
never executed: case XEMBED_FOCUS_LAST:
0
2803 reason = Qt::BacktabFocusReason;-
2804 break;
never executed: break;
0
2805 case XEMBED_FOCUS_CURRENT:
never executed: case XEMBED_FOCUS_CURRENT:
0
2806 default:
never executed: default:
0
2807 reason = Qt::OtherFocusReason;-
2808 break;
never executed: break;
0
2809 }-
2810 connection()->setFocusWindow(static_cast<QXcbWindow*>(window()->handle()));-
2811 QWindowSystemInterface::handleWindowActivated(window(), reason);-
2812 break;
never executed: break;
0
2813 case XEMBED_FOCUS_OUT:
never executed: case XEMBED_FOCUS_OUT:
0
2814 if (window() == QGuiApplication::focusWindow()
window() == QG...:focusWindow()Description
TRUEnever evaluated
FALSEnever evaluated
0
2815 && !activeWindowChangeQueued(window())) {
!activeWindowC...eued(window())Description
TRUEnever evaluated
FALSEnever evaluated
0
2816 connection()->setFocusWindow(0);-
2817 QWindowSystemInterface::handleWindowActivated(0);-
2818 }
never executed: end of block
0
2819 break;
never executed: break;
0
2820 }-
2821}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QSystemTrayIcon
1
2822-
2823static inline xcb_rectangle_t qRectToXCBRectangle(const QRect &r)-
2824{-
2825 xcb_rectangle_t result;-
2826 result.x = qMax(SHRT_MIN, r.x());-
2827 result.y = qMax(SHRT_MIN, r.y());-
2828 result.width = qMin((int)USHRT_MAX, r.width());-
2829 result.height = qMin((int)USHRT_MAX, r.height());-
2830 return result;
executed 243 times by 4 tests: return result;
Executed by:
  • tst_QMdiArea
  • tst_QSystemTrayIcon
  • tst_QWidget
  • tst_QWindow
243
2831}-
2832-
2833void QXcbWindow::setOpacity(qreal level)-
2834{-
2835 if (!m_window)
!m_windowDescription
TRUEnever evaluated
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QGraphicsProxyWidget
  • tst_QWidget
0-3
2836 return;
never executed: return;
0
2837-
2838 quint32 value = qRound64(qBound(qreal(0), level, qreal(1)) * 0xffffffff);-
2839-
2840 Q_XCB_CALL(xcb_change_property(xcb_connection(),-
2841 XCB_PROP_MODE_REPLACE,-
2842 m_window,-
2843 atom(QXcbAtom::_NET_WM_WINDOW_OPACITY),-
2844 XCB_ATOM_CARDINAL,-
2845 32,-
2846 1,-
2847 (uchar *)&value));-
2848}
executed 3 times by 2 tests: end of block
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QWidget
3
2849-
2850void QXcbWindow::setMask(const QRegion &region)-
2851{-
2852 if (!connection()->hasXShape())
!connection()->hasXShape()Description
TRUEnever evaluated
FALSEevaluated 19 times by 4 tests
Evaluated by:
  • tst_QMdiArea
  • tst_QSystemTrayIcon
  • tst_QWidget
  • tst_QWindow
0-19
2853 return;
never executed: return;
0
2854 if (region.isEmpty()) {
region.isEmpty()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QWidget
FALSEevaluated 17 times by 4 tests
Evaluated by:
  • tst_QMdiArea
  • tst_QSystemTrayIcon
  • tst_QWidget
  • tst_QWindow
2-17
2855 xcb_shape_mask(connection()->xcb_connection(), XCB_SHAPE_SO_SET,-
2856 XCB_SHAPE_SK_BOUNDING, xcb_window(), 0, 0, XCB_NONE);-
2857 } else {
executed 2 times by 1 test: end of block
Executed by:
  • tst_QWidget
2
2858 QVector<xcb_rectangle_t> rects;-
2859 const QVector<QRect> regionRects = region.rects();-
2860 rects.reserve(regionRects.count());-
2861 foreach (const QRect &r, regionRects)-
2862 rects.push_back(qRectToXCBRectangle(r));
executed 243 times by 4 tests: rects.push_back(qRectToXCBRectangle(r));
Executed by:
  • tst_QMdiArea
  • tst_QSystemTrayIcon
  • tst_QWidget
  • tst_QWindow
243
2863 xcb_shape_rectangles(connection()->xcb_connection(), XCB_SHAPE_SO_SET,-
2864 XCB_SHAPE_SK_BOUNDING, XCB_CLIP_ORDERING_UNSORTED,-
2865 xcb_window(), 0, 0, rects.size(), &rects[0]);-
2866 }
executed 17 times by 4 tests: end of block
Executed by:
  • tst_QMdiArea
  • tst_QSystemTrayIcon
  • tst_QWidget
  • tst_QWindow
17
2867}-
2868-
2869void QXcbWindow::setAlertState(bool enabled)-
2870{-
2871 if (m_alertState == enabled)
m_alertState == enabledDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QApplication
0-1
2872 return;
never executed: return;
0
2873-
2874 m_alertState = enabled;-
2875-
2876 changeNetWmState(enabled, atom(QXcbAtom::_NET_WM_STATE_DEMANDS_ATTENTION));-
2877}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QApplication
1
2878-
2879uint QXcbWindow::visualId() const-
2880{-
2881 return m_visualId;
never executed: return m_visualId;
0
2882}-
2883-
2884bool QXcbWindow::needsSync() const-
2885{-
2886 return m_syncState == SyncAndConfigureReceived;
executed 10997 times by 101 tests: return m_syncState == SyncAndConfigureReceived;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
10997
2887}-
2888-
2889void QXcbWindow::postSyncWindowRequest()-
2890{-
2891 if (!m_pendingSyncRequest) {
!m_pendingSyncRequestDescription
TRUEnever evaluated
FALSEnever evaluated
0
2892 QXcbSyncWindowRequest *e = new QXcbSyncWindowRequest(this);-
2893 m_pendingSyncRequest = e;-
2894 QCoreApplication::postEvent(xcbScreen()->connection(), e);-
2895 }
never executed: end of block
0
2896}
never executed: end of block
0
2897-
2898QXcbScreen *QXcbWindow::xcbScreen() const-
2899{-
2900 return static_cast<QXcbScreen *>(screen());
executed 42048 times by 136 tests: return static_cast<QXcbScreen *>(screen());
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
  • ...
42048
2901}-
2902-
2903QT_END_NAMESPACE-
2904-
Source codeSwitch to Preprocessed file

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