Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | #include "qxcbbackingstore.h" | - |
35 | | - |
36 | #include "qxcbconnection.h" | - |
37 | #include "qxcbscreen.h" | - |
38 | #include "qxcbwindow.h" | - |
39 | | - |
40 | #include <xcb/shm.h> | - |
41 | #include <xcb/xcb_image.h> | - |
42 | | - |
43 | #include <sys/ipc.h> | - |
44 | #include <sys/shm.h> | - |
45 | | - |
46 | #include <stdio.h> | - |
47 | #include <errno.h> | - |
48 | | - |
49 | #include <qdebug.h> | - |
50 | #include <qpainter.h> | - |
51 | #include <qscreen.h> | - |
52 | #include <QtGui/private/qhighdpiscaling_p.h> | - |
53 | #include <qpa/qplatformgraphicsbuffer.h> | - |
54 | #include <private/qimage_p.h> | - |
55 | | - |
56 | #include <algorithm> | - |
57 | QT_BEGIN_NAMESPACE | - |
58 | | - |
59 | class QXcbShmImage : public QXcbObject | - |
60 | { | - |
61 | public: | - |
62 | QXcbShmImage(QXcbScreen *connection, const QSize &size, uint depth, QImage::Format format); | - |
63 | ~QXcbShmImage() { destroy(); }executed 2732 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
- ...
| 2732 |
64 | | - |
65 | QImage *image() { return &m_qimage; }executed 23205 times by 98 tests: return &m_qimage; 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
- ...
| 23205 |
66 | QPlatformGraphicsBuffer *graphicsBuffer() { return m_graphics_buffer; }executed 22 times by 2 tests: return m_graphics_buffer; Executed by:- tst_QGraphicsView
- tst_QOpenGLWidget
| 22 |
67 | | - |
68 | QSize size() const { return m_qimage.size(); }executed 17545 times by 98 tests: return m_qimage.size(); 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
- ...
| 17545 |
69 | | - |
70 | bool hasAlpha() const { return m_hasAlpha; }executed 8276 times by 98 tests: return m_hasAlpha; 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
- ...
| 8276 |
71 | | - |
72 | void put(xcb_window_t window, const QPoint &dst, const QRect &source); | - |
73 | void preparePaint(const QRegion ®ion); | - |
74 | | - |
75 | private: | - |
76 | void destroy(); | - |
77 | | - |
78 | xcb_shm_segment_info_t m_shm_info; | - |
79 | | - |
80 | xcb_image_t *m_xcb_image; | - |
81 | | - |
82 | QImage m_qimage; | - |
83 | QPlatformGraphicsBuffer *m_graphics_buffer; | - |
84 | | - |
85 | xcb_gcontext_t m_gc; | - |
86 | xcb_window_t m_gc_window; | - |
87 | | - |
88 | QRegion m_dirty; | - |
89 | | - |
90 | bool m_hasAlpha; | - |
91 | }; | - |
92 | | - |
93 | class QXcbShmGraphicsBuffer : public QPlatformGraphicsBuffer | - |
94 | { | - |
95 | public: | - |
96 | QXcbShmGraphicsBuffer(QImage *image) | - |
97 | : QPlatformGraphicsBuffer(image->size(), QImage::toPixelFormat(image->format())) | - |
98 | , m_access_lock(QPlatformGraphicsBuffer::None) | - |
99 | , m_image(image) | - |
100 | { }executed 2733 times by 98 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
- ...
| 2733 |
101 | | - |
102 | bool doLock(AccessTypes access, const QRect &rect) Q_DECL_OVERRIDE | - |
103 | { | - |
104 | Q_UNUSED(rect); | - |
105 | if (access & ~(QPlatformGraphicsBuffer::SWReadAccess | QPlatformGraphicsBuffer::SWWriteAccess))TRUE | evaluated 21 times by 2 testsEvaluated by:- tst_QGraphicsView
- tst_QOpenGLWidget
| FALSE | evaluated 21 times by 2 testsEvaluated by:- tst_QGraphicsView
- tst_QOpenGLWidget
|
| 21 |
106 | return false;executed 21 times by 2 tests: return false; Executed by:- tst_QGraphicsView
- tst_QOpenGLWidget
| 21 |
107 | | - |
108 | m_access_lock |= access; | - |
109 | return true;executed 21 times by 2 tests: return true; Executed by:- tst_QGraphicsView
- tst_QOpenGLWidget
| 21 |
110 | } | - |
111 | void doUnlock() Q_DECL_OVERRIDE { m_access_lock = None; }executed 17 times by 2 tests: end of block Executed by:- tst_QGraphicsView
- tst_QOpenGLWidget
| 17 |
112 | | - |
113 | const uchar *data() const Q_DECL_OVERRIDE { return m_image->bits(); }executed 21 times by 2 tests: return m_image->bits(); Executed by:- tst_QGraphicsView
- tst_QOpenGLWidget
| 21 |
114 | uchar *data() Q_DECL_OVERRIDE { return m_image->bits(); } never executed: return m_image->bits(); | 0 |
115 | int bytesPerLine() const Q_DECL_OVERRIDE { return m_image->bytesPerLine(); }executed 42 times by 2 tests: return m_image->bytesPerLine(); Executed by:- tst_QGraphicsView
- tst_QOpenGLWidget
| 42 |
116 | | - |
117 | Origin origin() const Q_DECL_OVERRIDE { return QPlatformGraphicsBuffer::OriginTopLeft; }executed 22 times by 2 tests: return QPlatformGraphicsBuffer::OriginTopLeft; Executed by:- tst_QGraphicsView
- tst_QOpenGLWidget
| 22 |
118 | private: | - |
119 | AccessTypes m_access_lock; | - |
120 | QImage *m_image; | - |
121 | }; | - |
122 | | - |
123 | QXcbShmImage::QXcbShmImage(QXcbScreen *screen, const QSize &size, uint depth, QImage::Format format) | - |
124 | : QXcbObject(screen->connection()) | - |
125 | , m_graphics_buffer(Q_NULLPTR) | - |
126 | , m_gc(0) | - |
127 | , m_gc_window(0) | - |
128 | { | - |
129 | Q_XCB_NOOP(connection()); | - |
130 | | - |
131 | const xcb_setup_t *setup = xcb_get_setup(xcb_connection()); | - |
132 | xcb_format_t *fmt = xcb_setup_pixmap_formats(setup); | - |
133 | xcb_format_t *fmtend = fmt + xcb_setup_pixmap_formats_length(setup); | - |
134 | for (; fmt != fmtend; ++fmt)TRUE | evaluated 16401 times by 98 testsEvaluated by:- tst_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 | never evaluated |
| 0-16401 |
135 | if (fmt->depth == depth)TRUE | evaluated 2733 times by 98 testsEvaluated by:- tst_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 | evaluated 13668 times by 98 testsEvaluated by:- tst_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
- ...
|
| 2733-13668 |
136 | break;executed 2733 times by 98 tests: break; 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
- ...
| 2733 |
137 | | - |
138 | Q_ASSERT(fmt != fmtend); | - |
139 | | - |
140 | m_xcb_image = xcb_image_create(size.width(), size.height(), | - |
141 | XCB_IMAGE_FORMAT_Z_PIXMAP, | - |
142 | fmt->scanline_pad, | - |
143 | fmt->depth, fmt->bits_per_pixel, 0, | - |
144 | QSysInfo::ByteOrder == QSysInfo::BigEndian ? XCB_IMAGE_ORDER_MSB_FIRST : XCB_IMAGE_ORDER_LSB_FIRST, | - |
145 | XCB_IMAGE_ORDER_MSB_FIRST, | - |
146 | 0, ~0, 0); | - |
147 | | - |
148 | const int segmentSize = m_xcb_image->stride * m_xcb_image->height; | - |
149 | if (!segmentSize)TRUE | never evaluated | FALSE | evaluated 2733 times by 98 testsEvaluated by:- tst_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-2733 |
150 | return; never executed: return; | 0 |
151 | | - |
152 | int id = shmget(IPC_PRIVATE, segmentSize, IPC_CREAT | 0600); | - |
153 | if (id == -1) {TRUE | never evaluated | FALSE | evaluated 2733 times by 98 testsEvaluated by:- tst_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-2733 |
154 | qWarning("QXcbShmImage: shmget() failed (%d: %s) for size %d (%dx%d)", | - |
155 | errno, strerror(errno), segmentSize, size.width(), size.height()); | - |
156 | } else { never executed: end of block | 0 |
157 | m_shm_info.shmaddr = m_xcb_image->data = (quint8 *)shmat(id, 0, 0); | - |
158 | }executed 2733 times by 98 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
- ...
| 2733 |
159 | m_shm_info.shmid = id; | - |
160 | m_shm_info.shmseg = xcb_generate_id(xcb_connection()); | - |
161 | | - |
162 | const xcb_query_extension_reply_t *shm_reply = xcb_get_extension_data(xcb_connection(), &xcb_shm_id); | - |
163 | bool shm_present = shm_reply != NULL && shm_reply->present;TRUE | evaluated 2733 times by 98 testsEvaluated by:- tst_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 | never evaluated |
TRUE | evaluated 2733 times by 98 testsEvaluated by:- tst_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 | never evaluated |
| 0-2733 |
164 | xcb_generic_error_t *error = NULL; | - |
165 | if (shm_present)TRUE | evaluated 2733 times by 98 testsEvaluated by:- tst_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 | never evaluated |
| 0-2733 |
166 | error = xcb_request_check(xcb_connection(), xcb_shm_attach_checked(xcb_connection(), m_shm_info.shmseg, m_shm_info.shmid, false));executed 2733 times by 98 tests: error = xcb_request_check(xcb_connection(), xcb_shm_attach_checked(xcb_connection(), m_shm_info.shmseg, m_shm_info.shmid, 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
- ...
| 2733 |
167 | if (!shm_present || error || id == -1) {TRUE | never evaluated | FALSE | evaluated 2733 times by 98 testsEvaluated by:- tst_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 | never evaluated | FALSE | evaluated 2733 times by 98 testsEvaluated by:- tst_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 | never evaluated | FALSE | evaluated 2733 times by 98 testsEvaluated by:- tst_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-2733 |
168 | free(error); | - |
169 | | - |
170 | if (id != -1) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
171 | shmdt(m_shm_info.shmaddr); | - |
172 | shmctl(m_shm_info.shmid, IPC_RMID, 0); | - |
173 | } never executed: end of block | 0 |
174 | m_shm_info.shmaddr = 0; | - |
175 | | - |
176 | m_xcb_image->data = (uint8_t *)malloc(segmentSize); | - |
177 | } else { never executed: end of block | 0 |
178 | if (shmctl(m_shm_info.shmid, IPC_RMID, 0) == -1)TRUE | never evaluated | FALSE | evaluated 2733 times by 98 testsEvaluated by:- tst_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-2733 |
179 | qWarning() << "QXcbBackingStore: Error while marking the shared memory segment to be destroyed"; never executed: QMessageLogger(__FILE__, 179, __PRETTY_FUNCTION__).warning() << "QXcbBackingStore: Error while marking the shared memory segment to be destroyed"; | 0 |
180 | }executed 2733 times by 98 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
- ...
| 2733 |
181 | | - |
182 | m_hasAlpha = QImage::toPixelFormat(format).alphaUsage() == QPixelFormat::UsesAlpha; | - |
183 | if (!m_hasAlpha)TRUE | evaluated 2730 times by 98 testsEvaluated by:- tst_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 | evaluated 3 times by 2 testsEvaluated by:- tst_QSystemTrayIcon
- tst_QWidget
|
| 3-2730 |
184 | format = qt_maybeAlphaVersionWithSameDepth(format);executed 2730 times by 98 tests: format = qt_maybeAlphaVersionWithSameDepth(format); 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
- ...
| 2730 |
185 | | - |
186 | m_qimage = QImage( (uchar*) m_xcb_image->data, m_xcb_image->width, m_xcb_image->height, m_xcb_image->stride, format); | - |
187 | m_graphics_buffer = new QXcbShmGraphicsBuffer(&m_qimage); | - |
188 | }executed 2733 times by 98 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
- ...
| 2733 |
189 | | - |
190 | void QXcbShmImage::destroy() | - |
191 | { | - |
192 | const int segmentSize = m_xcb_image ? (m_xcb_image->stride * m_xcb_image->height) : 0;TRUE | evaluated 2732 times by 104 testsEvaluated by:- tst_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 | never evaluated |
| 0-2732 |
193 | if (segmentSize && m_shm_info.shmaddr)TRUE | evaluated 2732 times by 104 testsEvaluated by:- tst_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 | never evaluated |
TRUE | evaluated 2732 times by 104 testsEvaluated by:- tst_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 | never evaluated |
| 0-2732 |
194 | Q_XCB_CALL(xcb_shm_detach(xcb_connection(), m_shm_info.shmseg));executed 2732 times by 104 tests: xcb_shm_detach(xcb_connection(), m_shm_info.shmseg); 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
- ...
| 2732 |
195 | | - |
196 | if (segmentSize) {TRUE | evaluated 2732 times by 104 testsEvaluated by:- tst_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 | never evaluated |
| 0-2732 |
197 | if (m_shm_info.shmaddr) {TRUE | evaluated 2732 times by 104 testsEvaluated by:- tst_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 | never evaluated |
| 0-2732 |
198 | shmdt(m_shm_info.shmaddr); | - |
199 | shmctl(m_shm_info.shmid, IPC_RMID, 0); | - |
200 | } else {executed 2732 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
- ...
| 2732 |
201 | free(m_xcb_image->data); | - |
202 | } never executed: end of block | 0 |
203 | } | - |
204 | | - |
205 | xcb_image_destroy(m_xcb_image); | - |
206 | | - |
207 | if (m_gc)TRUE | evaluated 2625 times by 104 testsEvaluated by:- tst_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 | evaluated 107 times by 9 testsEvaluated by:- tst_QBackingStore
- tst_QDialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QOpenGLWidget
- tst_QWidget
- tst_qpainter - unknown status
|
| 107-2625 |
208 | Q_XCB_CALL(xcb_free_gc(xcb_connection(), m_gc));executed 2625 times by 104 tests: xcb_free_gc(xcb_connection(), m_gc); 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
- ...
| 2625 |
209 | delete m_graphics_buffer; | - |
210 | m_graphics_buffer = Q_NULLPTR; | - |
211 | }executed 2732 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
- ...
| 2732 |
212 | | - |
213 | void QXcbShmImage::put(xcb_window_t window, const QPoint &target, const QRect &source) | - |
214 | { | - |
215 | Q_XCB_NOOP(connection()); | - |
216 | if (m_gc_window != window) {TRUE | evaluated 2727 times by 98 testsEvaluated by:- tst_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 | evaluated 14393 times by 86 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- ...
|
| 2727-14393 |
217 | if (m_gc)TRUE | evaluated 101 times by 5 testsEvaluated by:- tst_QDialog
- tst_QMdiArea
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| FALSE | evaluated 2626 times by 98 testsEvaluated by:- tst_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
- ...
|
| 101-2626 |
218 | Q_XCB_CALL(xcb_free_gc(xcb_connection(), m_gc));executed 101 times by 5 tests: xcb_free_gc(xcb_connection(), m_gc); Executed by:- tst_QDialog
- tst_QMdiArea
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| 101 |
219 | | - |
220 | m_gc = xcb_generate_id(xcb_connection()); | - |
221 | Q_XCB_CALL(xcb_create_gc(xcb_connection(), m_gc, window, 0, 0)); | - |
222 | | - |
223 | m_gc_window = window; | - |
224 | }executed 2727 times by 98 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
- ...
| 2727 |
225 | | - |
226 | Q_XCB_NOOP(connection()); | - |
227 | if (m_shm_info.shmaddr) {TRUE | evaluated 17120 times by 98 testsEvaluated by:- tst_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 | never evaluated |
| 0-17120 |
228 | xcb_image_shm_put(xcb_connection(), | - |
229 | window, | - |
230 | m_gc, | - |
231 | m_xcb_image, | - |
232 | m_shm_info, | - |
233 | source.x(), | - |
234 | source.y(), | - |
235 | target.x(), | - |
236 | target.y(), | - |
237 | source.width(), | - |
238 | source.height(), | - |
239 | false); | - |
240 | } else {executed 17120 times by 98 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
- ...
| 17120 |
241 | | - |
242 | | - |
243 | | - |
244 | | - |
245 | int src_x = source.x(); | - |
246 | int src_y = source.y(); | - |
247 | int target_x = target.x(); | - |
248 | int target_y = target.y(); | - |
249 | int width = source.width(); | - |
250 | int height = source.height(); | - |
251 | | - |
252 | | - |
253 | | - |
254 | uint32_t max_req_size = xcb_get_maximum_request_length(xcb_connection()); | - |
255 | uint32_t req_size = sizeof(xcb_put_image_request_t); | - |
256 | int rows_per_put = (max_req_size - req_size) / m_xcb_image->stride; | - |
257 | | - |
258 | | - |
259 | | - |
260 | | - |
261 | Q_ASSERT(rows_per_put > 0); | - |
262 | | - |
263 | | - |
264 | xcb_image_t *converted_image = xcb_image_native(xcb_connection(), m_xcb_image, 1); | - |
265 | | - |
266 | while (height > 0) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
267 | int rows = std::min(height, rows_per_put); | - |
268 | | - |
269 | xcb_image_t *subimage = xcb_image_subimage(converted_image, src_x, src_y, width, rows, | - |
270 | 0, 0, 0); | - |
271 | xcb_image_put(xcb_connection(), | - |
272 | window, | - |
273 | m_gc, | - |
274 | subimage, | - |
275 | target_x, | - |
276 | target_y, | - |
277 | 0); | - |
278 | | - |
279 | xcb_image_destroy(subimage); | - |
280 | | - |
281 | src_y += rows; | - |
282 | target_y += rows; | - |
283 | height -= rows; | - |
284 | } never executed: end of block | 0 |
285 | | - |
286 | if (converted_image != m_xcb_image)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
287 | xcb_image_destroy(converted_image); never executed: xcb_image_destroy(converted_image); | 0 |
288 | } never executed: end of block | 0 |
289 | Q_XCB_NOOP(connection()); | - |
290 | | - |
291 | m_dirty = m_dirty | source; | - |
292 | }executed 17120 times by 98 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
- ...
| 17120 |
293 | | - |
294 | void QXcbShmImage::preparePaint(const QRegion ®ion) | - |
295 | { | - |
296 | | - |
297 | if (m_dirty.intersects(region)) {TRUE | evaluated 5566 times by 86 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- ...
| FALSE | evaluated 4595 times by 98 testsEvaluated by:- tst_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
- ...
|
| 4595-5566 |
298 | connection()->sync(); | - |
299 | m_dirty = QRegion(); | - |
300 | }executed 5566 times by 86 tests: end of block Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- ...
| 5566 |
301 | }executed 10161 times by 98 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
- ...
| 10161 |
302 | | - |
303 | QXcbBackingStore::QXcbBackingStore(QWindow *window) | - |
304 | : QPlatformBackingStore(window) | - |
305 | , m_image(0) | - |
306 | { | - |
307 | QXcbScreen *screen = static_cast<QXcbScreen *>(window->screen()->handle()); | - |
308 | setConnection(screen->connection()); | - |
309 | }executed 3960 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_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- ...
| 3960 |
310 | | - |
311 | QXcbBackingStore::~QXcbBackingStore() | - |
312 | { | - |
313 | delete m_image; | - |
314 | }executed 3958 times by 126 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
- ...
| 3958 |
315 | | - |
316 | QPaintDevice *QXcbBackingStore::paintDevice() | - |
317 | { | - |
318 | if (!m_image)TRUE | never evaluated | FALSE | evaluated 19435 times by 98 testsEvaluated by:- tst_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-19435 |
319 | return 0; never executed: return 0; | 0 |
320 | return m_rgbImage.isNull() ? m_image->image() : &m_rgbImage;executed 19435 times by 98 tests: return m_rgbImage.isNull() ? m_image->image() : &m_rgbImage; 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 | evaluated 19435 times by 98 testsEvaluated by:- tst_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 | never evaluated |
| 0-19435 |
321 | } | - |
322 | | - |
323 | void QXcbBackingStore::beginPaint(const QRegion ®ion) | - |
324 | { | - |
325 | if (!m_image && !m_size.isEmpty())TRUE | never evaluated | FALSE | evaluated 8276 times by 98 testsEvaluated by:- tst_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 | never evaluated | FALSE | never evaluated |
| 0-8276 |
326 | resize(m_size, QRegion()); never executed: resize(m_size, QRegion()); | 0 |
327 | | - |
328 | if (!m_image)TRUE | never evaluated | FALSE | evaluated 8276 times by 98 testsEvaluated by:- tst_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-8276 |
329 | return; never executed: return; | 0 |
330 | m_size = QSize(); | - |
331 | m_paintRegion = region; | - |
332 | m_image->preparePaint(m_paintRegion); | - |
333 | | - |
334 | if (m_image->hasAlpha()) {TRUE | evaluated 3 times by 2 testsEvaluated by:- tst_QSystemTrayIcon
- tst_QWidget
| FALSE | evaluated 8273 times by 98 testsEvaluated by:- tst_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-8273 |
335 | QPainter p(paintDevice()); | - |
336 | p.setCompositionMode(QPainter::CompositionMode_Source); | - |
337 | const QVector<QRect> rects = m_paintRegion.rects(); | - |
338 | const QColor blank = Qt::transparent; | - |
339 | for (QVector<QRect>::const_iterator it = rects.begin(); it != rects.end(); ++it) {TRUE | evaluated 3 times by 2 testsEvaluated by:- tst_QSystemTrayIcon
- tst_QWidget
| FALSE | evaluated 3 times by 2 testsEvaluated by:- tst_QSystemTrayIcon
- tst_QWidget
|
| 3 |
340 | p.fillRect(*it, blank); | - |
341 | }executed 3 times by 2 tests: end of block Executed by:- tst_QSystemTrayIcon
- tst_QWidget
| 3 |
342 | }executed 3 times by 2 tests: end of block Executed by:- tst_QSystemTrayIcon
- tst_QWidget
| 3 |
343 | }executed 8276 times by 98 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
- ...
| 8276 |
344 | | - |
345 | void QXcbBackingStore::endPaint() | - |
346 | { | - |
347 | QXcbWindow *platformWindow = static_cast<QXcbWindow *>(window()->handle()); | - |
348 | if (!platformWindow || !platformWindow->imageNeedsRgbSwap())TRUE | never evaluated | FALSE | evaluated 8276 times by 98 testsEvaluated by:- tst_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 | evaluated 8276 times by 98 testsEvaluated by:- tst_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 | never evaluated |
| 0-8276 |
349 | return;executed 8276 times by 98 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
- ...
| 8276 |
350 | | - |
351 | | - |
352 | | - |
353 | const QVector<QRect> rects = m_paintRegion.rects(); | - |
354 | if (rects.isEmpty())TRUE | never evaluated | FALSE | never evaluated |
| 0 |
355 | return; never executed: return; | 0 |
356 | QPainter p(m_image->image()); | - |
357 | for (QVector<QRect>::const_iterator it = rects.begin(); it != rects.end(); ++it) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
358 | const QRect rect = *it; | - |
359 | p.drawImage(rect.topLeft(), m_rgbImage.copy(rect).rgbSwapped()); | - |
360 | } never executed: end of block | 0 |
361 | } never executed: end of block | 0 |
362 | | - |
363 | #ifndef QT_NO_OPENGL | - |
364 | QImage QXcbBackingStore::toImage() const | - |
365 | { | - |
366 | return m_image && m_image->image() ? *m_image->image() : QImage(); never executed: return m_image && m_image->image() ? *m_image->image() : QImage(); TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
367 | } | - |
368 | #endif | - |
369 | | - |
370 | QPlatformGraphicsBuffer *QXcbBackingStore::graphicsBuffer() const | - |
371 | { | - |
372 | return m_image ? m_image->graphicsBuffer() : Q_NULLPTR;executed 22 times by 2 tests: return m_image ? m_image->graphicsBuffer() : nullptr; Executed by:- tst_QGraphicsView
- tst_QOpenGLWidget
TRUE | evaluated 22 times by 2 testsEvaluated by:- tst_QGraphicsView
- tst_QOpenGLWidget
| FALSE | never evaluated |
| 0-22 |
373 | } | - |
374 | | - |
375 | void QXcbBackingStore::flush(QWindow *window, const QRegion ®ion, const QPoint &offset) | - |
376 | { | - |
377 | if (!m_image || m_image->size().isEmpty())TRUE | never evaluated | FALSE | evaluated 8618 times by 98 testsEvaluated by:- tst_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 | never evaluated | FALSE | evaluated 8618 times by 98 testsEvaluated by:- tst_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-8618 |
378 | return; never executed: return; | 0 |
379 | | - |
380 | QSize imageSize = m_image->size(); | - |
381 | | - |
382 | QRegion clipped = region; | - |
383 | clipped &= QRect(QPoint(), QHighDpi::toNativePixels(window->size(), window)); | - |
384 | clipped &= QRect(0, 0, imageSize.width(), imageSize.height()).translated(-offset); | - |
385 | | - |
386 | QRect bounds = clipped.boundingRect(); | - |
387 | | - |
388 | if (bounds.isNull())TRUE | never evaluated | FALSE | evaluated 8618 times by 98 testsEvaluated by:- tst_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-8618 |
389 | return; never executed: return; | 0 |
390 | | - |
391 | Q_XCB_NOOP(connection()); | - |
392 | | - |
393 | QXcbWindow *platformWindow = static_cast<QXcbWindow *>(window->handle()); | - |
394 | if (!platformWindow) {TRUE | never evaluated | FALSE | evaluated 8618 times by 98 testsEvaluated by:- tst_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-8618 |
395 | qWarning("QXcbBackingStore::flush: QWindow has no platform window (QTBUG-32681)"); | - |
396 | return; never executed: return; | 0 |
397 | } | - |
398 | | - |
399 | QVector<QRect> rects = clipped.rects(); | - |
400 | for (int i = 0; i < rects.size(); ++i) {TRUE | evaluated 17120 times by 98 testsEvaluated by:- tst_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 | evaluated 8618 times by 98 testsEvaluated by:- tst_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
- ...
|
| 8618-17120 |
401 | QRect rect = QRect(rects.at(i).topLeft(), rects.at(i).size()); | - |
402 | m_image->put(platformWindow->xcb_window(), rect.topLeft(), rect.translated(offset)); | - |
403 | }executed 17120 times by 98 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
- ...
| 17120 |
404 | | - |
405 | Q_XCB_NOOP(connection()); | - |
406 | | - |
407 | if (platformWindow->needsSync())TRUE | never evaluated | FALSE | evaluated 8618 times by 98 testsEvaluated by:- tst_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-8618 |
408 | platformWindow->updateSyncRequestCounter(); never executed: platformWindow->updateSyncRequestCounter(); | 0 |
409 | else | - |
410 | xcb_flush(xcb_connection());executed 8618 times by 98 tests: xcb_flush(xcb_connection()); 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
- ...
| 8618 |
411 | } | - |
412 | | - |
413 | #ifndef QT_NO_OPENGL | - |
414 | void QXcbBackingStore::composeAndFlush(QWindow *window, const QRegion ®ion, const QPoint &offset, | - |
415 | QPlatformTextureList *textures, QOpenGLContext *context, | - |
416 | bool translucentBackground) | - |
417 | { | - |
418 | QPlatformBackingStore::composeAndFlush(window, region, offset, textures, context, translucentBackground); | - |
419 | | - |
420 | Q_XCB_NOOP(connection()); | - |
421 | | - |
422 | QXcbWindow *platformWindow = static_cast<QXcbWindow *>(window->handle()); | - |
423 | if (platformWindow->needsSync()) {TRUE | never evaluated | FALSE | evaluated 22 times by 2 testsEvaluated by:- tst_QGraphicsView
- tst_QOpenGLWidget
|
| 0-22 |
424 | platformWindow->updateSyncRequestCounter(); | - |
425 | } else { never executed: end of block | 0 |
426 | xcb_flush(xcb_connection()); | - |
427 | }executed 22 times by 2 tests: end of block Executed by:- tst_QGraphicsView
- tst_QOpenGLWidget
| 22 |
428 | } | - |
429 | #endif // QT_NO_OPENGL | - |
430 | | - |
431 | void QXcbBackingStore::resize(const QSize &size, const QRegion &) | - |
432 | { | - |
433 | if (m_image && size == m_image->size())TRUE | evaluated 309 times by 18 testsEvaluated by:- tst_QAccessibility
- tst_QBackingStore
- tst_QBoxLayout
- tst_QDockWidget
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QListWidget
- tst_QMainWindow
- tst_QMdiArea
- tst_QMenu
- tst_QMessageBox
- tst_QPushButton
- tst_QSpinBox
- tst_QSystemTrayIcon
- tst_QTableView
- tst_QWidget
- tst_QWidget_window
| FALSE | evaluated 2424 times by 98 testsEvaluated by:- tst_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 | never evaluated | FALSE | evaluated 309 times by 18 testsEvaluated by:- tst_QAccessibility
- tst_QBackingStore
- tst_QBoxLayout
- tst_QDockWidget
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QListWidget
- tst_QMainWindow
- tst_QMdiArea
- tst_QMenu
- tst_QMessageBox
- tst_QPushButton
- tst_QSpinBox
- tst_QSystemTrayIcon
- tst_QTableView
- tst_QWidget
- tst_QWidget_window
|
| 0-2424 |
434 | return; never executed: return; | 0 |
435 | Q_XCB_NOOP(connection()); | - |
436 | | - |
437 | | - |
438 | QXcbScreen *screen = window()->screen() ? static_cast<QXcbScreen *>(window()->screen()->handle()) : 0;TRUE | evaluated 2733 times by 98 testsEvaluated by:- tst_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 | never evaluated |
| 0-2733 |
439 | QPlatformWindow *pw = window()->handle(); | - |
440 | if (!pw) {TRUE | never evaluated | FALSE | evaluated 2733 times by 98 testsEvaluated by:- tst_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-2733 |
441 | window()->create(); | - |
442 | pw = window()->handle(); | - |
443 | } never executed: end of block | 0 |
444 | QXcbWindow* win = static_cast<QXcbWindow *>(pw); | - |
445 | | - |
446 | delete m_image; | - |
447 | if (!screen) {TRUE | never evaluated | FALSE | evaluated 2733 times by 98 testsEvaluated by:- tst_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-2733 |
448 | m_image = 0; | - |
449 | m_size = size; | - |
450 | return; never executed: return; | 0 |
451 | } | - |
452 | m_image = new QXcbShmImage(screen, size, win->depth(), win->imageFormat()); | - |
453 | | - |
454 | | - |
455 | if (win->imageNeedsRgbSwap()) {TRUE | never evaluated | FALSE | evaluated 2733 times by 98 testsEvaluated by:- tst_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-2733 |
456 | m_rgbImage = QImage(size, win->imageFormat()); | - |
457 | } never executed: end of block | 0 |
458 | Q_XCB_NOOP(connection()); | - |
459 | }executed 2733 times by 98 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
- ...
| 2733 |
460 | | - |
461 | extern void qt_scrollRectInImage(QImage &img, const QRect &rect, const QPoint &offset); | - |
462 | | - |
463 | bool QXcbBackingStore::scroll(const QRegion &area, int dx, int dy) | - |
464 | { | - |
465 | if (!m_image || m_image->image()->isNull())TRUE | evaluated 129 times by 12 testsEvaluated by:- tst_QCompleter
- tst_QGraphicsGridLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QPainter
- tst_QPlainTextEdit
- tst_QTableView
- tst_QTextEdit
- tst_QTouchEvent
- tst_QWidget
| FALSE | evaluated 1885 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemDelegate
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QTableView
- tst_QTreeView
- tst_QWidget
|
TRUE | never evaluated | FALSE | evaluated 1885 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemDelegate
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QTableView
- tst_QTreeView
- tst_QWidget
|
| 0-1885 |
466 | return false;executed 129 times by 12 tests: return false; Executed by:- tst_QCompleter
- tst_QGraphicsGridLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QPainter
- tst_QPlainTextEdit
- tst_QTableView
- tst_QTextEdit
- tst_QTouchEvent
- tst_QWidget
| 129 |
467 | | - |
468 | m_image->preparePaint(area); | - |
469 | | - |
470 | QPoint delta(dx, dy); | - |
471 | const QVector<QRect> rects = area.rects(); | - |
472 | for (int i = 0; i < rects.size(); ++i)TRUE | evaluated 1885 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemDelegate
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QTableView
- tst_QTreeView
- tst_QWidget
| FALSE | evaluated 1885 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemDelegate
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QTableView
- tst_QTreeView
- tst_QWidget
|
| 1885 |
473 | qt_scrollRectInImage(*m_image->image(), rects.at(i), delta);executed 1885 times by 15 tests: qt_scrollRectInImage(*m_image->image(), rects.at(i), delta); Executed by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemDelegate
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QTableView
- tst_QTreeView
- tst_QWidget
| 1885 |
474 | return true;executed 1885 times by 15 tests: return true; Executed by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemDelegate
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QTableView
- tst_QTreeView
- tst_QWidget
| 1885 |
475 | } | - |
476 | | - |
477 | QT_END_NAMESPACE | - |
| | |