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