qxcbwindow.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/plugins/platforms/xcb/qxcbwindow.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12-
13-
14-
15-
16-
17-
18-
19-
20-
21-
22-
23enum {-
24 defaultWindowWidth = 160,-
25 defaultWindowHeight = 160-
26};-
27-
28-
29-
30-
31-
32-
33-
34enum QX11EmbedFocusInDetail {-
35 XEMBED_FOCUS_CURRENT = 0,-
36 XEMBED_FOCUS_FIRST = 1,-
37 XEMBED_FOCUS_LAST = 2-
38};-
39-
40enum QX11EmbedInfoFlags {-
41 XEMBED_MAPPED = (1 << 0),-
42};-
43-
44enum QX11EmbedMessageType {-
45 XEMBED_EMBEDDED_NOTIFY = 0,-
46 XEMBED_WINDOW_ACTIVATE = 1,-
47 XEMBED_WINDOW_DEACTIVATE = 2,-
48 XEMBED_REQUEST_FOCUS = 3,-
49 XEMBED_FOCUS_IN = 4,-
50 XEMBED_FOCUS_OUT = 5,-
51 XEMBED_FOCUS_NEXT = 6,-
52 XEMBED_FOCUS_PREV = 7,-
53 XEMBED_MODALITY_ON = 10,-
54 XEMBED_MODALITY_OFF = 11,-
55 XEMBED_REGISTER_ACCELERATOR = 12,-
56 XEMBED_UNREGISTER_ACCELERATOR = 13,-
57 XEMBED_ACTIVATE_ACCELERATOR = 14-
58};-
59-
60const quint32 XEMBED_VERSION = 0;-
61-
62QXcbScreen *QXcbWindow::parentScreen()-
63{-
64 return
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()
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
? 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
132-319
65}-
66-
67-
68static inline bool isTransient(const QWindow *w)-
69{-
70 return
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::Dialog
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
  • ...
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
  • ...
308-3991
71 || w->type() == Qt::Sheet
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
  • ...
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
  • ...
0-3991
72 || w->type() == Qt::Tool
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
  • ...
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
  • ...
37-3991
73 || w->type() == Qt::SplashScreen
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
  • ...
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
  • ...
1-3991
74 || w->type() == Qt::ToolTip
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
  • ...
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
  • ...
16-3991
75 || w->type() == Qt::Drawer
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
  • ...
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
  • ...
0-3991
76 || w->type() == Qt::Popup
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
  • ...
;
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
  • ...
166-3991
77}-
78-
79static inline QImage::Format imageFormatForVisual(int depth, quint32 red_mask, quint32 blue_mask, bool *rgbSwap)-
80{-
81 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
82 *
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
  • ...
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
83 switch (depth) {-
84 case
executed 4 times by 2 tests: case 32:
Executed by:
  • tst_QSystemTrayIcon
  • tst_QWidget
32:
executed 4 times by 2 tests: case 32:
Executed by:
  • tst_QSystemTrayIcon
  • tst_QWidget
4
85 if (blue_mask == 0xff
blue_mask == 0xffDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QSystemTrayIcon
  • tst_QWidget
FALSEnever evaluated
)
0-4
86 return
executed 4 times by 2 tests: return QImage::Format_ARGB32_Premultiplied;
Executed by:
  • tst_QSystemTrayIcon
  • tst_QWidget
QImage::Format_ARGB32_Premultiplied;
executed 4 times by 2 tests: return QImage::Format_ARGB32_Premultiplied;
Executed by:
  • tst_QSystemTrayIcon
  • tst_QWidget
4
87 if (red_mask == 0x3ff
red_mask == 0x3ffDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
88 return
never executed: return QImage::Format_A2BGR30_Premultiplied;
QImage::Format_A2BGR30_Premultiplied;
never executed: return QImage::Format_A2BGR30_Premultiplied;
0
89 if (blue_mask == 0x3ff
blue_mask == 0x3ffDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
90 return
never executed: return QImage::Format_A2RGB30_Premultiplied;
QImage::Format_A2RGB30_Premultiplied;
never executed: return QImage::Format_A2RGB30_Premultiplied;
0
91 if (red_mask == 0xff
red_mask == 0xffDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
92 if (rgbSwap
rgbSwapDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
93 *
never executed: *rgbSwap = true;
rgbSwap = true;
never executed: *rgbSwap = true;
0
94 return
never executed: return QImage::Format_ARGB32_Premultiplied;
QImage::Format_ARGB32_Premultiplied;
never executed: return QImage::Format_ARGB32_Premultiplied;
0
95 }-
96 break;
never executed: break;
0
97 case
never executed: case 30:
30:
never executed: case 30:
0
98 if (red_mask == 0x3ff
red_mask == 0x3ffDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
99 return
never executed: return QImage::Format_BGR30;
QImage::Format_BGR30;
never executed: return QImage::Format_BGR30;
0
100 if (blue_mask == 0x3ff
blue_mask == 0x3ffDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
101 return
never executed: return QImage::Format_RGB30;
QImage::Format_RGB30;
never executed: return QImage::Format_RGB30;
0
102 break;
never executed: break;
0
103 case
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
  • ...
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
104 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
105 return
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
  • ...
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
106 if (red_mask == 0xff
red_mask == 0xffDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
107 if (rgbSwap
rgbSwapDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
108 *
never executed: *rgbSwap = true;
rgbSwap = true;
never executed: *rgbSwap = true;
0
109 return
never executed: return QImage::Format_RGB32;
QImage::Format_RGB32;
never executed: return QImage::Format_RGB32;
0
110 }-
111 break;
never executed: break;
0
112 case
never executed: case 16:
16:
never executed: case 16:
0
113 if (blue_mask == 0x1f
blue_mask == 0x1fDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
114 return
never executed: return QImage::Format_RGB16;
QImage::Format_RGB16;
never executed: return QImage::Format_RGB16;
0
115 break;
never executed: break;
0
116 default
never executed: default:
:
never executed: default:
0
117 break;
never executed: break;
0
118 }-
119 QMessageLogger(__FILE__, 203, __PRETTY_FUNCTION__).warning("Unsupported screen format: depth: %d, red_mask: %x, blue_mask: %x", depth, red_mask, blue_mask);-
120-
121 switch (depth) {-
122 case
never executed: case 24:
24:
never executed: case 24:
0
123 QMessageLogger(__FILE__, 207, __PRETTY_FUNCTION__).warning("Using RGB32 fallback, if this works your X11 server is reporting a bad screen format.");-
124 return
never executed: return QImage::Format_RGB32;
QImage::Format_RGB32;
never executed: return QImage::Format_RGB32;
0
125 case
never executed: case 16:
16:
never executed: case 16:
0
126 QMessageLogger(__FILE__, 210, __PRETTY_FUNCTION__).warning("Using RGB16 fallback, if this works your X11 server is reporting a bad screen format.");-
127 return
never executed: return QImage::Format_RGB16;
QImage::Format_RGB16;
never executed: return QImage::Format_RGB16;
0
128 default
never executed: default:
:
never executed: default:
0
129 break;
never executed: break;
0
130 }-
131-
132 return
never executed: return QImage::Format_Invalid;
QImage::Format_Invalid;
never executed: return QImage::Format_Invalid;
0
133}-
134-
135static inline bool positionIncludesFrame(QWindow *w)-
136{-
137 return
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
  • ...
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
138}-
139-
140-
141static inline XTextProperty* qstringToXTP(Display *dpy, const QString& s)-
142{-
143-
144 static XTextProperty tp = { 0, 0, 0, 0 };-
145 static bool free_prop = true;-
146-
147 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
148 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
149 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
150 tp.value = 0;-
151 free_prop = true;-
152 }
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
153-
154 static const QTextCodec* mapper = QTextCodec::codecForLocale();-
155 int errCode = 0;-
156 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
157 QByteArray mapped = mapper->fromUnicode(s);-
158 char* tl[2];-
159 tl[0] = mapped.data();-
160 tl[1] = 0;-
161 errCode = XmbTextListToTextProperty(dpy, tl, 1, XStdICCTextStyle, &tp);-
162 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
163 QMessageLogger(__FILE__, 248, __PRETTY_FUNCTION__).debug("XmbTextListToTextProperty result code %d", errCode);
never executed: QMessageLogger(__FILE__, 248, __PRETTY_FUNCTION__).debug("XmbTextListToTextProperty result code %d", errCode);
0
164 }
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
165 if (!mapper
!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 < 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
166 mapper = QTextCodec::codecForName("latin1");-
167 if (!mapper
!mapperDescription
TRUEnever evaluated
FALSEnever evaluated
|| !mapper->canEncode(s)
!mapper->canEncode(s)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
168 return
never executed: return nullptr;
nullptr;
never executed: return nullptr;
0
169 static QByteArray qcs;-
170 qcs = s.toLatin1();-
171 tp.value = (uchar*)qcs.data();-
172 tp.encoding = ((Atom) 31);-
173 tp.format = 8;-
174 tp.nitems = qcs.length();-
175 free_prop = false;-
176 }
never executed: end of block
0
177 return
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
  • ...
&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
178}-
179-
180-
181-
182static QWindow *childWindowAt(QWindow *win, const QPoint &p)-
183{-
184 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(win->children())>::type> _container_((win->children())); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (QObject *obj = *_container_.i; _container_.control; _container_.control = 0) {-
185 if (obj->isWindowType()
obj->isWindowType()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QWindow
FALSEnever evaluated
) {
0-3
186 QWindow *childWin = static_cast<QWindow *>(obj);-
187 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
188 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
189 return
executed 2 times by 1 test: return recurse;
Executed by:
  • tst_QWindow
recurse;
executed 2 times by 1 test: return recurse;
Executed by:
  • tst_QWindow
2
190 }
never executed: end of block
0
191 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QWindow
1
192 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QWindow
1
193 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
194 && !(win->flags() & Qt::WindowTransparentForInput)
!(win->flags()...arentForInput)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QWindow
FALSEnever evaluated
0-1
195 && 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
196 return
executed 1 time by 1 test: return win;
Executed by:
  • tst_QWindow
win;
executed 1 time by 1 test: return win;
Executed by:
  • tst_QWindow
1
197 }-
198 return
executed 6 times by 3 tests: return nullptr;
Executed by:
  • tst_QApplication
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWindow
nullptr;
executed 6 times by 3 tests: return nullptr;
Executed by:
  • tst_QApplication
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWindow
6
199}-
200-
201static const char *wm_window_type_property_id = "_q_xcb_wm_window_type";-
202static const char *wm_window_role_property_id = "_q_xcb_wm_window_role";-
203-
204QXcbWindow::QXcbWindow(QWindow *window)-
205 : QPlatformWindow(window)-
206 , m_window(0)-
207 , m_syncCounter(0)-
208 , m_gravity(XCB_GRAVITY_STATIC)-
209 , m_mapped(false)-
210 , m_transparent(false)-
211 , m_usingSyncProtocol(false)-
212 , m_deferredActivation(false)-
213 , m_embedded(false)-
214 , m_alertState(false)-
215 , m_netWmUserTimeWindow(0L)-
216 , m_dirtyFrameMargins(false)-
217 , m_lastWindowStateEvent(-1)-
218 , m_syncState(NoSyncNeeded)-
219 , m_pendingSyncRequest(0)-
220 , m_currentBitmapCursor(XCB_CURSOR_NONE)-
221{-
222 setConnection(xcbScreen()->connection());-
223}
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
224-
225-
226enum : quint32 {-
227-
228-
229-
230 baseEventMask-
231 = XCB_EVENT_MASK_EXPOSURE | XCB_EVENT_MASK_STRUCTURE_NOTIFY-
232 | XCB_EVENT_MASK_PROPERTY_CHANGE | XCB_EVENT_MASK_FOCUS_CHANGE,-
233-
234 defaultEventMask = baseEventMask-
235 | XCB_EVENT_MASK_KEY_PRESS | XCB_EVENT_MASK_KEY_RELEASE-
236 | XCB_EVENT_MASK_BUTTON_PRESS | XCB_EVENT_MASK_BUTTON_RELEASE-
237 | XCB_EVENT_MASK_BUTTON_MOTION | XCB_EVENT_MASK_ENTER_WINDOW | XCB_EVENT_MASK_LEAVE_WINDOW-
238 | XCB_EVENT_MASK_POINTER_MOTION,-
239-
240 transparentForInputEventMask = baseEventMask-
241 | XCB_EVENT_MASK_VISIBILITY_CHANGE | XCB_EVENT_MASK_RESIZE_REDIRECT-
242 | XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT-
243 | XCB_EVENT_MASK_COLOR_MAP_CHANGE | XCB_EVENT_MASK_OWNER_GRAB_BUTTON-
244};-
245-
246void QXcbWindow::create()-
247{-
248 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
249 m_window = window()->winId();-
250 return;
never executed: return;
0
251 }-
252-
253 destroy();-
254-
255 m_windowState = Qt::WindowNoState;-
256-
257 Qt::WindowType type = window()->type();-
258-
259 QXcbScreen *currentScreen = xcbScreen();-
260 QRect rect = windowGeometry();-
261 QXcbScreen *platformScreen = 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 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
  • ...
? parentScreen() : static_cast<QXcbScreen*>(screenForGeometry(rect));
89-4371
262-
263 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
264 m_window = platformScreen->root();-
265 m_depth = platformScreen->screen()->root_depth;-
266 m_visualId = platformScreen->screen()->root_visual;-
267 const xcb_visualtype_t *visual = 0;-
268 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
269 visual = platformScreen->visualForId(connection()->defaultVisualId());-
270 if (visual
visualDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
271 m_visualId = connection()->defaultVisualId();
never executed: m_visualId = connection()->defaultVisualId();
0
272 if (!visual
!visualDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
273 QMessageLogger(__FILE__, 358, __PRETTY_FUNCTION__).warning() << "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
274 }
never executed: end of block
0
275 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
276 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
277 m_imageFormat = imageFormatForVisual(m_depth, visual->red_mask, visual->blue_mask, &m_imageRgbSwap);-
278 connection()->addWindowEventListener(m_window, this);-
279 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
280 }-
281-
282 const quint32 mask = XCB_CW_BACK_PIXMAP | XCB_CW_OVERRIDE_REDIRECT | XCB_CW_SAVE_UNDER | XCB_CW_EVENT_MASK;-
283 const quint32 values[] = {-
284-
285 0L,-
286-
287 type == Qt::Popup || type == Qt::ToolTip || (window()->flags() & Qt::BypassWindowManagerHint),-
288-
289 type == Qt::Popup || type == Qt::Tool || type == Qt::SplashScreen || type == Qt::ToolTip || type == Qt::Drawer,-
290-
291 defaultEventMask-
292 };-
293-
294-
295-
296-
297 QPlatformWindow::setGeometry(rect);-
298-
299 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
300 QWindowSystemInterface::handleWindowScreenChanged(window(), platformScreen->QPlatformScreen::screen());
never executed: QWindowSystemInterface::handleWindowScreenChanged(window(), platformScreen->QPlatformScreen::screen());
0
301-
302 const QSize minimumSize = windowMinimumSize();-
303 if (rect.width() > 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() > 0
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
304 rect.setWidth(qBound(1, rect.width(), 16383));-
305 rect.setHeight(qBound(1, rect.height(), 16383));-
306 }
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
  • ...
else if (minimumSize.width() > 0
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() > 0
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
307 rect.setSize(minimumSize);-
308 }
never executed: end of block
else {
0
309 rect.setWidth(QHighDpi::toNativePixels(int(defaultWindowWidth), platformScreen->QPlatformScreen::screen()));-
310 rect.setHeight(QHighDpi::toNativePixels(int(defaultWindowHeight), platformScreen->QPlatformScreen::screen()));-
311 }
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
312-
313 xcb_window_t xcb_parent_id = platformScreen->root();-
314 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
315 xcb_parent_id = static_cast<QXcbWindow *>(parent())->xcb_window();-
316 m_embedded = parent()->window()->type() == Qt::ForeignWindow;-
317-
318 QSurfaceFormat parentFormat = parent()->window()->requestedFormat();-
319 if (window()->surfaceType() != QSurface::OpenGLSurface
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()
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
320 window()->setFormat(parentFormat);-
321 }
never executed: end of block
0
322 }
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
323-
324 resolveFormat();-
325-
326-
327 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
328 && 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
329 XVisualInfo *visualInfo = nullptr;-
330 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
331 visualInfo = ((XVisualInfo *)(this->connection()->createVisualInfoForDefaultVisualId()));
never executed: visualInfo = ((XVisualInfo *)(this->connection()->createVisualInfoForDefaultVisualId()));
0
332 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
333 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
334-
335 if (!visualInfo
!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()->surfaceType() == QSurface::OpenGLSurface
window()->surf...:OpenGLSurfaceDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-4059
336 QMessageLogger(__FILE__, 421, __PRETTY_FUNCTION__).fatal("Could not initialize OpenGL");
never executed: QMessageLogger(__FILE__, 421, __PRETTY_FUNCTION__).fatal("Could not initialize OpenGL");
0
337-
338 if (!visualInfo
!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()->surfaceType() == QSurface::RasterGLSurface
window()->surf...asterGLSurfaceDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-4059
339 QMessageLogger(__FILE__, 424, __PRETTY_FUNCTION__).warning("Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.");-
340 window()->setSurfaceType(QSurface::RasterSurface);-
341 }
never executed: end of block
0
342-
343 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
344 m_depth = visualInfo->depth;-
345 m_imageFormat = imageFormatForVisual(visualInfo->depth, visualInfo->red_mask, visualInfo->blue_mask, &m_imageRgbSwap);-
346 Colormap cmap = XCreateColormap(((Display *)(this->connection()->xlib_display())), xcb_parent_id, visualInfo->visual, 0);-
347-
348 XSetWindowAttributes a;-
349 a.background_pixel = ((&((_XPrivDisplay)((Display *)(this->connection()->xlib_display())))->screens[platformScreen->screenNumber()])->white_pixel);-
350 a.border_pixel = ((&((_XPrivDisplay)((Display *)(this->connection()->xlib_display())))->screens[platformScreen->screenNumber()])->black_pixel);-
351 a.colormap = cmap;-
352-
353 m_visualId = visualInfo->visualid;-
354-
355 m_window = XCreateWindow(((Display *)(this->connection()->xlib_display())), xcb_parent_id, rect.x(), rect.y(), rect.width(), rect.height(),-
356 0, visualInfo->depth, 1, visualInfo->visual,-
357 (1L<<1)|(1L<<3)|(1L<<13), &a);-
358-
359 XFree(visualInfo);-
360 }
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
361 }
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
362-
363-
364 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
365 {-
366 m_window = xcb_generate_id(xcb_connection());-
367 m_visualId = (2147483647 * 2U + 1U);-
368 const xcb_visualtype_t *visual = nullptr;-
369 m_depth = platformScreen->screen()->root_depth;-
370-
371 uint32_t mask = 0;-
372 uint32_t values[3];-
373-
374 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
375 m_visualId = connection()->defaultVisualId();-
376 visual = platformScreen->visualForId(m_visualId);-
377 }
never executed: end of block
0
378-
379 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
380 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
381 QMessageLogger(__FILE__, 466, __PRETTY_FUNCTION__).warning("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
382-
383 m_visualId = platformScreen->screen()->root_visual;-
384-
385 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
386 xcb_depth_iterator_t depthIter = xcb_screen_allowed_depths_iterator(platformScreen->screen());-
387 while (depthIter.rem
depthIter.remDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
388 if (depthIter.data->depth == 32
depthIter.data->depth == 32Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
389 xcb_visualtype_iterator_t visualIter = xcb_depth_visuals_iterator(depthIter.data);-
390 if (visualIter.rem
visualIter.remDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
391 m_visualId = visualIter.data->visual_id;-
392 m_depth = 32;-
393 uint32_t colormap = xcb_generate_id(xcb_connection());-
394 xcb_create_colormap(xcb_connection(), XCB_COLORMAP_ALLOC_NONE, colormap,-
395 xcb_parent_id, m_visualId);-
396 mask |= XCB_CW_BACK_PIXEL | XCB_CW_BORDER_PIXEL | XCB_CW_COLORMAP;-
397 values[0] = platformScreen->screen()->white_pixel;-
398 values[1] = platformScreen->screen()->black_pixel;-
399 values[2] = colormap;-
400 break;
never executed: break;
0
401 }-
402 }
never executed: end of block
0
403 xcb_depth_next(&depthIter);-
404 }
never executed: end of block
0
405 }
never executed: end of block
0
406-
407 visual = platformScreen->visualForId(m_visualId);-
408 }
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
409-
410 m_imageFormat = imageFormatForVisual(m_depth, visual->red_mask, visual->blue_mask, &m_imageRgbSwap);-
411 xcb_create_window(xcb_connection(), m_depth, m_window, xcb_parent_id, rect.x(), rect.y(), rect.width(), rect.height(), 0, XCB_WINDOW_CLASS_INPUT_OUTPUT, m_visualId, mask, values)-
412 ;-
413 }
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
414-
415 connection()->addWindowEventListener(m_window, this);-
416-
417 xcb_change_window_attributes(xcb_connection(), m_window, mask, values);-
418-
419 propagateSizeHints();-
420-
421 xcb_atom_t properties[5];-
422 int propertyCount = 0;-
423 properties[propertyCount++] = atom(QXcbAtom::WM_DELETE_WINDOW);-
424 properties[propertyCount++] = atom(QXcbAtom::WM_TAKE_FOCUS);-
425 properties[propertyCount++] = atom(QXcbAtom::_NET_WM_PING);-
426-
427 m_usingSyncProtocol = platformScreen->syncRequestSupported();-
428-
429 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
430 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
431-
432 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
433 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
434-
435 xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window, atom(QXcbAtom::WM_PROTOCOLS), XCB_ATOM_ATOM, 32, propertyCount, properties)-
436-
437-
438-
439-
440-
441-
442 ;-
443 m_syncValue.hi = 0;-
444 m_syncValue.lo = 0;-
445-
446 const QByteArray wmClass = QXcbIntegration::instance()->wmClass();-
447 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
448 xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window, atom(QXcbAtom::WM_CLASS), XCB_ATOM_STRING, 8, wmClass.size(), wmClass.constData())-
449-
450 ;-
451 }
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
452-
453 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
454 m_syncCounter = xcb_generate_id(xcb_connection());-
455 xcb_sync_create_counter(xcb_connection(), m_syncCounter, m_syncValue);-
456-
457 xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window, atom(QXcbAtom::_NET_WM_SYNC_REQUEST_COUNTER), XCB_ATOM_CARDINAL, 32, 1, &m_syncCounter)-
458-
459-
460-
461-
462-
463-
464 ;-
465 }
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
466-
467-
468 quint32 pid = getpid();-
469 xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window, atom(QXcbAtom::_NET_WM_PID), XCB_ATOM_CARDINAL, 32, 1, &pid)-
470-
471 ;-
472-
473 xcb_icccm_wm_hints_t hints;-
474 memset(&hints, 0, sizeof(hints));-
475 xcb_icccm_wm_hints_set_normal(&hints);-
476-
477 xcb_icccm_wm_hints_set_input(&hints, !(window()->flags() & Qt::WindowDoesNotAcceptFocus));-
478-
479 xcb_icccm_set_wm_hints(xcb_connection(), m_window, &hints);-
480-
481 xcb_window_t leader = connection()->clientLeader();-
482 xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window, atom(QXcbAtom::WM_CLIENT_LEADER), XCB_ATOM_WINDOW, 32, 1, &leader)-
483-
484 ;-
485-
486-
487 quint32 data[] = { XEMBED_VERSION, XEMBED_MAPPED };-
488 xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window, atom(QXcbAtom::_XEMBED_INFO), atom(QXcbAtom::_XEMBED_INFO), 32, 2, (void *)data)-
489-
490-
491 ;-
492-
493-
494-
495 connection()->xi2Select(m_window);-
496-
497-
498 setWindowState(window()->windowState());-
499 setWindowFlags(window()->flags());-
500 setWindowTitle(window()->title());-
501-
502 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
503 setTransparentForMouseEvents(true);
executed 1 time by 1 test: setTransparentForMouseEvents(true);
Executed by:
  • tst_QWidget_window
1
504-
505-
506-
507 XSync(((Display *)(platformScreen->connection()->xlib_display())), false);-
508-
509-
510-
511 connection()->drag()->dndEnable(this, true);-
512-
513-
514 const qreal opacity = qt_window_private(window())->opacity;-
515 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
516 setOpacity(opacity);
never executed: setOpacity(opacity);
0
517 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
518 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
519-
520 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
521 QByteArray wmWindowRole = window()->property(wm_window_role_property_id).toByteArray();-
522 setWmWindowRole(wmWindowRole);-
523 }
never executed: end of block
0
524}
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
525-
526QXcbWindow::~QXcbWindow()-
527{-
528 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
529 xcb_free_cursor(xcb_connection(), m_currentBitmapCursor);-
530 }
never executed: end of block
0
531 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
532 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
533 else {-
534 if (connection()->mouseGrabber() == this
connection()->...bber() == thisDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
535 connection()->setMouseGrabber(nullptr);
never executed: connection()->setMouseGrabber(nullptr);
0
536 if (connection()->mousePressWindow() == this
connection()->...ndow() == thisDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
537 connection()->setMousePressWindow(nullptr);
never executed: connection()->setMousePressWindow(nullptr);
0
538 }
never executed: end of block
0
539}-
540-
541void QXcbWindow::destroy()-
542{-
543 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
544 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
545 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
546 connection()->setMouseGrabber(nullptr);
never executed: connection()->setMouseGrabber(nullptr);
0
547-
548 if (m_syncCounter
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_usingSyncProtocol
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
549 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
550 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
551 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
552 xcb_delete_property(xcb_connection(), m_window, atom(QXcbAtom::_NET_WM_USER_TIME_WINDOW));-
553-
554-
555 connection()->sync();-
556 xcb_destroy_window(xcb_connection(), m_netWmUserTimeWindow);-
557 m_netWmUserTimeWindow = 0L;-
558 }
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
559 connection()->removeWindowEventListener(m_window);-
560 xcb_destroy_window(xcb_connection(), m_window);-
561 m_window = 0;-
562 }
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
563 m_mapped = false;-
564-
565 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
566 m_pendingSyncRequest->invalidate();
never executed: m_pendingSyncRequest->invalidate();
0
567}
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
568-
569void QXcbWindow::setGeometry(const QRect &rect)-
570{-
571 QPlatformWindow::setGeometry(rect);-
572-
573 propagateSizeHints();-
574-
575 QXcbScreen *currentScreen = xcbScreen();-
576 QXcbScreen *newScreen = parent()
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
  • ...
? parentScreen() : static_cast<QXcbScreen*>(screenForGeometry(rect));
43-2773
577-
578 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
579 newScreen = xcbScreen();
never executed: newScreen = xcbScreen();
0
580-
581 const QRect wmGeometry = windowToWmGeometry(rect);-
582-
583 if (newScreen
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 != currentScreen
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
584 QWindowSystemInterface::handleWindowScreenChanged(window(), newScreen->QPlatformScreen::screen());
never executed: QWindowSystemInterface::handleWindowScreenChanged(window(), newScreen->QPlatformScreen::screen());
0
585-
586 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
587 const quint32 mask = XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT;-
588 const qint32 values[] = {-
589 qBound<qint32>(1, wmGeometry.width(), 16383),-
590 qBound<qint32>(1, wmGeometry.height(), 16383),-
591 };-
592 xcb_configure_window(xcb_connection(), m_window, mask, reinterpret_cast<const quint32*>(values));-
593 }
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
  • ...
else {
1760
594 const quint32 mask = XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y | XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT;-
595 const qint32 values[] = {-
596 qBound<qint32>(-16383, wmGeometry.x(), 16383),-
597 qBound<qint32>(-16383, wmGeometry.y(), 16383),-
598 qBound<qint32>(1, wmGeometry.width(), 16383),-
599 qBound<qint32>(1, wmGeometry.height(), 16383),-
600 };-
601 xcb_configure_window(xcb_connection(), m_window, mask, reinterpret_cast<const quint32*>(values));-
602 }
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
603-
604 xcb_flush(xcb_connection());-
605}
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
606-
607QMargins QXcbWindow::frameMargins() const-
608{-
609 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
610 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
611 xcb_get_property_cookie_t cookie = xcb_get_property(xcb_connection(), false, m_window,-
612 atom(QXcbAtom::_NET_FRAME_EXTENTS), XCB_ATOM_CARDINAL, 0, 4);-
613 QScopedPointer<xcb_get_property_reply_t, QScopedPointerPodDeleter> reply(-
614 xcb_get_property_reply(xcb_connection(), cookie, __null));-
615 if (reply && reply->type == XCB_ATOM_CARDINAL
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 == 32
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 == 4
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
616 quint32 *data = (quint32 *)xcb_get_property_value(reply.data());-
617-
618 m_frameMargins = QMargins(data[0], data[2], data[1], data[3]);-
619 m_dirtyFrameMargins = false;-
620 return
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
  • ...
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
621 }-
622 }
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
623-
624-
625-
626 xcb_window_t window = m_window;-
627 xcb_window_t parent = m_window;-
628-
629 bool foundRoot = false;-
630-
631 const QVector<xcb_window_t> &virtualRoots =-
632 connection()->wmSupport()->virtualRoots();-
633-
634 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
635 xcb_query_tree_cookie_t cookie = xcb_query_tree_unchecked(xcb_connection(), parent);-
636-
637 xcb_query_tree_reply_t *reply = xcb_query_tree_reply(xcb_connection(), cookie, __null);-
638 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
639 if (reply->root == reply->parent
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.indexOf(reply->parent) != -1
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 == XCB_WINDOW_NONE
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
640 foundRoot = true;-
641 }
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
  • ...
else {
914
642 window = parent;-
643 parent = reply->parent;-
644 }
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
645-
646 free(reply);-
647 }
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
  • ...
else {
1276
648 m_dirtyFrameMargins = false;-
649 m_frameMargins = QMargins();-
650 return
never executed: return m_frameMargins;
m_frameMargins;
never executed: return m_frameMargins;
0
651 }-
652 }-
653-
654 QPoint offset;-
655-
656 xcb_translate_coordinates_reply_t *reply =-
657 xcb_translate_coordinates_reply(-
658 xcb_connection(),-
659 xcb_translate_coordinates(xcb_connection(), window, parent, 0, 0),-
660 __null);-
661-
662 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
663 offset = QPoint(reply->dst_x, reply->dst_y);-
664 free(reply);-
665 }
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
666-
667 xcb_get_geometry_reply_t *geom =-
668 xcb_get_geometry_reply(-
669 xcb_connection(),-
670 xcb_get_geometry(xcb_connection(), parent),-
671 __null);-
672-
673 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
674 int left = offset.x() + geom->border_width;-
675 int top = offset.y() + geom->border_width;-
676 int right = geom->width + geom->border_width - geometry().width() - offset.x();-
677 int bottom = geom->height + geom->border_width - geometry().height() - offset.y();-
678-
679 m_frameMargins = QMargins(left, top, right, bottom);-
680-
681 free(geom);-
682 }
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
683-
684 m_dirtyFrameMargins = false;-
685 }
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
686-
687 return
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
  • ...
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
688}-
689-
690void QXcbWindow::setVisible(bool visible)-
691{-
692 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
693 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
694 else-
695 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
696}-
697-
698static inline bool testShowWithoutActivating(const QWindow *window)-
699{-
700-
701 const QVariant showWithoutActivating = window->property("_q_showWithoutActivating");-
702 return
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
  • ...
showWithoutActivating.isValid()
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()
showWithoutActivating.toBool()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QWidget_window
FALSEnever evaluated
;
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
  • ...
0-4056
703}-
704-
705void QXcbWindow::show()-
706{-
707 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
708 xcb_get_property_cookie_t cookie = xcb_icccm_get_wm_hints_unchecked(xcb_connection(), m_window);-
709-
710 xcb_icccm_wm_hints_t hints;-
711 xcb_icccm_get_wm_hints_reply(xcb_connection(), cookie, &hints, __null);-
712-
713 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
714 xcb_icccm_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
715 else-
716 xcb_icccm_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
717-
718 xcb_icccm_wm_hints_set_input(&hints, !(window()->flags() & Qt::WindowDoesNotAcceptFocus));-
719-
720 xcb_icccm_set_wm_hints(xcb_connection(), m_window, &hints);-
721-
722 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
723 XCB_GRAVITY_NORTH_WEST : XCB_GRAVITY_STATIC;-
724-
725-
726 propagateSizeHints();-
727-
728-
729 xcb_window_t transientXcbParent = 0;-
730 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
731 const QWindow *tp = window()->transientParent();-
732 if (tp
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()
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
733 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
734-
735-
736 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
737 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
738 if (transientXcbParent
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
739 xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window, XCB_ATOM_WM_TRANSIENT_FOR, XCB_ATOM_WINDOW, 32, 1, &transientXcbParent)-
740-
741 ;-
742 }
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
743 }
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
744 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
745 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
746-
747-
748 updateMotifWmHintsBeforeMap();-
749-
750-
751 updateNetWmStateBeforeMap();-
752 }
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
753-
754 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
755 updateNetWmUserTime(0);
executed 2 times by 1 test: updateNetWmUserTime(0);
Executed by:
  • tst_QWidget_window
2
756 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
757 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
758-
759 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
760 return;
executed 3 times by 1 test: return;
Executed by:
  • tst_QSystemTrayIcon
3
761-
762 xcb_map_window(xcb_connection(), m_window);-
763-
764 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
765 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
766-
767 xcbScreen()->windowShown(this);-
768-
769 connection()->sync();-
770}
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
771-
772void QXcbWindow::hide()-
773{-
774 xcb_unmap_window(xcb_connection(), m_window);-
775-
776-
777 q_padded_xcb_event<xcb_unmap_notify_event_t> store = q_padded_xcb_event<xcb_unmap_notify_event_t>(); auto &event = store.event;;-
778 event.response_type = 18;-
779 event.event = xcbScreen()->root();-
780 event.window = m_window;-
781 event.from_configure = false;-
782 xcb_send_event(xcb_connection(), false, xcbScreen()->root(), XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY | XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT, (const char *)&event)-
783 ;-
784-
785 xcb_flush(xcb_connection());-
786-
787 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
788 connection()->setMouseGrabber(nullptr);
executed 3 times by 1 test: connection()->setMouseGrabber(nullptr);
Executed by:
  • tst_QMenu
3
789 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
790-
791 while (w
wDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
792 if (w == this
w == thisDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
793 connection()->setMousePressWindow(nullptr);-
794 break;
never executed: break;
0
795 }-
796 w = w->parent();-
797 }
never executed: end of block
0
798 }
never executed: end of block
0
799-
800 m_mapped = false;-
801-
802-
803-
804 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
805-
806 const QPoint nativePos = xcbScreen()->cursor()->pos();-
807 const QPoint cursorPos = QHighDpi::fromNativePixels(nativePos, xcbScreen()->screenForPosition(nativePos)->screen());-
808-
809-
810-
811 QWindow *enterWindow = nullptr;-
812 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(xcbScreen()->virtualSiblings())>::type> _container_((xcbScreen()->virtualSiblings())); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (QPlatformScreen *screen = *_container_.i; _container_.control; _container_.control = 0) {-
813 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
814 const QPoint devicePosition = QHighDpi::toNativePixels(cursorPos, screen->screen());-
815 enterWindow = screen->topLevelAt(devicePosition);-
816 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
817 }-
818 }
never executed: end of block
0
819-
820 if (enterWindow
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()
enterWindow != window()Description
TRUEevaluated 7 times by 3 tests
Evaluated by:
  • tst_QApplication
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWindow
FALSEnever evaluated
) {
0-131
821-
822 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
823 enterWindow = childWindow;
executed 1 time by 1 test: enterWindow = childWindow;
Executed by:
  • tst_QWindow
1
824 const QPoint localPos = enterWindow->mapFromGlobal(cursorPos);-
825 QWindowSystemInterface::handleEnterEvent(enterWindow, localPos, cursorPos);-
826 }
executed 7 times by 3 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWindow
7
827 }
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
828}
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
829-
830static QWindow *tlWindow(QWindow *window)-
831{-
832 if (window
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()
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
833 return
executed 8 times by 2 tests: return tlWindow(window->parent());
Executed by:
  • tst_QWindow
  • tst_QWindowContainer
tlWindow(window->parent());
executed 8 times by 2 tests: return tlWindow(window->parent());
Executed by:
  • tst_QWindow
  • tst_QWindowContainer
8
834 return
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
  • ...
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
835}-
836-
837bool QXcbWindow::relayFocusToModalWindow() const-
838{-
839 QWindow *w = tlWindow(static_cast<QWindowPrivate *>(QObjectPrivate::get(window()))->eventReceiver());-
840 QWindow *modal_window = 0;-
841 if (QGuiApplicationPrivate::instance()->isWindowBlocked(w,&modal_window)
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 != w
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
842 modal_window->requestActivate();-
843 connection()->flush();-
844 return
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
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
845 }-
846-
847 return
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
  • ...
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
848}-
849-
850void QXcbWindow::doFocusIn()-
851{-
852 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
853 return;
executed 5 times by 5 tests: return;
Executed by:
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QWindow
  • tst_qmouseevent_modal
5
854 QWindow *w = static_cast<QWindowPrivate *>(QObjectPrivate::get(window()))->eventReceiver();-
855 connection()->setFocusWindow(static_cast<QXcbWindow *>(w->handle()));-
856 QWindowSystemInterface::handleWindowActivated(w, Qt::ActiveWindowFocusReason);-
857}
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
858-
859static bool focusInPeeker(QXcbConnection *connection, xcb_generic_event_t *event)-
860{-
861 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
862-
863 QWindowSystemInterface::handleWindowActivated(0, Qt::ActiveWindowFocusReason);-
864 return
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
  • ...
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
865 }-
866 uint response_type = event->response_type & ~0x80;-
867 if (response_type == 9
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
868-
869-
870 xcb_focus_in_event_t *e = (xcb_focus_in_event_t *) event;-
871 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
872 return
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
  • ...
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
873 }
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
874-
875-
876 if (response_type == 33
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
877 xcb_client_message_event_t *cme = (xcb_client_message_event_t *)event;-
878 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
879 && cme->data.data32[1] == XEMBED_FOCUS_IN
cme->data.data...EMBED_FOCUS_INDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
880 return
never executed: return true;
true;
never executed: return true;
0
881 }
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
882-
883 return
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
  • ...
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
884}-
885-
886void QXcbWindow::doFocusOut()-
887{-
888 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
889 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
890 connection()->setFocusWindow(0);-
891-
892-
893-
894 connection()->addPeekFunc(focusInPeeker);-
895}
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
896-
897struct QtMotifWmHints {-
898 quint32 flags, functions, decorations;-
899 qint32 input_mode;-
900 quint32 status;-
901};-
902-
903enum {-
904 MWM_HINTS_FUNCTIONS = (1L << 0),-
905-
906 MWM_FUNC_ALL = (1L << 0),-
907 MWM_FUNC_RESIZE = (1L << 1),-
908 MWM_FUNC_MOVE = (1L << 2),-
909 MWM_FUNC_MINIMIZE = (1L << 3),-
910 MWM_FUNC_MAXIMIZE = (1L << 4),-
911 MWM_FUNC_CLOSE = (1L << 5),-
912-
913 MWM_HINTS_DECORATIONS = (1L << 1),-
914-
915 MWM_DECOR_ALL = (1L << 0),-
916 MWM_DECOR_BORDER = (1L << 1),-
917 MWM_DECOR_RESIZEH = (1L << 2),-
918 MWM_DECOR_TITLE = (1L << 3),-
919 MWM_DECOR_MENU = (1L << 4),-
920 MWM_DECOR_MINIMIZE = (1L << 5),-
921 MWM_DECOR_MAXIMIZE = (1L << 6),-
922-
923 MWM_HINTS_INPUT_MODE = (1L << 2),-
924-
925 MWM_INPUT_MODELESS = 0L,-
926 MWM_INPUT_PRIMARY_APPLICATION_MODAL = 1L,-
927 MWM_INPUT_FULL_APPLICATION_MODAL = 3L-
928};-
929-
930static QtMotifWmHints getMotifWmHints(QXcbConnection *c, xcb_window_t window)-
931{-
932 QtMotifWmHints hints;-
933-
934 xcb_get_property_cookie_t get_cookie =-
935 xcb_get_property_unchecked(c->xcb_connection(), 0, window, c->atom(QXcbAtom::_MOTIF_WM_HINTS),-
936 c->atom(QXcbAtom::_MOTIF_WM_HINTS), 0, 20);-
937-
938 xcb_get_property_reply_t *reply =-
939 xcb_get_property_reply(c->xcb_connection(), get_cookie, __null);-
940-
941 if (reply
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 == 32
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 == c->atom(QXcbAtom::_MOTIF_WM_HINTS)
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
942 hints = *((QtMotifWmHints *)xcb_get_property_value(reply));-
943 }
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
  • ...
else {
3990
944 hints.flags = 0L;-
945 hints.functions = MWM_FUNC_ALL;-
946 hints.decorations = MWM_DECOR_ALL;-
947 hints.input_mode = 0L;-
948 hints.status = 0L;-
949 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QPixmap
1
950-
951 free(reply);-
952-
953 return
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
  • ...
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
954}-
955-
956static void setMotifWmHints(QXcbConnection *c, xcb_window_t window, const QtMotifWmHints &hints)-
957{-
958 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
959 xcb_change_property(c->xcb_connection(), XCB_PROP_MODE_REPLACE, window, c->atom(QXcbAtom::_MOTIF_WM_HINTS), c->atom(QXcbAtom::_MOTIF_WM_HINTS), 32, 5, &hints)-
960-
961-
962-
963-
964-
965-
966 ;-
967 }
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
  • ...
else {
8205
968 xcb_delete_property(c->xcb_connection(), window, c->atom(QXcbAtom::_MOTIF_WM_HINTS));-
969 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QPixmap
2
970}-
971-
972QXcbWindow::NetWmStates QXcbWindow::netWmStates()-
973{-
974 NetWmStates result(0);-
975-
976 xcb_get_property_cookie_t get_cookie =-
977 xcb_get_property_unchecked(xcb_connection(), 0, m_window, atom(QXcbAtom::_NET_WM_STATE),-
978 XCB_ATOM_ATOM, 0, 1024);-
979-
980 xcb_get_property_reply_t *reply =-
981 xcb_get_property_reply(xcb_connection(), get_cookie, __null);-
982-
983 if (reply
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 == 32
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_ATOM
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
984 const xcb_atom_t *states = static_cast<const xcb_atom_t *>(xcb_get_property_value(reply));-
985 const xcb_atom_t *statesEnd = states + reply->length;-
986 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
987 result |= NetWmStateAbove;
executed 55 times by 2 tests: result |= NetWmStateAbove;
Executed by:
  • tst_QGraphicsView
  • tst_QWidget
55
988 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
989 result |= NetWmStateBelow;
never executed: result |= NetWmStateBelow;
0
990 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
991 result |= NetWmStateFullScreen;
executed 14 times by 3 tests: result |= NetWmStateFullScreen;
Executed by:
  • tst_QSizeGrip
  • tst_QWidget
  • tst_QWindow
14
992 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
993 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
994 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
995 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
996 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
997 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
998 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
999 result |= NetWmStateStaysOnTop;
executed 10 times by 2 tests: result |= NetWmStateStaysOnTop;
Executed by:
  • tst_QGraphicsView
  • tst_QWidget
10
1000 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
1001 result |= NetWmStateDemandsAttention;
executed 2 times by 2 tests: result |= NetWmStateDemandsAttention;
Executed by:
  • tst_QMessageBox
  • tst_QWidget_window
2
1002 free(reply);-
1003 }
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
  • ...
else {
11311
1004-
1005-
1006-
1007 }
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
1008-
1009 return
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
  • ...
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
1010}-
1011-
1012void QXcbWindow::setNetWmStates(NetWmStates states)-
1013{-
1014 QVector<xcb_atom_t> atoms;-
1015-
1016 xcb_get_property_cookie_t get_cookie =-
1017 xcb_get_property_unchecked(xcb_connection(), 0, m_window, atom(QXcbAtom::_NET_WM_STATE),-
1018 XCB_ATOM_ATOM, 0, 1024);-
1019-
1020 xcb_get_property_reply_t *reply =-
1021 xcb_get_property_reply(xcb_connection(), get_cookie, __null);-
1022-
1023 if (reply
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 == 32
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_ATOM
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 > 0
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
1024 const xcb_atom_t *data = static_cast<const xcb_atom_t *>(xcb_get_property_value(reply));-
1025 atoms.resize(reply->value_len);-
1026 memcpy((void *)&atoms.first(), (void *)data, reply->value_len * sizeof(xcb_atom_t));-
1027 }
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
1028-
1029 free(reply);-
1030-
1031 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
1032 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
1033 if (states & NetWmStateBelow && !atoms.contains(atom(QXcbAtom::_NET_WM_STATE_BELOW))
!atoms.contain..._STATE_BELOW))Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1034 atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_BELOW));
never executed: atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_BELOW));
0
1035 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
1036 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
1037 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
1038 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
1039 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
1040 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
1041 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
1042 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
1043 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
1044 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
1045 if (states & NetWmStateDemandsAttention && !atoms.contains(atom(QXcbAtom::_NET_WM_STATE_DEMANDS_ATTENTION))
!atoms.contain...DS_ATTENTION))Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1046 atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_DEMANDS_ATTENTION));
never executed: atoms.push_back(atom(QXcbAtom::_NET_WM_STATE_DEMANDS_ATTENTION));
0
1047-
1048 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
1049 xcb_delete_property(xcb_connection(), m_window, atom(QXcbAtom::_NET_WM_STATE));-
1050 }
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
  • ...
else {
3783
1051 xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window, atom(QXcbAtom::_NET_WM_STATE), XCB_ATOM_ATOM, 32, atoms.count(), atoms.constData())-
1052-
1053 ;-
1054 }
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
1055 xcb_flush(xcb_connection());-
1056}
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
1057-
1058void QXcbWindow::setWindowFlags(Qt::WindowFlags flags)-
1059{-
1060 Qt::WindowType type = static_cast<Qt::WindowType>(int(flags & Qt::WindowType_Mask));-
1061-
1062 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
1063 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
1064 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
1065 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
1066-
1067 const quint32 mask = XCB_CW_OVERRIDE_REDIRECT | XCB_CW_EVENT_MASK;-
1068 const quint32 values[] = {-
1069-
1070 (flags & Qt::BypassWindowManagerHint) ? 1u : 0,-
1071-
1072 (flags & Qt::WindowTransparentForInput) ? transparentForInputEventMask : defaultEventMask-
1073 };-
1074-
1075 xcb_change_window_attributes(xcb_connection(), xcb_window(), mask, values);-
1076-
1077 QXcbWindowFunctions::WmWindowTypes wmWindowTypes = 0;-
1078 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
1079 wmWindowTypes = static_cast<QXcbWindowFunctions::WmWindowTypes>(-
1080 window()->property(wm_window_type_property_id).value<int>());-
1081 }
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
1082-
1083 setWmWindowType(wmWindowTypes, flags);-
1084 setMotifWindowFlags(flags);-
1085-
1086 setTransparentForMouseEvents(flags & Qt::WindowTransparentForInput);-
1087 updateDoesNotAcceptFocus(flags & Qt::WindowDoesNotAcceptFocus);-
1088}
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
1089-
1090void QXcbWindow::setMotifWindowFlags(Qt::WindowFlags flags)-
1091{-
1092 Qt::WindowType type = static_cast<Qt::WindowType>(int(flags & Qt::WindowType_Mask));-
1093-
1094 QtMotifWmHints mwmhints;-
1095 mwmhints.flags = 0L;-
1096 mwmhints.functions = 0L;-
1097 mwmhints.decorations = 0;-
1098 mwmhints.input_mode = 0L;-
1099 mwmhints.status = 0L;-
1100-
1101 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
1102 mwmhints.flags |= MWM_HINTS_DECORATIONS;-
1103-
1104 bool customize = flags & Qt::CustomizeWindowHint;-
1105 if (type == Qt::Window
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
  • ...
&& !customize
!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
1106 const Qt::WindowFlags defaultFlags = Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint;-
1107 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
1108 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
1109 }
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
1110 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 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
  • ...
&& !(customize
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)
!(flags & Qt::WindowTitleHint)Description
TRUEnever evaluated
FALSEnever evaluated
)) {
0-3960
1111 mwmhints.decorations |= MWM_DECOR_BORDER;-
1112 mwmhints.decorations |= MWM_DECOR_RESIZEH;-
1113 mwmhints.decorations |= MWM_DECOR_TITLE;-
1114-
1115 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
1116 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
1117-
1118 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
1119 mwmhints.decorations |= MWM_DECOR_MINIMIZE;-
1120 mwmhints.functions |= MWM_FUNC_MINIMIZE;-
1121 }
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
1122-
1123 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
1124 mwmhints.decorations |= MWM_DECOR_MAXIMIZE;-
1125 mwmhints.functions |= MWM_FUNC_MAXIMIZE;-
1126 }
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
1127-
1128 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
1129 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
1130 }
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
1131 }
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
  • ...
else {
4215
1132-
1133 mwmhints.decorations = MWM_DECOR_ALL;-
1134 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QPixmap
1
1135-
1136 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
1137 mwmhints.flags |= MWM_HINTS_FUNCTIONS;-
1138 mwmhints.functions |= MWM_FUNC_MOVE | MWM_FUNC_RESIZE;-
1139 }
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
  • ...
else {
3954
1140 mwmhints.functions = MWM_FUNC_ALL;-
1141 }
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
1142-
1143 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
1144 && flags & Qt::CustomizeWindowHint-
1145 && flags & Qt::WindowTitleHint
flags & Qt::WindowTitleHintDescription
TRUEnever evaluated
FALSEnever evaluated
0
1146 && !(flags &
!(flags & (Qt:...seButtonHint))Description
TRUEnever evaluated
FALSEnever evaluated
0
1147 (Qt::WindowMinimizeButtonHint
!(flags & (Qt:...seButtonHint))Description
TRUEnever evaluated
FALSEnever evaluated
0
1148 | Qt::WindowMaximizeButtonHint
!(flags & (Qt:...seButtonHint))Description
TRUEnever evaluated
FALSEnever evaluated
0
1149 | Qt::WindowCloseButtonHint))
!(flags & (Qt:...seButtonHint))Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1150 {-
1151-
1152 mwmhints.flags = MWM_HINTS_FUNCTIONS;-
1153 mwmhints.functions = MWM_FUNC_MOVE | MWM_FUNC_RESIZE;-
1154 mwmhints.decorations = 0;-
1155 }
never executed: end of block
0
1156-
1157 setMotifWmHints(connection(), m_window, mwmhints);-
1158}
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
1159-
1160void QXcbWindow::changeNetWmState(bool set, xcb_atom_t one, xcb_atom_t two)-
1161{-
1162 xcb_client_message_event_t event;-
1163-
1164 event.response_type = 33;-
1165 event.format = 32;-
1166 event.sequence = 0;-
1167 event.window = m_window;-
1168 event.type = atom(QXcbAtom::_NET_WM_STATE);-
1169 event.data.data32[0] = set
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
? 1 : 0;
30-45
1170 event.data.data32[1] = one;-
1171 event.data.data32[2] = two;-
1172 event.data.data32[3] = 0;-
1173 event.data.data32[4] = 0;-
1174-
1175 xcb_send_event(xcb_connection(), 0, xcbScreen()->root(), XCB_EVENT_MASK_STRUCTURE_NOTIFY | XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT, (const char *)&event);-
1176}
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
1177-
1178void QXcbWindow::setWindowState(Qt::WindowState state)-
1179{-
1180 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
1181 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
1182-
1183-
1184 switch (m_windowState) {-
1185 case
executed 10 times by 3 tests: case Qt::WindowMinimized:
Executed by:
  • tst_QDialog
  • tst_QListView
  • tst_QWidget
Qt::WindowMinimized:
executed 10 times by 3 tests: case Qt::WindowMinimized:
Executed by:
  • tst_QDialog
  • tst_QListView
  • tst_QWidget
10
1186 xcb_map_window(xcb_connection(), m_window);-
1187 break;
executed 10 times by 3 tests: break;
Executed by:
  • tst_QDialog
  • tst_QListView
  • tst_QWidget
10
1188 case
executed 16 times by 5 tests: case Qt::WindowMaximized:
Executed by:
  • tst_QDialog
  • tst_QMdiSubWindow
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QWidget
Qt::WindowMaximized:
executed 16 times by 5 tests: case Qt::WindowMaximized:
Executed by:
  • tst_QDialog
  • tst_QMdiSubWindow
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QWidget
16
1189 changeNetWmState(false,-
1190 atom(QXcbAtom::_NET_WM_STATE_MAXIMIZED_HORZ),-
1191 atom(QXcbAtom::_NET_WM_STATE_MAXIMIZED_VERT));-
1192 break;
executed 16 times by 5 tests: break;
Executed by:
  • tst_QDialog
  • tst_QMdiSubWindow
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QWidget
16
1193 case
executed 14 times by 6 tests: case Qt::WindowFullScreen:
Executed by:
  • tst_QDialog
  • tst_QMdiArea
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QWidget
  • tst_QWindow
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
1194 changeNetWmState(false, atom(QXcbAtom::_NET_WM_STATE_FULLSCREEN));-
1195 break;
executed 14 times by 6 tests: break;
Executed by:
  • tst_QDialog
  • tst_QMdiArea
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QWidget
  • tst_QWindow
14
1196 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
:
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
1197 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
1198 }-
1199-
1200-
1201 switch (state) {-
1202 case
executed 23 times by 5 tests: case Qt::WindowMinimized:
Executed by:
  • tst_QDialog
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QWidget
Qt::WindowMinimized:
executed 23 times by 5 tests: case Qt::WindowMinimized:
Executed by:
  • tst_QDialog
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QWidget
23
1203 {-
1204 xcb_client_message_event_t event;-
1205-
1206 event.response_type = 33;-
1207 event.format = 32;-
1208 event.sequence = 0;-
1209 event.window = m_window;-
1210 event.type = atom(QXcbAtom::WM_CHANGE_STATE);-
1211 event.data.data32[0] = XCB_ICCCM_WM_STATE_ICONIC;-
1212 event.data.data32[1] = 0;-
1213 event.data.data32[2] = 0;-
1214 event.data.data32[3] = 0;-
1215 event.data.data32[4] = 0;-
1216-
1217 xcb_send_event(xcb_connection(), 0, xcbScreen()->root(), XCB_EVENT_MASK_STRUCTURE_NOTIFY | XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT, (const char *)&event);-
1218 }-
1219 break;
executed 23 times by 5 tests: break;
Executed by:
  • tst_QDialog
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QWidget
23
1220 case
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
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
1221 changeNetWmState(true,-
1222 atom(QXcbAtom::_NET_WM_STATE_MAXIMIZED_HORZ),-
1223 atom(QXcbAtom::_NET_WM_STATE_MAXIMIZED_VERT));-
1224 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
1225 case
executed 17 times by 6 tests: case Qt::WindowFullScreen:
Executed by:
  • tst_QDialog
  • tst_QMdiArea
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QWidget
  • tst_QWindow
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
1226 changeNetWmState(true, atom(QXcbAtom::_NET_WM_STATE_FULLSCREEN));-
1227 break;
executed 17 times by 6 tests: break;
Executed by:
  • tst_QDialog
  • tst_QMdiArea
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QWidget
  • tst_QWindow
17
1228 case
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
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
1229 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
1230 default
never executed: default:
:
never executed: default:
0
1231 break;
never executed: break;
0
1232 }-
1233-
1234 connection()->sync();-
1235-
1236 m_windowState = state;-
1237}
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
1238-
1239void QXcbWindow::updateMotifWmHintsBeforeMap()-
1240{-
1241 QtMotifWmHints mwmhints = getMotifWmHints(connection(), m_window);-
1242-
1243 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
1244 switch (window()->modality()) {-
1245 case
executed 8 times by 3 tests: case Qt::WindowModal:
Executed by:
  • tst_QGuiApplication
  • tst_QMessageBox
  • tst_QWindow
Qt::WindowModal:
executed 8 times by 3 tests: case Qt::WindowModal:
Executed by:
  • tst_QGuiApplication
  • tst_QMessageBox
  • tst_QWindow
8
1246 mwmhints.input_mode = MWM_INPUT_PRIMARY_APPLICATION_MODAL;-
1247 break;
executed 8 times by 3 tests: break;
Executed by:
  • tst_QGuiApplication
  • tst_QMessageBox
  • tst_QWindow
8
1248 case
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
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
1249 default
never executed: default:
:
never executed: default:
0
1250 mwmhints.input_mode = MWM_INPUT_FULL_APPLICATION_MODAL;-
1251 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
1252 }-
1253 mwmhints.flags |= MWM_HINTS_INPUT_MODE;-
1254 }
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
else {
139
1255 mwmhints.input_mode = MWM_INPUT_MODELESS;-
1256 mwmhints.flags &= ~MWM_HINTS_INPUT_MODE;-
1257 }
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
1258-
1259 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
1260-
1261-
1262 mwmhints.flags |= MWM_HINTS_FUNCTIONS;-
1263 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
1264 mwmhints.functions = MWM_FUNC_MOVE;-
1265 }
executed 12 times by 5 tests: end of block
Executed by:
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QSystemTrayIcon
  • tst_QTreeView
  • tst_QWidget
else {
12
1266 mwmhints.functions &= ~MWM_FUNC_RESIZE;-
1267 }
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
1268-
1269 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
1270 mwmhints.flags |= MWM_HINTS_DECORATIONS;-
1271 mwmhints.decorations = (MWM_DECOR_BORDER-
1272 | MWM_DECOR_TITLE-
1273 | MWM_DECOR_MENU);-
1274 }
never executed: end of block
else {
0
1275 mwmhints.decorations &= ~MWM_DECOR_RESIZEH;-
1276 }
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
1277 }-
1278-
1279 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
1280 mwmhints.flags |= MWM_HINTS_DECORATIONS;-
1281 mwmhints.decorations |= MWM_DECOR_MINIMIZE;-
1282 mwmhints.functions |= MWM_FUNC_MINIMIZE;-
1283 }
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
1284 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
1285 mwmhints.flags |= MWM_HINTS_DECORATIONS;-
1286 mwmhints.decorations |= MWM_DECOR_MAXIMIZE;-
1287 mwmhints.functions |= MWM_FUNC_MAXIMIZE;-
1288 }
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
1289 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
1290 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
1291-
1292 setMotifWmHints(connection(), m_window, mwmhints);-
1293}
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
1294-
1295void QXcbWindow::updateNetWmStateBeforeMap()-
1296{-
1297 NetWmStates states(0);-
1298-
1299 const Qt::WindowFlags flags = window()->flags();-
1300 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
1301 states |= NetWmStateAbove;-
1302 states |= NetWmStateStaysOnTop;-
1303 }
executed 10 times by 2 tests: end of block
Executed by:
  • tst_QGraphicsView
  • tst_QWidget
else if (flags & Qt::WindowStaysOnBottomHint
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
1304 states |= NetWmStateBelow;-
1305 }
never executed: end of block
0
1306-
1307 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
1308 states |= NetWmStateFullScreen;
executed 5 times by 3 tests: states |= NetWmStateFullScreen;
Executed by:
  • tst_QDialog
  • tst_QWidget
  • tst_QWindow
5
1309-
1310 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
1311 states |= NetWmStateMaximizedHorz;-
1312 states |= NetWmStateMaximizedVert;-
1313 }
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
1314-
1315 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
1316 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
1317-
1318 setNetWmStates(states);-
1319}
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
1320-
1321void QXcbWindow::updateNetWmUserTime(xcb_timestamp_t timestamp)-
1322{-
1323 xcb_window_t wid = m_window;-
1324-
1325-
1326-
1327 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
1328 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
1329-
1330 const bool isSupportedByWM = connection()->wmSupport()->isSupportedByWM(atom(QXcbAtom::_NET_WM_USER_TIME_WINDOW));-
1331 if (m_netWmUserTimeWindow
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
  • ...
|| isSupportedByWM
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
1332 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
1333 m_netWmUserTimeWindow = xcb_generate_id(xcb_connection());-
1334 xcb_create_window(xcb_connection(), 0L, m_netWmUserTimeWindow, m_window, -1, -1, 1, 1, 0, XCB_WINDOW_CLASS_INPUT_OUTPUT, m_visualId, 0, 0)-
1335 ;-
1336 wid = m_netWmUserTimeWindow;-
1337 xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window, atom(QXcbAtom::_NET_WM_USER_TIME_WINDOW),-
1338 XCB_ATOM_WINDOW, 32, 1, &m_netWmUserTimeWindow);-
1339 xcb_delete_property(xcb_connection(), m_window, atom(QXcbAtom::_NET_WM_USER_TIME));-
1340-
1341 QByteArray ba("Qt NET_WM user time window");-
1342 xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_netWmUserTimeWindow, atom(QXcbAtom::_NET_WM_NAME), atom(QXcbAtom::UTF8_STRING), 8, ba.length(), ba.constData())-
1343-
1344-
1345-
1346-
1347-
1348-
1349 ;-
1350-
1351 }
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
  • ...
else if (!isSupportedByWM
!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
1352-
1353-
1354 xcb_delete_property(xcb_connection(), m_window, atom(QXcbAtom::_NET_WM_USER_TIME_WINDOW));-
1355 xcb_destroy_window(xcb_connection(), m_netWmUserTimeWindow);-
1356 m_netWmUserTimeWindow = 0L;-
1357 }
never executed: end of block
else {
0
1358 wid = m_netWmUserTimeWindow;-
1359 }
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
1360 }-
1361 xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, wid, atom(QXcbAtom::_NET_WM_USER_TIME),-
1362 XCB_ATOM_CARDINAL, 32, 1, &timestamp);-
1363}
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
1364-
1365void QXcbWindow::setTransparentForMouseEvents(bool transparent)-
1366{-
1367 if (!connection()->hasXFixes()
!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_transparent
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
1368 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
1369-
1370 xcb_rectangle_t rectangle;-
1371-
1372 xcb_rectangle_t *rect = 0;-
1373 int nrect = 0;-
1374-
1375 if (!transparent
!transparentDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QWidget_window
) {
0-1
1376 rectangle.x = 0;-
1377 rectangle.y = 0;-
1378 rectangle.width = geometry().width();-
1379 rectangle.height = geometry().height();-
1380 rect = &rectangle;-
1381 nrect = 1;-
1382 }
never executed: end of block
0
1383-
1384 xcb_xfixes_region_t region = xcb_generate_id(xcb_connection());-
1385 xcb_xfixes_create_region(xcb_connection(), region, nrect, rect);-
1386 xcb_xfixes_set_window_shape_region_checked(xcb_connection(), m_window, XCB_SHAPE_SK_INPUT, 0, 0, region);-
1387 xcb_xfixes_destroy_region(xcb_connection(), region);-
1388-
1389 m_transparent = transparent;-
1390}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QWidget_window
1
1391-
1392void QXcbWindow::updateDoesNotAcceptFocus(bool doesNotAcceptFocus)-
1393{-
1394 xcb_get_property_cookie_t cookie = xcb_icccm_get_wm_hints_unchecked(xcb_connection(), m_window);-
1395-
1396 xcb_icccm_wm_hints_t hints;-
1397 if (!xcb_icccm_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
1398 return;
never executed: return;
0
1399 }-
1400-
1401 xcb_icccm_wm_hints_set_input(&hints, !doesNotAcceptFocus);-
1402 xcb_icccm_set_wm_hints(xcb_connection(), m_window, &hints);-
1403}
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
1404-
1405WId QXcbWindow::winId() const-
1406{-
1407 return
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
  • ...
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
1408}-
1409-
1410void QXcbWindow::setParent(const QPlatformWindow *parent)-
1411{-
1412 QPoint topLeft = geometry().topLeft();-
1413-
1414 xcb_window_t xcb_parent_id;-
1415 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
1416 const QXcbWindow *qXcbParent = static_cast<const QXcbWindow *>(parent);-
1417 xcb_parent_id = qXcbParent->xcb_window();-
1418 m_embedded = qXcbParent->window()->type() == Qt::ForeignWindow;-
1419 }
executed 24 times by 5 tests: end of block
Executed by:
  • tst_QMdiArea
  • tst_QTabBar
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
else {
24
1420 xcb_parent_id = xcbScreen()->root();-
1421 m_embedded = false;-
1422 }
executed 8 times by 2 tests: end of block
Executed by:
  • tst_QWidget
  • tst_QWindowContainer
8
1423 xcb_reparent_window(xcb_connection(), xcb_window(), xcb_parent_id, topLeft.x(), topLeft.y());-
1424}
executed 32 times by 5 tests: end of block
Executed by:
  • tst_QMdiArea
  • tst_QTabBar
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
32
1425-
1426void QXcbWindow::setWindowTitle(const QString &title)-
1427{-
1428 const QString fullTitle = formatWindowTitle(title, QString::fromUtf8(" \xe2\x80\x94 "));-
1429 const QByteArray ba = fullTitle.toUtf8();-
1430 xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window, atom(QXcbAtom::_NET_WM_NAME), atom(QXcbAtom::UTF8_STRING), 8, ba.length(), ba.constData())-
1431-
1432-
1433-
1434-
1435-
1436-
1437 ;-
1438-
1439-
1440 XTextProperty *text = qstringToXTP(((Display *)(this->connection()->xlib_display())), title);-
1441 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
1442 XSetWMName(((Display *)(this->connection()->xlib_display())), 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
1443-
1444 xcb_flush(xcb_connection());-
1445}
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
1446-
1447void QXcbWindow::setWindowIconText(const QString &title)-
1448{-
1449 const QByteArray ba = title.toUtf8();-
1450 xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window, atom(QXcbAtom::_NET_WM_ICON_NAME), atom(QXcbAtom::UTF8_STRING), 8, ba.length(), ba.constData())-
1451-
1452-
1453-
1454-
1455-
1456-
1457 ;-
1458}
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
1459-
1460void QXcbWindow::setWindowIcon(const QIcon &icon)-
1461{-
1462 QVector<quint32> icon_data;-
1463 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
1464 QList<QSize> availableSizes = icon.availableSizes();-
1465 if (availableSizes.isEmpty()
availableSizes.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QGuiApplication
  • tst_QWidget
) {
0-5
1466-
1467 availableSizes.push_back(QSize(16,16));-
1468 availableSizes.push_back(QSize(32,32));-
1469 availableSizes.push_back(QSize(64,64));-
1470 availableSizes.push_back(QSize(128,128));-
1471 }
never executed: end of block
0
1472 for (int i = 0; i < availableSizes.size()
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
; ++i) {
5-7
1473 QSize size = availableSizes.at(i);-
1474 QPixmap pixmap = icon.pixmap(size);-
1475 if (!pixmap.isNull()
!pixmap.isNull()Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QGuiApplication
  • tst_QWidget
FALSEnever evaluated
) {
0-7
1476 QImage image = pixmap.toImage().convertToFormat(QImage::Format_ARGB32);-
1477 int pos = icon_data.size();-
1478 icon_data.resize(pos + 2 + image.width()*image.height());-
1479 icon_data[pos++] = image.width();-
1480 icon_data[pos++] = image.height();-
1481 memcpy(icon_data.data() + pos, image.bits(), image.width()*image.height()*4);-
1482 }
executed 7 times by 2 tests: end of block
Executed by:
  • tst_QGuiApplication
  • tst_QWidget
7
1483 }
executed 7 times by 2 tests: end of block
Executed by:
  • tst_QGuiApplication
  • tst_QWidget
7
1484 }
executed 5 times by 2 tests: end of block
Executed by:
  • tst_QGuiApplication
  • tst_QWidget
5
1485-
1486 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
1487 xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window, atom(QXcbAtom::_NET_WM_ICON), atom(QXcbAtom::CARDINAL), 32, icon_data.size(), (unsigned char *) icon_data.data())-
1488-
1489-
1490-
1491-
1492-
1493-
1494 ;-
1495 }
executed 5 times by 2 tests: end of block
Executed by:
  • tst_QGuiApplication
  • tst_QWidget
else {
5
1496 xcb_delete_property(xcb_connection(), m_window, atom(QXcbAtom::_NET_WM_ICON))-
1497-
1498 ;-
1499 }
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
1500}-
1501-
1502void QXcbWindow::raise()-
1503{-
1504 const quint32 mask = XCB_CONFIG_WINDOW_STACK_MODE;-
1505 const quint32 values[] = { XCB_STACK_MODE_ABOVE };-
1506 xcb_configure_window(xcb_connection(), m_window, mask, values);-
1507}
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
1508-
1509void QXcbWindow::lower()-
1510{-
1511 const quint32 mask = XCB_CONFIG_WINDOW_STACK_MODE;-
1512 const quint32 values[] = { XCB_STACK_MODE_BELOW };-
1513 xcb_configure_window(xcb_connection(), m_window, mask, values);-
1514}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QWidget
1
1515-
1516-
1517-
1518QRect QXcbWindow::windowToWmGeometry(QRect r) const-
1519{-
1520 if (m_dirtyFrameMargins
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()
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
1521 return
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
  • ...
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
1522 const bool frameInclusive = positionIncludesFrame(window());-
1523-
1524-
1525 if (frameInclusive
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 == XCB_GRAVITY_STATIC
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
1526 r.translate(m_frameMargins.left(), m_frameMargins.top());-
1527 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QWindow
else if (!frameInclusive
!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 == XCB_GRAVITY_NORTH_WEST
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
1528 r.translate(-m_frameMargins.left(), -m_frameMargins.top());-
1529 }
executed 14 times by 2 tests: end of block
Executed by:
  • tst_QWidget
  • tst_QWidget_window
14
1530 return
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
  • ...
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
1531}-
1532-
1533void QXcbWindow::propagateSizeHints()-
1534{-
1535-
1536 xcb_size_hints_t hints;-
1537 memset(&hints, 0, sizeof(hints));-
1538-
1539 const QRect xRect = windowToWmGeometry(geometry());-
1540-
1541 QWindow *win = window();-
1542-
1543 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
1544 xcb_icccm_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
1545 if (xRect.width() < ((1<<24)-1)
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)
xRect.height() < ((1<<24)-1)Description
TRUEnever evaluated
FALSEnever evaluated
)
0-11863
1546 xcb_icccm_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
1547 xcb_icccm_size_hints_set_win_gravity(&hints, m_gravity);-
1548-
1549 QSize minimumSize = windowMinimumSize();-
1550 QSize maximumSize = windowMaximumSize();-
1551 QSize baseSize = windowBaseSize();-
1552 QSize sizeIncrement = windowSizeIncrement();-
1553-
1554 if (minimumSize.width() > 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() > 0
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
1555 xcb_icccm_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
1556 qMin(16383,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
1557 qMin(16383,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
1558-
1559 if (maximumSize.width() < ((1<<24)-1)
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.height() < ((1<<24)-1)
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
1560 xcb_icccm_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
1561 qMin(16383, 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
1562 qMin(16383, 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
1563-
1564 if (sizeIncrement.width() > 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() > 0
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
1565 xcb_icccm_size_hints_set_base_size(&hints, baseSize.width(), baseSize.height());-
1566 xcb_icccm_size_hints_set_resize_inc(&hints, sizeIncrement.width(), sizeIncrement.height());-
1567 }
never executed: end of block
0
1568-
1569 xcb_icccm_set_wm_normal_hints(xcb_connection(), m_window, &hints);-
1570}
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
1571-
1572void QXcbWindow::requestActivateWindow()-
1573{-
1574-
1575-
1576 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
1577 QPlatformWindow::requestActivateWindow();-
1578 return;
never executed: return;
0
1579 }-
1580-
1581 if (!m_mapped
!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()
!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
1582 m_deferredActivation = true;-
1583 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
1584 }-
1585 m_deferredActivation = false;-
1586-
1587 updateNetWmUserTime(connection()->time());-
1588 QWindow *focusWindow = QGuiApplication::focusWindow();-
1589-
1590 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
1591 && !(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
1592 && (!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()->isAncestorOf(focusWindow)
!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
1593 && 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
1594 xcb_client_message_event_t event;-
1595-
1596 event.response_type = 33;-
1597 event.format = 32;-
1598 event.sequence = 0;-
1599 event.window = m_window;-
1600 event.type = atom(QXcbAtom::_NET_ACTIVE_WINDOW);-
1601 event.data.data32[0] = 1;-
1602 event.data.data32[1] = connection()->time();-
1603 event.data.data32[2] = focusWindow
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
  • ...
? focusWindow->winId() : 0L;
255-344
1604 event.data.data32[3] = 0;-
1605 event.data.data32[4] = 0;-
1606-
1607 xcb_send_event(xcb_connection(), 0, xcbScreen()->root(), XCB_EVENT_MASK_STRUCTURE_NOTIFY | XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT, (const char *)&event);-
1608 }
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
  • ...
else {
599
1609 xcb_set_input_focus(xcb_connection(), XCB_INPUT_FOCUS_PARENT, m_window, connection()->time());-
1610 }
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
1611-
1612 connection()->sync();-
1613}
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
1614-
1615QSurfaceFormat QXcbWindow::format() const-
1616{-
1617 return
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
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
1618}-
1619-
1620void QXcbWindow::setWmWindowTypeStatic(QWindow *window, QXcbWindowFunctions::WmWindowTypes windowTypes)-
1621{-
1622 window->setProperty(wm_window_type_property_id, QVariant::fromValue(static_cast<int>(windowTypes)));-
1623-
1624 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
1625 static_cast<
executed 2 times by 1 test: static_cast<QXcbWindow *>(window->handle())->setWmWindowType(windowTypes, window->flags());
Executed by:
  • tst_QMenu
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
1626}
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
1627-
1628void QXcbWindow::setWindowIconTextStatic(QWindow *window, const QString &text)-
1629{-
1630 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
1631 static_cast<
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
  • ...
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
1632}
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
1633-
1634void QXcbWindow::setWmWindowRoleStatic(QWindow *window, const QByteArray &role)-
1635{-
1636 if (window->handle()
window->handle()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1637 static_cast<
never executed: static_cast<QXcbWindow *>(window->handle())->setWmWindowRole(role);
QXcbWindow *>(window->handle())->setWmWindowRole(role);
never executed: static_cast<QXcbWindow *>(window->handle())->setWmWindowRole(role);
0
1638 else-
1639 window->setProperty(wm_window_role_property_id, role);
never executed: window->setProperty(wm_window_role_property_id, role);
0
1640}-
1641-
1642uint QXcbWindow::visualIdStatic(QWindow *window)-
1643{-
1644 if (window
windowDescription
TRUEnever evaluated
FALSEnever evaluated
&& window->handle()
window->handle()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1645 return
never executed: return static_cast<QXcbWindow *>(window->handle())->visualId();
static_cast<QXcbWindow *>(window->handle())->visualId();
never executed: return static_cast<QXcbWindow *>(window->handle())->visualId();
0
1646 return
never executed: return (2147483647 * 2U + 1U);
(2147483647 * 2U + 1U);
never executed: return (2147483647 * 2U + 1U);
0
1647}-
1648-
1649QXcbWindowFunctions::WmWindowTypes QXcbWindow::wmWindowTypes() const-
1650{-
1651 QXcbWindowFunctions::WmWindowTypes result(0);-
1652-
1653 xcb_get_property_cookie_t get_cookie =-
1654 xcb_get_property_unchecked(xcb_connection(), 0, m_window, atom(QXcbAtom::_NET_WM_WINDOW_TYPE),-
1655 XCB_ATOM_ATOM, 0, 1024);-
1656-
1657 xcb_get_property_reply_t *reply =-
1658 xcb_get_property_reply(xcb_connection(), get_cookie, __null);-
1659-
1660 if (reply
replyDescription
TRUEnever evaluated
FALSEnever evaluated
&& reply->format == 32
reply->format == 32Description
TRUEnever evaluated
FALSEnever evaluated
&& reply->type == XCB_ATOM_ATOM
reply->type == XCB_ATOM_ATOMDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1661 const xcb_atom_t *types = static_cast<const xcb_atom_t *>(xcb_get_property_value(reply));-
1662 const xcb_atom_t *types_end = types + reply->length;-
1663 for (; types != types_end
types != types_endDescription
TRUEnever evaluated
FALSEnever evaluated
; types++) {
0
1664 QXcbAtom::Atom type = connection()->qatom(*types);-
1665 switch (type) {-
1666 case
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_NORMAL:
QXcbAtom::_NET_WM_WINDOW_TYPE_NORMAL:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_NORMAL:
0
1667 result |= QXcbWindowFunctions::Normal;-
1668 break;
never executed: break;
0
1669 case
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_DESKTOP:
QXcbAtom::_NET_WM_WINDOW_TYPE_DESKTOP:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_DESKTOP:
0
1670 result |= QXcbWindowFunctions::Desktop;-
1671 break;
never executed: break;
0
1672 case
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_DOCK:
QXcbAtom::_NET_WM_WINDOW_TYPE_DOCK:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_DOCK:
0
1673 result |= QXcbWindowFunctions::Dock;-
1674 break;
never executed: break;
0
1675 case
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_TOOLBAR:
QXcbAtom::_NET_WM_WINDOW_TYPE_TOOLBAR:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_TOOLBAR:
0
1676 result |= QXcbWindowFunctions::Toolbar;-
1677 break;
never executed: break;
0
1678 case
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_MENU:
QXcbAtom::_NET_WM_WINDOW_TYPE_MENU:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_MENU:
0
1679 result |= QXcbWindowFunctions::Menu;-
1680 break;
never executed: break;
0
1681 case
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_UTILITY:
QXcbAtom::_NET_WM_WINDOW_TYPE_UTILITY:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_UTILITY:
0
1682 result |= QXcbWindowFunctions::Utility;-
1683 break;
never executed: break;
0
1684 case
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_SPLASH:
QXcbAtom::_NET_WM_WINDOW_TYPE_SPLASH:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_SPLASH:
0
1685 result |= QXcbWindowFunctions::Splash;-
1686 break;
never executed: break;
0
1687 case
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_DIALOG:
QXcbAtom::_NET_WM_WINDOW_TYPE_DIALOG:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_DIALOG:
0
1688 result |= QXcbWindowFunctions::Dialog;-
1689 break;
never executed: break;
0
1690 case
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_DROPDOWN_MENU:
QXcbAtom::_NET_WM_WINDOW_TYPE_DROPDOWN_MENU:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_DROPDOWN_MENU:
0
1691 result |= QXcbWindowFunctions::DropDownMenu;-
1692 break;
never executed: break;
0
1693 case
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_POPUP_MENU:
QXcbAtom::_NET_WM_WINDOW_TYPE_POPUP_MENU:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_POPUP_MENU:
0
1694 result |= QXcbWindowFunctions::PopupMenu;-
1695 break;
never executed: break;
0
1696 case
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_TOOLTIP:
QXcbAtom::_NET_WM_WINDOW_TYPE_TOOLTIP:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_TOOLTIP:
0
1697 result |= QXcbWindowFunctions::Tooltip;-
1698 break;
never executed: break;
0
1699 case
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_NOTIFICATION:
QXcbAtom::_NET_WM_WINDOW_TYPE_NOTIFICATION:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_NOTIFICATION:
0
1700 result |= QXcbWindowFunctions::Notification;-
1701 break;
never executed: break;
0
1702 case
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_COMBO:
QXcbAtom::_NET_WM_WINDOW_TYPE_COMBO:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_COMBO:
0
1703 result |= QXcbWindowFunctions::Combo;-
1704 break;
never executed: break;
0
1705 case
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_DND:
QXcbAtom::_NET_WM_WINDOW_TYPE_DND:
never executed: case QXcbAtom::_NET_WM_WINDOW_TYPE_DND:
0
1706 result |= QXcbWindowFunctions::Dnd;-
1707 break;
never executed: break;
0
1708 case
never executed: case QXcbAtom::_KDE_NET_WM_WINDOW_TYPE_OVERRIDE:
QXcbAtom::_KDE_NET_WM_WINDOW_TYPE_OVERRIDE:
never executed: case QXcbAtom::_KDE_NET_WM_WINDOW_TYPE_OVERRIDE:
0
1709 result |= QXcbWindowFunctions::KdeOverride;-
1710 break;
never executed: break;
0
1711 default
never executed: default:
:
never executed: default:
0
1712 break;
never executed: break;
0
1713 }-
1714 }-
1715 free(reply);-
1716 }
never executed: end of block
0
1717 return
never executed: return result;
result;
never executed: return result;
0
1718}-
1719-
1720void QXcbWindow::setWmWindowType(QXcbWindowFunctions::WmWindowTypes types, Qt::WindowFlags flags)-
1721{-
1722 QVector<xcb_atom_t> atoms;-
1723-
1724-
1725 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
1726 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_NORMAL));
never executed: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_NORMAL));
0
1727 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
1728 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DESKTOP));
never executed: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DESKTOP));
0
1729 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
1730 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DOCK));
never executed: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DOCK));
0
1731 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
1732 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_NOTIFICATION));
never executed: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_NOTIFICATION));
0
1733-
1734-
1735 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
1736 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_UTILITY));
never executed: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_UTILITY));
0
1737 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
1738 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_SPLASH));
never executed: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_SPLASH));
0
1739 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
1740 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DIALOG));
never executed: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DIALOG));
0
1741 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
1742 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_TOOLTIP));
never executed: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_TOOLTIP));
0
1743 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
1744 atoms.append(atom(QXcbAtom::_KDE_NET_WM_WINDOW_TYPE_OVERRIDE));
never executed: atoms.append(atom(QXcbAtom::_KDE_NET_WM_WINDOW_TYPE_OVERRIDE));
0
1745-
1746-
1747-
1748-
1749 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
1750 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
1751 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
1752 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
1753 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
1754 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
1755 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
1756 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
1757 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
1758 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
1759 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
1760 atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DND));
never executed: atoms.append(atom(QXcbAtom::_NET_WM_WINDOW_TYPE_DND));
0
1761-
1762-
1763 Qt::WindowType type = static_cast<Qt::WindowType>(int(flags & Qt::WindowType_Mask));-
1764 switch (type) {-
1765 case
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
  • ...
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
1766 case
never executed: case Qt::Sheet:
Qt::Sheet:
never executed: case Qt::Sheet:
0
1767 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
1768 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
1769 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
1770 case
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
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
1771 case
never executed: case Qt::Drawer:
Qt::Drawer:
never executed: case Qt::Drawer:
0
1772 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
1773 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
1774 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
1775 case
executed 16 times by 6 tests: case Qt::ToolTip:
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QToolTip
  • tst_QWidget
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
1776 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
1777 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
1778 break;
executed 16 times by 6 tests: break;
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QToolTip
  • tst_QWidget
16
1779 case
executed 1 time by 1 test: case Qt::SplashScreen:
Executed by:
  • tst_QPixmap
Qt::SplashScreen:
executed 1 time by 1 test: case Qt::SplashScreen:
Executed by:
  • tst_QPixmap
1
1780 if (!(types & QXcbWindowFunctions::Splash)
!(types & QXcb...tions::Splash)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPixmap
FALSEnever evaluated
)
0-1
1781 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
1782 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QPixmap
1
1783 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
  • ...
:
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
1784 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
1785 }-
1786-
1787 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
1788-
1789 atoms.append(atom(QXcbAtom::_KDE_NET_WM_WINDOW_TYPE_OVERRIDE));-
1790 }
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
1791-
1792 if (atoms.size() == 1
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() == atom(QXcbAtom::_NET_WM_WINDOW_TYPE_NORMAL)
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
1793 atoms.clear();
never executed: atoms.clear();
0
1794 else-
1795 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
1796-
1797 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
1798 xcb_delete_property(xcb_connection(), m_window, atom(QXcbAtom::_NET_WM_WINDOW_TYPE));-
1799 }
never executed: end of block
else {
0
1800 xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window, atom(QXcbAtom::_NET_WM_WINDOW_TYPE), XCB_ATOM_ATOM, 32, atoms.count(), atoms.constData())-
1801-
1802 ;-
1803 }
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
1804 xcb_flush(xcb_connection());-
1805}
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
1806-
1807void QXcbWindow::setWmWindowRole(const QByteArray &role)-
1808{-
1809 xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window, atom(QXcbAtom::WM_WINDOW_ROLE), XCB_ATOM_STRING, 8, role.size(), role.constData())-
1810-
1811 ;-
1812}
never executed: end of block
0
1813-
1814void QXcbWindow::setParentRelativeBackPixmapStatic(QWindow *window)-
1815{-
1816 if (window->handle()
window->handle()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1817 static_cast<
never executed: static_cast<QXcbWindow *>(window->handle())->setParentRelativeBackPixmap();
QXcbWindow *>(window->handle())->setParentRelativeBackPixmap();
never executed: static_cast<QXcbWindow *>(window->handle())->setParentRelativeBackPixmap();
0
1818}
never executed: end of block
0
1819-
1820void QXcbWindow::setParentRelativeBackPixmap()-
1821{-
1822 const quint32 mask = XCB_CW_BACK_PIXMAP;-
1823 const quint32 values[] = { XCB_BACK_PIXMAP_PARENT_RELATIVE };-
1824 xcb_change_window_attributes(xcb_connection(), m_window, mask, values);-
1825}
never executed: end of block
0
1826-
1827bool QXcbWindow::requestSystemTrayWindowDockStatic(const QWindow *window)-
1828{-
1829 if (window->handle()
window->handle()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSystemTrayIcon
FALSEnever evaluated
)
0-3
1830 return
executed 3 times by 1 test: return static_cast<QXcbWindow *>(window->handle())->requestSystemTrayWindowDock();
Executed by:
  • tst_QSystemTrayIcon
static_cast<QXcbWindow *>(window->handle())->requestSystemTrayWindowDock();
executed 3 times by 1 test: return static_cast<QXcbWindow *>(window->handle())->requestSystemTrayWindowDock();
Executed by:
  • tst_QSystemTrayIcon
3
1831 return
never executed: return false;
false;
never executed: return false;
0
1832}-
1833-
1834bool QXcbWindow::requestSystemTrayWindowDock() const-
1835{-
1836 if (!connection()->systemTrayTracker()
!connection()-...mTrayTracker()Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSystemTrayIcon
)
0-3
1837 return
never executed: return false;
false;
never executed: return false;
0
1838 connection()->systemTrayTracker()->requestSystemTrayWindowDock(m_window);-
1839 return
executed 3 times by 1 test: return true;
Executed by:
  • tst_QSystemTrayIcon
true;
executed 3 times by 1 test: return true;
Executed by:
  • tst_QSystemTrayIcon
3
1840}-
1841-
1842QRect QXcbWindow::systemTrayWindowGlobalGeometryStatic(const QWindow *window)-
1843{-
1844 if (window->handle()
window->handle()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSystemTrayIcon
FALSEnever evaluated
)
0-4
1845 return
executed 4 times by 1 test: return static_cast<QXcbWindow *>(window->handle())->systemTrayWindowGlobalGeometry();
Executed by:
  • tst_QSystemTrayIcon
static_cast<QXcbWindow *>(window->handle())->systemTrayWindowGlobalGeometry();
executed 4 times by 1 test: return static_cast<QXcbWindow *>(window->handle())->systemTrayWindowGlobalGeometry();
Executed by:
  • tst_QSystemTrayIcon
4
1846 return
never executed: return QRect();
QRect();
never executed: return QRect();
0
1847}-
1848-
1849QRect QXcbWindow::systemTrayWindowGlobalGeometry() const-
1850{-
1851 if (!connection()->systemTrayTracker()
!connection()-...mTrayTracker()Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSystemTrayIcon
)
0-4
1852 return
never executed: return QRect();
QRect();
never executed: return QRect();
0
1853 return
executed 4 times by 1 test: return connection()->systemTrayTracker()->systemTrayWindowGlobalGeometry(m_window);
Executed by:
  • tst_QSystemTrayIcon
connection()->systemTrayTracker()->systemTrayWindowGlobalGeometry(m_window);
executed 4 times by 1 test: return connection()->systemTrayTracker()->systemTrayWindowGlobalGeometry(m_window);
Executed by:
  • tst_QSystemTrayIcon
4
1854}-
1855-
1856class ExposeCompressor-
1857{-
1858public:-
1859 ExposeCompressor(xcb_window_t window, QRegion *region)-
1860 : m_window(window)-
1861 , m_region(region)-
1862 , m_pending(true)-
1863 {-
1864 }
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
1865-
1866 bool checkEvent(xcb_generic_event_t *event)-
1867 {-
1868 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
1869 return
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
  • ...
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
1870 if ((
(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
  • ...
event->response_type & ~0x80) != 12
(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
1871 return
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
  • ...
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
1872 xcb_expose_event_t *expose = (xcb_expose_event_t *)event;-
1873 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
1874 return
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
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
1875 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
1876 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
1877 *m_region |= QRect(expose->x, expose->y, expose->width, expose->height);-
1878 return
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
  • ...
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
1879 }-
1880-
1881 bool pending() const-
1882 {-
1883 return
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
  • ...
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
1884 }-
1885-
1886private:-
1887 xcb_window_t m_window;-
1888 QRegion *m_region;-
1889 bool m_pending;-
1890};-
1891-
1892bool QXcbWindow::compressExposeEvent(QRegion &exposeRegion)-
1893{-
1894 ExposeCompressor compressor(m_window, &exposeRegion);-
1895 xcb_generic_event_t *filter = 0;-
1896 do {-
1897 filter = connection()->checkEvent(compressor);-
1898 free(filter);-
1899 }
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
  • ...
while (filter
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
1900 return
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
  • ...
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
1901}-
1902-
1903bool QXcbWindow::handleGenericEvent(xcb_generic_event_t *event, long *result)-
1904{-
1905 return
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
  • ...
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
1906 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
1907 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
1908 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
1909}-
1910-
1911void QXcbWindow::handleExposeEvent(const xcb_expose_event_t *event)-
1912{-
1913 QRect rect(event->x, event->y, event->width, event->height);-
1914-
1915 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
1916 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
1917 else-
1918 m_exposeRegion |= rect;
never executed: m_exposeRegion |= rect;
0
1919-
1920 bool pending = compressExposeEvent(m_exposeRegion);-
1921-
1922-
1923 if (event->count == 0
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
|| !pending
!pendingDescription
TRUEevaluated 12 times by 5 tests
Evaluated by:
  • tst_QMdiArea
  • tst_QSystemTrayIcon
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
FALSEnever evaluated
) {
0-311
1924 QWindowSystemInterface::handleExposeEvent(window(), m_exposeRegion);-
1925 m_exposeRegion = QRegion();-
1926 }
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
1927}
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
1928-
1929void QXcbWindow::handleClientMessageEvent(const xcb_client_message_event_t *event)-
1930{-
1931 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
1932 return;
never executed: return;
0
1933-
1934 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
1935 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
1936 QWindowSystemInterface::handleCloseEvent(window());-
1937 }
never executed: end of block
else if (event->data.data32[0] == atom(QXcbAtom::WM_TAKE_FOCUS)
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
1938 connection()->setTime(event->data.data32[1]);-
1939 relayFocusToModalWindow();-
1940 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
1941 } 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
1942 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
1943 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
1944-
1945 xcb_client_message_event_t reply = *event;-
1946-
1947 reply.response_type = 33;-
1948 reply.window = xcbScreen()->root();-
1949-
1950 xcb_send_event(xcb_connection(), 0, xcbScreen()->root(), XCB_EVENT_MASK_STRUCTURE_NOTIFY | XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT, (const char *)&reply);-
1951 xcb_flush(xcb_connection());-
1952 }
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
  • ...
else if (event->data.data32[0] == atom(QXcbAtom::_NET_WM_SYNC_REQUEST)
event->data.da..._SYNC_REQUEST)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-268
1953 connection()->setTime(event->data.data32[1]);-
1954 m_syncValue.lo = event->data.data32[2];-
1955 m_syncValue.hi = event->data.data32[3];-
1956 if (m_usingSyncProtocol
m_usingSyncProtocolDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1957 m_syncState = SyncReceived;
never executed: m_syncState = SyncReceived;
0
1958-
1959 }
never executed: end of block
else if (event->data.data32[0] == atom(QXcbAtom::_NET_WM_CONTEXT_HELP)
event->data.da..._CONTEXT_HELP)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1960 QWindowSystemInterface::handleEnterWhatsThisEvent();-
1961-
1962 }
never executed: end of block
else {
0
1963 QMessageLogger(__FILE__, 2076, __PRETTY_FUNCTION__).warning() << "QXcbWindow: Unhandled WM_PROTOCOLS message:" << connection()->atomName(event->data.data32[0]);-
1964 }
never executed: end of block
0
1965-
1966 } 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
1967 connection()->drag()->handleEnter(this, event);-
1968 }
never executed: end of block
else if (event->type == atom(QXcbAtom::XdndPosition)
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
1969 connection()->drag()->handlePosition(this, event);-
1970 }
never executed: end of block
else if (event->type == atom(QXcbAtom::XdndLeave)
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
1971 connection()->drag()->handleLeave(this, event);-
1972 }
never executed: end of block
else if (event->type == atom(QXcbAtom::XdndDrop)
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
1973 connection()->drag()->handleDrop(this, event);-
1974-
1975 }
never executed: end of block
else if (event->type == atom(QXcbAtom::_XEMBED)
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
1976 handleXEmbedMessage(event);-
1977 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QSystemTrayIcon
else if (event->type == atom(QXcbAtom::_NET_ACTIVE_WINDOW)
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
1978 doFocusIn();-
1979 }
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
  • ...
else if (event->type == atom(QXcbAtom::MANAGER)
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
1980 || 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
1981 || 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
1982-
1983-
1984 }
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
else if (event->type == atom(QXcbAtom::_COMPIZ_DECOR_PENDING)
event->type ==...DECOR_PENDING)Description
TRUEnever evaluated
FALSEnever evaluated
0-55
1985 || event->type == atom(QXcbAtom::_COMPIZ_DECOR_REQUEST)
event->type ==...DECOR_REQUEST)Description
TRUEnever evaluated
FALSEnever evaluated
0
1986 || event->type == atom(QXcbAtom::_COMPIZ_DECOR_DELETE_PIXMAP)
event->type ==...DELETE_PIXMAP)Description
TRUEnever evaluated
FALSEnever evaluated
0
1987 || event->type == atom(QXcbAtom::_COMPIZ_TOOLKIT_ACTION)
event->type ==...OOLKIT_ACTION)Description
TRUEnever evaluated
FALSEnever evaluated
0
1988 || event->type == atom(QXcbAtom::_GTK_LOAD_ICONTHEMES)
event->type ==...AD_ICONTHEMES)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1989-
1990 }
never executed: end of block
else {
0
1991 QMessageLogger(__FILE__, 2104, __PRETTY_FUNCTION__).warning() << "QXcbWindow: Unhandled client message:" << connection()->atomName(event->type);-
1992 }
never executed: end of block
0
1993}-
1994-
1995void QXcbWindow::handleConfigureNotifyEvent(const xcb_configure_notify_event_t *event)-
1996{-
1997 bool fromSendEvent = (event->response_type & 0x80);-
1998 QPoint pos(event->x, event->y);-
1999 if (!parent()
!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
&& !fromSendEvent
!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
2000-
2001 xcb_translate_coordinates_cookie_t cookie = xcb_translate_coordinates(xcb_connection(), xcb_window(),-
2002 xcbScreen()->root(), 0, 0);-
2003 xcb_translate_coordinates_reply_t *reply = xcb_translate_coordinates_reply(xcb_connection(), cookie, __null);-
2004 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
2005 pos.setX(reply->dst_x);-
2006 pos.setY(reply->dst_y);-
2007 free(reply);-
2008 }
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
2009 }
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
2010-
2011 const QRect actualGeometry = QRect(pos, QSize(event->width, event->height));-
2012 QPlatformScreen *newScreen = parent()
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
  • ...
? parent()->screen() : screenForGeometry(actualGeometry);
22-5794
2013 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
2014 return;
never executed: return;
0
2015-
2016-
2017-
2018 QPlatformWindow::setGeometry(actualGeometry);-
2019-
2020-
2021-
2022-
2023-
2024 QWindowSystemInterface::handleGeometryChange(window(), actualGeometry);-
2025-
2026-
2027-
2028-
2029 QWindowSystemInterface::handleWindowScreenChanged(window(), newScreen->screen());-
2030-
2031 if (m_usingSyncProtocol
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 == SyncReceived
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
2032 m_syncState = SyncAndConfigureReceived;
never executed: m_syncState = SyncAndConfigureReceived;
0
2033-
2034 m_dirtyFrameMargins = true;-
2035}
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
2036-
2037bool QXcbWindow::isExposed() const-
2038{-
2039 return
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
  • ...
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
2040}-
2041-
2042bool QXcbWindow::isEmbedded(const QPlatformWindow *parentWindow) const-
2043{-
2044 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
2045 return
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
  • ...
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
2046-
2047 return
never executed: return parentWindow ? (parentWindow == parent()) : true;
parentWindow
parentWindowDescription
TRUEnever evaluated
FALSEnever evaluated
? (parentWindow == parent()) : true;
never executed: return parentWindow ? (parentWindow == parent()) : true;
0
2048}-
2049-
2050QPoint QXcbWindow::mapToGlobal(const QPoint &pos) const-
2051{-
2052 if (!m_embedded
!m_embeddedDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
2053 return
never executed: return pos;
pos;
never executed: return pos;
0
2054-
2055 QPoint ret;-
2056 xcb_translate_coordinates_cookie_t cookie =-
2057 xcb_translate_coordinates(xcb_connection(), xcb_window(), xcbScreen()->root(),-
2058 pos.x(), pos.y());-
2059 xcb_translate_coordinates_reply_t *reply =-
2060 xcb_translate_coordinates_reply(xcb_connection(), cookie, __null);-
2061 if (reply
replyDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
2062 ret.setX(reply->dst_x);-
2063 ret.setY(reply->dst_y);-
2064 free(reply);-
2065 }
never executed: end of block
0
2066-
2067 return
never executed: return ret;
ret;
never executed: return ret;
0
2068}-
2069-
2070QPoint QXcbWindow::mapFromGlobal(const QPoint &pos) const-
2071{-
2072 if (!m_embedded
!m_embeddedDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
2073 return
never executed: return pos;
pos;
never executed: return pos;
0
2074-
2075 QPoint ret;-
2076 xcb_translate_coordinates_cookie_t cookie =-
2077 xcb_translate_coordinates(xcb_connection(), xcbScreen()->root(), xcb_window(),-
2078 pos.x(), pos.y());-
2079 xcb_translate_coordinates_reply_t *reply =-
2080 xcb_translate_coordinates_reply(xcb_connection(), cookie, __null);-
2081 if (reply
replyDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
2082 ret.setX(reply->dst_x);-
2083 ret.setY(reply->dst_y);-
2084 free(reply);-
2085 }
never executed: end of block
0
2086-
2087 return
never executed: return ret;
ret;
never executed: return ret;
0
2088}-
2089-
2090void QXcbWindow::handleMapNotifyEvent(const xcb_map_notify_event_t *event)-
2091{-
2092 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
2093 m_mapped = true;-
2094 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
2095 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
2096-
2097 QRegion exposeRegion = QRect(QPoint(), geometry().size());-
2098 compressExposeEvent(exposeRegion);-
2099 QWindowSystemInterface::handleExposeEvent(window(), exposeRegion);-
2100 }
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
2101}
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
2102-
2103void QXcbWindow::handleUnmapNotifyEvent(const xcb_unmap_notify_event_t *event)-
2104{-
2105 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
2106 m_mapped = false;-
2107 QWindowSystemInterface::handleExposeEvent(window(), QRegion());-
2108 }
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
2109}
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
2110-
2111void QXcbWindow::handleButtonPressEvent(int event_x, int event_y, int root_x, int root_y,-
2112 int detail, Qt::KeyboardModifiers modifiers, xcb_timestamp_t timestamp, Qt::MouseEventSource source)-
2113{-
2114 const bool isWheel = detail >= 4
detail >= 4Description
TRUEnever evaluated
FALSEnever evaluated
&& detail <= 7
detail <= 7Description
TRUEnever evaluated
FALSEnever evaluated
;
0
2115 if (!isWheel
!isWheelDescription
TRUEnever evaluated
FALSEnever evaluated
&& window() != QGuiApplication::focusWindow()
window() != QG...:focusWindow()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2116 QWindow *w = static_cast<QWindowPrivate *>(QObjectPrivate::get(window()))->eventReceiver();-
2117 if (!(w->flags() & (Qt::WindowDoesNotAcceptFocus | Qt::BypassWindowManagerHint))
!(w->flags() &...wManagerHint))Description
TRUEnever evaluated
FALSEnever evaluated
0
2118 && w->type() != Qt::ToolTip
w->type() != Qt::ToolTipDescription
TRUEnever evaluated
FALSEnever evaluated
0
2119 && w->type() != Qt::Popup
w->type() != Qt::PopupDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
2120 w->requestActivate();-
2121 }
never executed: end of block
0
2122 }
never executed: end of block
0
2123-
2124 updateNetWmUserTime(timestamp);-
2125-
2126 if (m_embedded
m_embeddedDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
2127 if (window() != QGuiApplication::focusWindow()
window() != QG...:focusWindow()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2128 const QXcbWindow *container = static_cast<const QXcbWindow *>(parent());-
2129 ((!(container != 0)) ? qt_assert("container != 0",__FILE__,2242) : qt_noop());-
2130-
2131 sendXEmbedMessage(container->xcb_window(), XEMBED_REQUEST_FOCUS);-
2132 }
never executed: end of block
0
2133 }
never executed: end of block
0
2134 QPoint local(event_x, event_y);-
2135 QPoint global(root_x, root_y);-
2136-
2137 if (isWheel
isWheelDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
2138 if (!connection()->isAtLeastXI21()
!connection()->isAtLeastXI21()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2139-
2140 int delta = 120 * ((detail == 4 || detail == 6) ? 1 : -1);-
2141 bool hor = (((detail == 4
detail == 4Description
TRUEnever evaluated
FALSEnever evaluated
|| detail == 5
detail == 5Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2142 && (
(modifiers & Qt::AltModifier)Description
TRUEnever evaluated
FALSEnever evaluated
modifiers & Qt::AltModifier)
(modifiers & Qt::AltModifier)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2143 || (detail == 6
detail == 6Description
TRUEnever evaluated
FALSEnever evaluated
|| detail == 7
detail == 7Description
TRUEnever evaluated
FALSEnever evaluated
));
0
2144-
2145 QWindowSystemInterface::handleWheelEvent(window(), timestamp,-
2146 local, global, delta, hor ? Qt::Horizontal : Qt::Vertical, modifiers);-
2147 }
never executed: end of block
0
2148 return;
never executed: return;
0
2149 }-
2150-
2151 connection()->setMousePressWindow(this);-
2152-
2153 handleMouseEvent(timestamp, local, global, modifiers, source);-
2154}
never executed: end of block
0
2155-
2156void QXcbWindow::handleButtonReleaseEvent(int event_x, int event_y, int root_x, int root_y,-
2157 int detail, Qt::KeyboardModifiers modifiers, xcb_timestamp_t timestamp, Qt::MouseEventSource source)-
2158{-
2159 QPoint local(event_x, event_y);-
2160 QPoint global(root_x, root_y);-
2161-
2162 if (detail >= 4
detail >= 4Description
TRUEnever evaluated
FALSEnever evaluated
&& detail <= 7
detail <= 7Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2163-
2164 return;
never executed: return;
0
2165 }-
2166-
2167 if (connection()->buttons() == Qt::NoButton
connection()->...= Qt::NoButtonDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
2168 connection()->setMousePressWindow(nullptr);
never executed: connection()->setMousePressWindow(nullptr);
0
2169-
2170 handleMouseEvent(timestamp, local, global, modifiers, source);-
2171}
never executed: end of block
0
2172-
2173static inline bool doCheckUnGrabAncestor(QXcbConnection *conn)-
2174{-
2175-
2176-
2177-
2178-
2179-
2180-
2181 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
2182 const bool mouseButtonsPressed = (conn->buttons() != Qt::NoButton);-
2183-
2184 return
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
  • ...
mouseButtonsPressed
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()
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()
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
);
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
  • ...
0-824
2185-
2186-
2187-
2188 }-
2189 return
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
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
2190}-
2191-
2192static bool ignoreLeaveEvent(quint8 mode, quint8 detail, QXcbConnection *conn = nullptr)-
2193{-
2194 return
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)
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
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
0-135
2195 && mode == XCB_NOTIFY_MODE_GRAB
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_NOTIFY_DETAIL_ANCESTOR
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
)
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
0-135
2196 || (mode == XCB_NOTIFY_MODE_UNGRAB
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_NOTIFY_DETAIL_INFERIOR
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
)
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
0-135
2197 || detail == XCB_NOTIFY_DETAIL_VIRTUAL
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
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
0-135
2198 || detail == XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL
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
);
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
0-135
2199}-
2200-
2201static bool ignoreEnterEvent(quint8 mode, quint8 detail, QXcbConnection *conn = nullptr)-
2202{-
2203 return
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)
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
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
  • ...
0-709
2204 && mode == XCB_NOTIFY_MODE_UNGRAB
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_NOTIFY_DETAIL_ANCESTOR
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
)
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
  • ...
0-709
2205 || (mode != XCB_NOTIFY_MODE_NORMAL
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_UNGRAB
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
)
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
  • ...
6-709
2206 || detail == XCB_NOTIFY_DETAIL_VIRTUAL
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
  • ...
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
  • ...
2-709
2207 || detail == XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL
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
  • ...
);
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
  • ...
2-709
2208}-
2209-
2210class EnterEventChecker-
2211{-
2212public:-
2213 bool checkEvent(xcb_generic_event_t *event)-
2214 {-
2215 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
2216 return
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
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
2217 if ((
(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
event->response_type & ~0x80) != 7
(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
2218 return
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
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
2219-
2220 xcb_enter_notify_event_t *enter = (xcb_enter_notify_event_t *)event;-
2221 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
2222 return
executed 8 times by 3 tests: return false;
Executed by:
  • tst_QAccessibility
  • tst_QMdiSubWindow
  • tst_QMenu
false;
executed 8 times by 3 tests: return false;
Executed by:
  • tst_QAccessibility
  • tst_QMdiSubWindow
  • tst_QMenu
8
2223-
2224 return
executed 12 times by 6 tests: return true;
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QOpenGLWidget
  • tst_QPushButton
  • tst_QTreeWidget
  • tst_QWidget
true;
executed 12 times by 6 tests: return true;
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QOpenGLWidget
  • tst_QPushButton
  • tst_QTreeWidget
  • tst_QWidget
12
2225 }-
2226};-
2227-
2228void QXcbWindow::handleEnterNotifyEvent(int event_x, int event_y, int root_x, int root_y,-
2229 quint8 mode, quint8 detail, xcb_timestamp_t timestamp)-
2230{-
2231 connection()->setTime(timestamp);-
2232-
2233 connection()->handleEnterEvent();-
2234-
2235-
2236 const QPoint global = QPoint(root_x, root_y);-
2237-
2238 if (ignoreEnterEvent(mode, detail, connection())
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()->mousePressWindow()
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
2239 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
2240-
2241 const QPoint local(event_x, event_y);-
2242 QWindowSystemInterface::handleEnterEvent(window(), local, global);-
2243}
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
2244-
2245void QXcbWindow::handleLeaveNotifyEvent(int root_x, int root_y,-
2246 quint8 mode, quint8 detail, xcb_timestamp_t timestamp)-
2247{-
2248 connection()->setTime(timestamp);-
2249-
2250 if (ignoreLeaveEvent(mode, detail, connection())
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()->mousePressWindow()
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
2251 return;
never executed: return;
0
2252-
2253 EnterEventChecker checker;-
2254 xcb_enter_notify_event_t *enter = (xcb_enter_notify_event_t *)connection()->checkEvent(checker);-
2255 QXcbWindow *enterWindow = enter
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
? connection()->platformWindowFromId(enter->event) : 0;
12-123
2256-
2257 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
2258 QPoint local(enter->event_x, enter->event_y);-
2259 QPoint global = QPoint(root_x, root_y);-
2260 QWindowSystemInterface::handleEnterLeaveEvent(enterWindow->window(), window(), local, global);-
2261 }
executed 12 times by 6 tests: end of block
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QOpenGLWidget
  • tst_QPushButton
  • tst_QTreeWidget
  • tst_QWidget
else {
12
2262 QWindowSystemInterface::handleLeaveEvent(window());-
2263 }
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
2264-
2265 free(enter);-
2266}
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
2267-
2268void QXcbWindow::handleMotionNotifyEvent(int event_x, int event_y, int root_x, int root_y,-
2269 Qt::KeyboardModifiers modifiers, xcb_timestamp_t timestamp, Qt::MouseEventSource source)-
2270{-
2271 QPoint local(event_x, event_y);-
2272 QPoint global(root_x, root_y);-
2273-
2274-
2275-
2276 const bool isMouseButtonPressed = (connection()->buttons() != Qt::NoButton);-
2277 const bool hasMousePressWindow = (connection()->mousePressWindow() != nullptr);-
2278 if (isMouseButtonPressed
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
&& !hasMousePressWindow
!hasMousePressWindowDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-386
2279 connection()->setMousePressWindow(this);
never executed: connection()->setMousePressWindow(this);
0
2280 else if (hasMousePressWindow
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
&& !isMouseButtonPressed
!isMouseButtonPressedDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-386
2281 connection()->setMousePressWindow(nullptr);
never executed: connection()->setMousePressWindow(nullptr);
0
2282-
2283 handleMouseEvent(timestamp, local, global, modifiers, source);-
2284}
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
2285-
2286-
2287void QXcbWindow::handleButtonPressEvent(const xcb_button_press_event_t *event)-
2288{-
2289 Qt::KeyboardModifiers modifiers = connection()->keyboard()->translateModifiers(event->state);-
2290 handleButtonPressEvent(event->event_x, event->event_y, event->root_x, event->root_y, event->detail,-
2291 modifiers, event->time);-
2292}
never executed: end of block
0
2293-
2294void QXcbWindow::handleButtonReleaseEvent(const xcb_button_release_event_t *event)-
2295{-
2296 Qt::KeyboardModifiers modifiers = connection()->keyboard()->translateModifiers(event->state);-
2297 handleButtonReleaseEvent(event->event_x, event->event_y, event->root_x, event->root_y, event->detail,-
2298 modifiers, event->time);-
2299}
never executed: end of block
0
2300-
2301void QXcbWindow::handleMotionNotifyEvent(const xcb_motion_notify_event_t *event)-
2302{-
2303 Qt::KeyboardModifiers modifiers = connection()->keyboard()->translateModifiers(event->state);-
2304 handleMotionNotifyEvent(event->event_x, event->event_y, event->root_x, event->root_y, modifiers, event->time);-
2305}
never executed: end of block
0
2306-
2307-
2308static inline int fixed1616ToInt(FP1616 val)-
2309{-
2310 return
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
  • ...
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
2311}-
2312-
2313-
2314void QXcbWindow::handleXIMouseEvent(xcb_ge_event_t *event, Qt::MouseEventSource source)-
2315{-
2316 QXcbConnection *conn = connection();-
2317 xXIDeviceEvent *ev = reinterpret_cast<xXIDeviceEvent *>(event);-
2318 const Qt::KeyboardModifiers modifiers = conn->keyboard()->translateModifiers(ev->mods.effective_mods);-
2319 const int event_x = fixed1616ToInt(ev->event_x);-
2320 const int event_y = fixed1616ToInt(ev->event_y);-
2321 const int root_x = fixed1616ToInt(ev->root_x);-
2322 const int root_y = fixed1616ToInt(ev->root_y);-
2323-
2324 conn->keyboard()->updateXKBStateFromXI(&ev->mods, &ev->group);-
2325-
2326 const Qt::MouseButton button = conn->xiToQtMouseButton(ev->detail);-
2327-
2328 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
2329 unsigned char *buttonMask = (unsigned char *) &ev[1];-
2330 for (int i = 1; i <= 15
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
; ++i)
386-5790
2331 conn->setButton(conn->translateMouseButton(i), (((unsigned char*)(buttonMask))[(i)>>3] & (1 << ((i) & 7))));
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
2332 }
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
2333-
2334 const char *sourceName = 0;-
2335 if (__builtin_expect(!!(lcQpaXInputEvents().isDebugEnabled()), false)
__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
2336 const QMetaObject *metaObject = qt_getEnumMetaObject(source);-
2337 const QMetaEnum me = metaObject->enumerator(metaObject->indexOfEnumerator(qt_getEnumName(source)));-
2338 sourceName = me.valueToKey(source);-
2339 }
never executed: end of block
0
2340-
2341 switch (ev->evtype) {-
2342 case
never executed: case 4:
4:
never executed: case 4:
0
2343 if (__builtin_expect(!!(lcQpaXInputEvents().isDebugEnabled()), false)
__builtin_expe...led()), false)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2344 for (bool qt_category_enabled = lcQpaXInputEvents().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 2457, __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("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);
0
2345 conn->setButton(button, true);-
2346 handleButtonPressEvent(event_x, event_y, root_x, root_y, ev->detail, modifiers, ev->time, source);-
2347 break;
never executed: break;
0
2348 case
never executed: case 5:
5:
never executed: case 5:
0
2349 if (__builtin_expect(!!(lcQpaXInputEvents().isDebugEnabled()), false)
__builtin_expe...led()), false)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2350 for (bool qt_category_enabled = lcQpaXInputEvents().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 2463, __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("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);
0
2351 conn->setButton(button, false);-
2352 handleButtonReleaseEvent(event_x, event_y, root_x, root_y, ev->detail, modifiers, ev->time, source);-
2353 break;
never executed: break;
0
2354 case
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
6:
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
2355 if (__builtin_expect(!!(lcQpaXInputEvents().isDebugEnabled()), false)
__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
2356 for (bool qt_category_enabled = lcQpaXInputEvents().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 2469, __PRETTY_FUNCTION__, lcQpaXInputEvents().categoryName()).debug("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);
0
2357 handleMotionNotifyEvent(event_x, event_y, root_x, root_y, modifiers, ev->time, source);-
2358 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
2359 default
never executed: default:
:
never executed: default:
0
2360 QMessageLogger(__FILE__, 2473, __PRETTY_FUNCTION__).warning() << "Unrecognized XI2 mouse event" << ev->evtype;-
2361 break;
never executed: break;
0
2362 }-
2363}-
2364-
2365-
2366void QXcbWindow::handleXIEnterLeave(xcb_ge_event_t *event)-
2367{-
2368 xXIEnterEvent *ev = reinterpret_cast<xXIEnterEvent *>(event);-
2369-
2370-
2371-
2372 QXcbWindow *mouseGrabber = connection()->mouseGrabber();-
2373 if (mouseGrabber
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 != this
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
2374 && (ev->evtype != 8
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
|| QGuiApplicationPrivate::currentMouseWindow != window()
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
2375 return;
executed 13 times by 5 tests: return;
Executed by:
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QMdiSubWindow
  • tst_QMenu
13
2376 }-
2377-
2378 const int root_x = fixed1616ToInt(ev->root_x);-
2379 const int root_y = fixed1616ToInt(ev->root_y);-
2380-
2381 switch (ev->evtype) {-
2382 case
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
  • ...
7:
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
2383 const int event_x = fixed1616ToInt(ev->event_x);-
2384 const int event_y = fixed1616ToInt(ev->event_y);-
2385 for (bool qt_category_enabled = lcQpaXInput().isDebugEnabled(); qt_category_enabled
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
  • ...
; qt_category_enabled = false) 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);
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);
0-689
2386 handleEnterNotifyEvent(event_x, event_y, root_x, root_y, ev->mode, ev->detail, ev->time);-
2387 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
2388 }-
2389 case
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
8:
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
2390 for (bool qt_category_enabled = lcQpaXInput().isDebugEnabled(); qt_category_enabled
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
; qt_category_enabled = false) QMessageLogger(__FILE__, 2503, __PRETTY_FUNCTION__, lcQpaXInput().categoryName()).debug("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);
0-135
2391 connection()->keyboard()->updateXKBStateFromXI(&ev->mods, &ev->group);-
2392 handleLeaveNotifyEvent(root_x, root_y, ev->mode, ev->detail, ev->time);-
2393 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
2394 }-
2395}
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
2396-
2397-
2398QXcbWindow *QXcbWindow::toWindow() { return
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
  • ...
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
2399-
2400void QXcbWindow::handleMouseEvent(xcb_timestamp_t time, const QPoint &local, const QPoint &global,-
2401 Qt::KeyboardModifiers modifiers, Qt::MouseEventSource source)-
2402{-
2403 connection()->setTime(time);-
2404 QWindowSystemInterface::handleMouseEvent(window(), time, local, global, connection()->buttons(), modifiers, source);-
2405}
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
2406-
2407void QXcbWindow::handleEnterNotifyEvent(const xcb_enter_notify_event_t *event)-
2408{-
2409 handleEnterNotifyEvent(event->event_x, event->event_y, event->root_x, event->root_y, event->mode, event->detail, event->time);-
2410}
never executed: end of block
0
2411-
2412void QXcbWindow::handleLeaveNotifyEvent(const xcb_leave_notify_event_t *event)-
2413{-
2414 handleLeaveNotifyEvent(event->root_x, event->root_y, event->mode, event->detail, event->time);-
2415}
never executed: end of block
0
2416-
2417void QXcbWindow::handlePropertyNotifyEvent(const xcb_property_notify_event_t *event)-
2418{-
2419 connection()->setTime(event->time);-
2420-
2421 const bool propertyDeleted = event->state == XCB_PROPERTY_DELETE;-
2422-
2423 if (event->atom == atom(QXcbAtom::_NET_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 == atom(QXcbAtom::WM_STATE)
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
2424 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
2425 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
2426-
2427 Qt::WindowState newState = Qt::WindowNoState;-
2428 if (event->atom == atom(QXcbAtom::WM_STATE)
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
2429 const xcb_get_property_cookie_t get_cookie =-
2430 xcb_get_property(xcb_connection(), 0, m_window, atom(QXcbAtom::WM_STATE),-
2431 XCB_ATOM_ANY, 0, 1024);-
2432-
2433 xcb_get_property_reply_t *reply =-
2434 xcb_get_property_reply(xcb_connection(), get_cookie, __null);-
2435-
2436 if (reply
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 == 32
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 == atom(QXcbAtom::WM_STATE)
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
2437 const quint32 *data = (const quint32 *)xcb_get_property_value(reply);-
2438 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
2439 if (data[0] == XCB_ICCCM_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
2440 || (data[0] == XCB_ICCCM_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
2441 && 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
2442 newState = Qt::WindowMinimized;-
2443 }
executed 3 times by 2 tests: end of block
Executed by:
  • tst_QListView
  • tst_QWidget
3
2444 }
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
2445 }
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
2446 free(reply);-
2447 }
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
  • ...
else {
2454
2448 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
2449 newState = Qt::WindowMinimized;
executed 5 times by 2 tests: newState = Qt::WindowMinimized;
Executed by:
  • tst_QListView
  • tst_QWidget
5
2450 }
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
2451-
2452 if (newState != Qt::WindowMinimized
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
2453 const NetWmStates states = netWmStates();-
2454 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
2455 newState = Qt::WindowFullScreen;
executed 14 times by 3 tests: newState = Qt::WindowFullScreen;
Executed by:
  • tst_QSizeGrip
  • tst_QWidget
  • tst_QWindow
14
2456 else if ((states & NetWmStateMaximizedHorz) && (states & NetWmStateMaximizedVert))-
2457 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
2458 }
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
2459-
2460 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
2461 QWindowSystemInterface::handleWindowStateChanged(window(), newState);-
2462 m_lastWindowStateEvent = newState;-
2463 m_windowState = newState;-
2464 if (m_windowState == Qt::WindowMinimized
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()->mouseGrabber() == this
connection()->...bber() == thisDescription
TRUEnever evaluated
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QWidget
)
0-2527
2465 connection()->setMouseGrabber(nullptr);
never executed: connection()->setMouseGrabber(nullptr);
0
2466 }
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
2467 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
2468 } 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
2469 m_dirtyFrameMargins = true;-
2470 }
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
2471}
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
2472-
2473void QXcbWindow::handleFocusInEvent(const xcb_focus_in_event_t *event)-
2474{-
2475-
2476-
2477 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
2478 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
2479 doFocusIn();-
2480}
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
2481-
2482-
2483void QXcbWindow::handleFocusOutEvent(const xcb_focus_out_event_t *event)-
2484{-
2485-
2486-
2487 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
2488 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
2489 doFocusOut();-
2490}
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
2491-
2492void QXcbWindow::updateSyncRequestCounter()-
2493{-
2494 if (m_syncState != SyncAndConfigureReceived
m_syncState !=...figureReceivedDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
2495-
2496 return;
never executed: return;
0
2497 }-
2498 if (m_usingSyncProtocol
m_usingSyncProtocolDescription
TRUEnever evaluated
FALSEnever evaluated
&& (m_syncValue.lo != 0
m_syncValue.lo != 0Description
TRUEnever evaluated
FALSEnever evaluated
|| m_syncValue.hi != 0
m_syncValue.hi != 0Description
TRUEnever evaluated
FALSEnever evaluated
)) {
0
2499 xcb_sync_set_counter(xcb_connection(), m_syncCounter, m_syncValue);-
2500 xcb_flush(xcb_connection());-
2501-
2502 m_syncValue.lo = 0;-
2503 m_syncValue.hi = 0;-
2504 m_syncState = NoSyncNeeded;-
2505 }
never executed: end of block
0
2506}
never executed: end of block
0
2507-
2508bool QXcbWindow::setKeyboardGrabEnabled(bool grab)-
2509{-
2510 if (grab
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()
!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
2511 return
never executed: return false;
false;
never executed: return false;
0
2512-
2513 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
2514 xcb_ungrab_keyboard(xcb_connection(), XCB_TIME_CURRENT_TIME);-
2515 return
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
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
2516 }-
2517 xcb_grab_keyboard_cookie_t cookie = xcb_grab_keyboard(xcb_connection(), false,-
2518 m_window, XCB_TIME_CURRENT_TIME,-
2519 XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC);-
2520 xcb_grab_keyboard_reply_t *reply = xcb_grab_keyboard_reply(xcb_connection(), cookie, __null);-
2521 bool result = !(!reply
!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 != XCB_GRAB_STATUS_SUCCESS
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
2522 free(reply);-
2523 return
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
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
2524}-
2525-
2526bool QXcbWindow::setMouseGrabEnabled(bool grab)-
2527{-
2528 if (!grab
!grabDescription
TRUEevaluated 168 times by 21 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidgetAction
FALSEevaluated 197 times by 21 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidgetAction
&& connection()->mouseGrabber() == this
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
2529 connection()->setMouseGrabber(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
2530-
2531 if (connection()->isAtLeastXI22()
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()
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
2532 bool result = connection()->xi2SetMouseGrabEnabled(m_window, grab);-
2533 if (grab
grabDescription
TRUEevaluated 197 times by 21 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidgetAction
FALSEevaluated 168 times by 21 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QToolTip
  • tst_QWidget
  • tst_QWidgetAction
&& result
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
2534 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
2535 return
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
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
2536 }-
2537-
2538 if (grab
grabDescription
TRUEnever evaluated
FALSEnever evaluated
&& !connection()->canGrab()
!connection()->canGrab()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2539 return
never executed: return false;
false;
never executed: return false;
0
2540-
2541 if (!grab
!grabDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
2542 xcb_ungrab_pointer(xcb_connection(), XCB_TIME_CURRENT_TIME);-
2543 return
never executed: return true;
true;
never executed: return true;
0
2544 }-
2545 xcb_grab_pointer_cookie_t cookie = xcb_grab_pointer(xcb_connection(), false, m_window,-
2546 (XCB_EVENT_MASK_BUTTON_PRESS | XCB_EVENT_MASK_BUTTON_RELEASE-
2547 | XCB_EVENT_MASK_BUTTON_MOTION | XCB_EVENT_MASK_ENTER_WINDOW-
2548 | XCB_EVENT_MASK_LEAVE_WINDOW | XCB_EVENT_MASK_POINTER_MOTION),-
2549 XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC,-
2550 XCB_WINDOW_NONE, XCB_CURSOR_NONE,-
2551 XCB_TIME_CURRENT_TIME);-
2552 xcb_grab_pointer_reply_t *reply = xcb_grab_pointer_reply(xcb_connection(), cookie, __null);-
2553 bool result = !(!reply
!replyDescription
TRUEnever evaluated
FALSEnever evaluated
|| reply->status != XCB_GRAB_STATUS_SUCCESS
reply->status ...STATUS_SUCCESSDescription
TRUEnever evaluated
FALSEnever evaluated
);
0
2554 free(reply);-
2555 if (result
resultDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
2556 connection()->setMouseGrabber(this);
never executed: connection()->setMouseGrabber(this);
0
2557 return
never executed: return result;
result;
never executed: return result;
0
2558}-
2559-
2560void QXcbWindow::setCursor(xcb_cursor_t cursor, bool isBitmapCursor)-
2561{-
2562 xcb_connection_t *conn = xcb_connection();-
2563-
2564 xcb_change_window_attributes(conn, m_window, XCB_CW_CURSOR, &cursor);-
2565 xcb_flush(conn);-
2566-
2567 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
2568 xcb_free_cursor(conn, m_currentBitmapCursor);-
2569 }
never executed: end of block
0
2570-
2571 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
2572 m_currentBitmapCursor = cursor;-
2573 }
never executed: end of block
else {
0
2574 m_currentBitmapCursor = XCB_CURSOR_NONE;-
2575 }
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
2576}-
2577-
2578void QXcbWindow::windowEvent(QEvent *event)-
2579{-
2580 switch (event->type()) {-
2581 case
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
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
2582 if (m_embedded
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()
!event->spontaneous()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-19
2583 QFocusEvent *focusEvent = static_cast<QFocusEvent *>(event);-
2584 switch (focusEvent->reason()) {-
2585 case
never executed: case Qt::TabFocusReason:
Qt::TabFocusReason:
never executed: case Qt::TabFocusReason:
0
2586 case
never executed: case Qt::BacktabFocusReason:
Qt::BacktabFocusReason:
never executed: case Qt::BacktabFocusReason:
0
2587 {-
2588 const QXcbWindow *container =-
2589 static_cast<const QXcbWindow *>(parent());-
2590 sendXEmbedMessage(container->xcb_window(),-
2591 focusEvent->reason() == Qt::TabFocusReason ?-
2592 XEMBED_FOCUS_NEXT : XEMBED_FOCUS_PREV);-
2593 event->accept();-
2594 }-
2595 break;
never executed: break;
0
2596 default
never executed: default:
:
never executed: default:
0
2597 break;
never executed: break;
0
2598 }-
2599 }-
2600 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
2601 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
  • ...
:
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
2602 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
2603 }-
2604 QPlatformWindow::windowEvent(event);-
2605}
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
2606-
2607bool QXcbWindow::startSystemResize(const QPoint &pos, Qt::Corner corner)-
2608{-
2609 const xcb_atom_t moveResize = connection()->atom(QXcbAtom::_NET_WM_MOVERESIZE);-
2610 if (!connection()->wmSupport()->isSupportedByWM(moveResize)
!connection()-...WM(moveResize)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2611 return
never executed: return false;
false;
never executed: return false;
0
2612 xcb_client_message_event_t xev;-
2613 xev.response_type = 33;-
2614 xev.type = moveResize;-
2615 xev.sequence = 0;-
2616 xev.window = xcb_window();-
2617 xev.format = 32;-
2618 const QPoint globalPos = window()->mapToGlobal(pos);-
2619 xev.data.data32[0] = globalPos.x();-
2620 xev.data.data32[1] = globalPos.y();-
2621 const bool bottom = corner == Qt::BottomRightCorner
corner == Qt::...tomRightCornerDescription
TRUEnever evaluated
FALSEnever evaluated
|| corner == Qt::BottomLeftCorner
corner == Qt::BottomLeftCornerDescription
TRUEnever evaluated
FALSEnever evaluated
;
0
2622 const bool left = corner == Qt::BottomLeftCorner
corner == Qt::BottomLeftCornerDescription
TRUEnever evaluated
FALSEnever evaluated
|| corner == Qt::TopLeftCorner
corner == Qt::TopLeftCornerDescription
TRUEnever evaluated
FALSEnever evaluated
;
0
2623 if (bottom
bottomDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
2624 xev.data.data32[2] = left
leftDescription
TRUEnever evaluated
FALSEnever evaluated
? 6 : 4;
never executed: xev.data.data32[2] = left ? 6 : 4;
0
2625 else-
2626 xev.data.data32[2] = left
leftDescription
TRUEnever evaluated
FALSEnever evaluated
? 0 : 2;
never executed: xev.data.data32[2] = left ? 0 : 2;
0
2627 xev.data.data32[3] = XCB_BUTTON_INDEX_1;-
2628 xev.data.data32[4] = 0;-
2629 xcb_ungrab_pointer(connection()->xcb_connection(), 0L);-
2630 xcb_send_event(connection()->xcb_connection(), false, xcbScreen()->root(),-
2631 XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY,-
2632 (const char *)&xev);-
2633 return
never executed: return true;
true;
never executed: return true;
0
2634}-
2635-
2636-
2637void QXcbWindow::sendXEmbedMessage(xcb_window_t window, quint32 message,-
2638 quint32 detail, quint32 data1, quint32 data2)-
2639{-
2640 xcb_client_message_event_t event;-
2641-
2642 event.response_type = 33;-
2643 event.format = 32;-
2644 event.sequence = 0;-
2645 event.window = window;-
2646 event.type = atom(QXcbAtom::_XEMBED);-
2647 event.data.data32[0] = connection()->time();-
2648 event.data.data32[1] = message;-
2649 event.data.data32[2] = detail;-
2650 event.data.data32[3] = data1;-
2651 event.data.data32[4] = data2;-
2652 xcb_send_event(xcb_connection(), false, window, XCB_EVENT_MASK_NO_EVENT, (const char *)&event)-
2653 ;-
2654}
never executed: end of block
0
2655-
2656static bool activeWindowChangeQueued(const QWindow *window)-
2657{-
2658-
2659-
2660-
2661 QWindowSystemInterfacePrivate::ActivatedWindowEvent *systemEvent =-
2662 static_cast<QWindowSystemInterfacePrivate::ActivatedWindowEvent *>-
2663 (QWindowSystemInterfacePrivate::peekWindowSystemEvent(QWindowSystemInterfacePrivate::ActivatedWindow));-
2664 return
never executed: return systemEvent && systemEvent->activated != window;
systemEvent
systemEventDescription
TRUEnever evaluated
FALSEnever evaluated
&& systemEvent->activated != window
systemEvent->a...ated != windowDescription
TRUEnever evaluated
FALSEnever evaluated
;
never executed: return systemEvent && systemEvent->activated != window;
0
2665}-
2666-
2667void QXcbWindow::handleXEmbedMessage(const xcb_client_message_event_t *event)-
2668{-
2669 connection()->setTime(event->data.data32[0]);-
2670 switch (event->data.data32[1]) {-
2671 case
never executed: case XEMBED_WINDOW_ACTIVATE:
XEMBED_WINDOW_ACTIVATE:
never executed: case XEMBED_WINDOW_ACTIVATE:
0
2672 case
never executed: case XEMBED_WINDOW_DEACTIVATE:
XEMBED_WINDOW_DEACTIVATE:
never executed: case XEMBED_WINDOW_DEACTIVATE:
0
2673 break;
never executed: break;
0
2674 case
executed 1 time by 1 test: case XEMBED_EMBEDDED_NOTIFY:
Executed by:
  • tst_QSystemTrayIcon
XEMBED_EMBEDDED_NOTIFY:
executed 1 time by 1 test: case XEMBED_EMBEDDED_NOTIFY:
Executed by:
  • tst_QSystemTrayIcon
1
2675 xcb_map_window(xcb_connection(), m_window);-
2676 xcbScreen()->windowShown(this);-
2677-
2678-
2679-
2680 xcb_clear_area(xcb_connection(), false, m_window, 0, 0, geometry().width(), geometry().height());-
2681 xcb_flush(xcb_connection());-
2682 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QSystemTrayIcon
1
2683 case
never executed: case XEMBED_FOCUS_IN:
XEMBED_FOCUS_IN:
never executed: case XEMBED_FOCUS_IN:
0
2684 Qt::FocusReason reason;-
2685 switch (event->data.data32[2]) {-
2686 case
never executed: case XEMBED_FOCUS_FIRST:
XEMBED_FOCUS_FIRST:
never executed: case XEMBED_FOCUS_FIRST:
0
2687 reason = Qt::TabFocusReason;-
2688 break;
never executed: break;
0
2689 case
never executed: case XEMBED_FOCUS_LAST:
XEMBED_FOCUS_LAST:
never executed: case XEMBED_FOCUS_LAST:
0
2690 reason = Qt::BacktabFocusReason;-
2691 break;
never executed: break;
0
2692 case
never executed: case XEMBED_FOCUS_CURRENT:
XEMBED_FOCUS_CURRENT:
never executed: case XEMBED_FOCUS_CURRENT:
0
2693 default
never executed: default:
:
never executed: default:
0
2694 reason = Qt::OtherFocusReason;-
2695 break;
never executed: break;
0
2696 }-
2697 connection()->setFocusWindow(static_cast<QXcbWindow*>(window()->handle()));-
2698 QWindowSystemInterface::handleWindowActivated(window(), reason);-
2699 break;
never executed: break;
0
2700 case
never executed: case XEMBED_FOCUS_OUT:
XEMBED_FOCUS_OUT:
never executed: case XEMBED_FOCUS_OUT:
0
2701 if (window() == QGuiApplication::focusWindow()
window() == QG...:focusWindow()Description
TRUEnever evaluated
FALSEnever evaluated
0
2702 && !activeWindowChangeQueued(window())
!activeWindowC...eued(window())Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2703 connection()->setFocusWindow(0);-
2704 QWindowSystemInterface::handleWindowActivated(0);-
2705 }
never executed: end of block
0
2706 break;
never executed: break;
0
2707 }-
2708}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QSystemTrayIcon
1
2709-
2710static inline xcb_rectangle_t qRectToXCBRectangle(const QRect &r)-
2711{-
2712 xcb_rectangle_t result;-
2713 result.x = qMax((-32767 - 1), r.x());-
2714 result.y = qMax((-32767 - 1), r.y());-
2715 result.width = qMin((int)(32767 * 2 + 1), r.width());-
2716 result.height = qMin((int)(32767 * 2 + 1), r.height());-
2717 return
executed 243 times by 4 tests: return result;
Executed by:
  • tst_QMdiArea
  • tst_QSystemTrayIcon
  • tst_QWidget
  • tst_QWindow
result;
executed 243 times by 4 tests: return result;
Executed by:
  • tst_QMdiArea
  • tst_QSystemTrayIcon
  • tst_QWidget
  • tst_QWindow
243
2718}-
2719-
2720void QXcbWindow::setOpacity(qreal level)-
2721{-
2722 if (!m_window
!m_windowDescription
TRUEnever evaluated
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QGraphicsProxyWidget
  • tst_QWidget
)
0-3
2723 return;
never executed: return;
0
2724-
2725 quint32 value = qRound64(qBound(qreal(0), level, qreal(1)) * 0xffffffff);-
2726-
2727 xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window, atom(QXcbAtom::_NET_WM_WINDOW_OPACITY), XCB_ATOM_CARDINAL, 32, 1, (uchar *)&value)-
2728-
2729-
2730-
2731-
2732-
2733-
2734 ;-
2735}
executed 3 times by 2 tests: end of block
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QWidget
3
2736-
2737void QXcbWindow::setMask(const QRegion &region)-
2738{-
2739 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
2740 return;
never executed: return;
0
2741 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
2742 xcb_shape_mask(connection()->xcb_connection(), XCB_SHAPE_SO_SET,-
2743 XCB_SHAPE_SK_BOUNDING, xcb_window(), 0, 0, 0L);-
2744 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QWidget
else {
2
2745 QVector<xcb_rectangle_t> rects;-
2746 const QVector<QRect> regionRects = region.rects();-
2747 rects.reserve(regionRects.count());-
2748 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(regionRects)>::type> _container_((regionRects)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (const QRect &r = *_container_.i; _container_.control; _container_.control = 0)-
2749 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
2750 xcb_shape_rectangles(connection()->xcb_connection(), XCB_SHAPE_SO_SET,-
2751 XCB_SHAPE_SK_BOUNDING, XCB_CLIP_ORDERING_UNSORTED,-
2752 xcb_window(), 0, 0, rects.size(), &rects[0]);-
2753 }
executed 17 times by 4 tests: end of block
Executed by:
  • tst_QMdiArea
  • tst_QSystemTrayIcon
  • tst_QWidget
  • tst_QWindow
17
2754}-
2755-
2756void QXcbWindow::setAlertState(bool enabled)-
2757{-
2758 if (m_alertState == enabled
m_alertState == enabledDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QApplication
)
0-1
2759 return;
never executed: return;
0
2760-
2761 m_alertState = enabled;-
2762-
2763 changeNetWmState(enabled, atom(QXcbAtom::_NET_WM_STATE_DEMANDS_ATTENTION));-
2764}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QApplication
1
2765-
2766uint QXcbWindow::visualId() const-
2767{-
2768 return
never executed: return m_visualId;
m_visualId;
never executed: return m_visualId;
0
2769}-
2770-
2771bool QXcbWindow::needsSync() const-
2772{-
2773 return
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
  • ...
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
2774}-
2775-
2776void QXcbWindow::postSyncWindowRequest()-
2777{-
2778 if (!m_pendingSyncRequest
!m_pendingSyncRequestDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
2779 QXcbSyncWindowRequest *e = new QXcbSyncWindowRequest(this);-
2780 m_pendingSyncRequest = e;-
2781 QCoreApplication::postEvent(xcbScreen()->connection(), e);-
2782 }
never executed: end of block
0
2783}
never executed: end of block
0
2784-
2785QXcbScreen *QXcbWindow::xcbScreen() const-
2786{-
2787 return
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
  • ...
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
2788}-
2789-
2790-
Switch to Source codePreprocessed file

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