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