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

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