| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | typedef int (*PtrXcursorLibraryLoadCursor)(void *, const char *); | - |
| 9 | typedef char *(*PtrXcursorLibraryGetTheme)(void *); | - |
| 10 | typedef int (*PtrXcursorLibrarySetTheme)(void *, const char *); | - |
| 11 | typedef int (*PtrXcursorLibraryGetDefaultSize)(void *); | - |
| 12 | | - |
| 13 | | - |
| 14 | enum { | - |
| 15 | XCursorShape = 0 | - |
| 16 | }; | - |
| 17 | | - |
| 18 | | - |
| 19 | static PtrXcursorLibraryLoadCursor ptrXcursorLibraryLoadCursor = 0; | - |
| 20 | static PtrXcursorLibraryGetTheme ptrXcursorLibraryGetTheme = 0; | - |
| 21 | static PtrXcursorLibrarySetTheme ptrXcursorLibrarySetTheme = 0; | - |
| 22 | static PtrXcursorLibraryGetDefaultSize ptrXcursorLibraryGetDefaultSize = 0; | - |
| 23 | | - |
| 24 | | - |
| 25 | static xcb_font_t cursorFont = 0; | - |
| 26 | static int cursorCount = 0; | - |
| 27 | | - |
| 28 | static uint8_t cur_blank_bits[] = { | - |
| 29 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 30 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 31 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; | - |
| 32 | | - |
| 33 | static const uint8_t cur_ver_bits[] = { | - |
| 34 | 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0xc0, 0x03, 0xe0, 0x07, 0xf0, 0x0f, | - |
| 35 | 0x80, 0x01, 0x80, 0x01, 0x80, 0x01, 0x80, 0x01, 0x80, 0x01, 0xf0, 0x0f, | - |
| 36 | 0xe0, 0x07, 0xc0, 0x03, 0x80, 0x01, 0x00, 0x00 }; | - |
| 37 | static const uint8_t mcur_ver_bits[] = { | - |
| 38 | 0x00, 0x00, 0x80, 0x03, 0xc0, 0x07, 0xe0, 0x0f, 0xf0, 0x1f, 0xf8, 0x3f, | - |
| 39 | 0xfc, 0x7f, 0xc0, 0x07, 0xc0, 0x07, 0xc0, 0x07, 0xfc, 0x7f, 0xf8, 0x3f, | - |
| 40 | 0xf0, 0x1f, 0xe0, 0x0f, 0xc0, 0x07, 0x80, 0x03 }; | - |
| 41 | static const uint8_t cur_hor_bits[] = { | - |
| 42 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x08, 0x30, 0x18, | - |
| 43 | 0x38, 0x38, 0xfc, 0x7f, 0xfc, 0x7f, 0x38, 0x38, 0x30, 0x18, 0x20, 0x08, | - |
| 44 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; | - |
| 45 | static const uint8_t mcur_hor_bits[] = { | - |
| 46 | 0x00, 0x00, 0x00, 0x00, 0x40, 0x04, 0x60, 0x0c, 0x70, 0x1c, 0x78, 0x3c, | - |
| 47 | 0xfc, 0x7f, 0xfe, 0xff, 0xfe, 0xff, 0xfe, 0xff, 0xfc, 0x7f, 0x78, 0x3c, | - |
| 48 | 0x70, 0x1c, 0x60, 0x0c, 0x40, 0x04, 0x00, 0x00 }; | - |
| 49 | static const uint8_t cur_bdiag_bits[] = { | - |
| 50 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x3e, 0x00, 0x3c, 0x00, 0x3e, | - |
| 51 | 0x00, 0x37, 0x88, 0x23, 0xd8, 0x01, 0xf8, 0x00, 0x78, 0x00, 0xf8, 0x00, | - |
| 52 | 0xf8, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; | - |
| 53 | static const uint8_t mcur_bdiag_bits[] = { | - |
| 54 | 0x00, 0x00, 0xc0, 0x7f, 0x80, 0x7f, 0x00, 0x7f, 0x00, 0x7e, 0x04, 0x7f, | - |
| 55 | 0x8c, 0x7f, 0xdc, 0x77, 0xfc, 0x63, 0xfc, 0x41, 0xfc, 0x00, 0xfc, 0x01, | - |
| 56 | 0xfc, 0x03, 0xfc, 0x07, 0x00, 0x00, 0x00, 0x00 }; | - |
| 57 | static const uint8_t cur_fdiag_bits[] = { | - |
| 58 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x01, 0xf8, 0x00, 0x78, 0x00, | - |
| 59 | 0xf8, 0x00, 0xd8, 0x01, 0x88, 0x23, 0x00, 0x37, 0x00, 0x3e, 0x00, 0x3c, | - |
| 60 | 0x00, 0x3e, 0x00, 0x3f, 0x00, 0x00, 0x00, 0x00 }; | - |
| 61 | static const uint8_t mcur_fdiag_bits[] = { | - |
| 62 | 0x00, 0x00, 0x00, 0x00, 0xfc, 0x07, 0xfc, 0x03, 0xfc, 0x01, 0xfc, 0x00, | - |
| 63 | 0xfc, 0x41, 0xfc, 0x63, 0xdc, 0x77, 0x8c, 0x7f, 0x04, 0x7f, 0x00, 0x7e, | - |
| 64 | 0x00, 0x7f, 0x80, 0x7f, 0xc0, 0x7f, 0x00, 0x00 }; | - |
| 65 | static const uint8_t *cursor_bits16[] = { | - |
| 66 | cur_ver_bits, mcur_ver_bits, cur_hor_bits, mcur_hor_bits, | - |
| 67 | cur_bdiag_bits, mcur_bdiag_bits, cur_fdiag_bits, mcur_fdiag_bits, | - |
| 68 | 0, 0, cur_blank_bits, cur_blank_bits }; | - |
| 69 | | - |
| 70 | static const uint8_t vsplit_bits[] = { | - |
| 71 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 72 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 73 | 0x00, 0x80, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xe0, 0x03, 0x00, | - |
| 74 | 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, | - |
| 75 | 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0xff, 0x7f, 0x00, | - |
| 76 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x7f, 0x00, | - |
| 77 | 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, | - |
| 78 | 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x00, | - |
| 79 | 0x00, 0xc0, 0x01, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 80 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 81 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; | - |
| 82 | static const uint8_t vsplitm_bits[] = { | - |
| 83 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 84 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, | - |
| 85 | 0x00, 0xc0, 0x01, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0xf0, 0x07, 0x00, | - |
| 86 | 0x00, 0xf8, 0x0f, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, | - |
| 87 | 0x00, 0xc0, 0x01, 0x00, 0x80, 0xff, 0xff, 0x00, 0x80, 0xff, 0xff, 0x00, | - |
| 88 | 0x80, 0xff, 0xff, 0x00, 0x80, 0xff, 0xff, 0x00, 0x80, 0xff, 0xff, 0x00, | - |
| 89 | 0x80, 0xff, 0xff, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, | - |
| 90 | 0x00, 0xc0, 0x01, 0x00, 0x00, 0xf8, 0x0f, 0x00, 0x00, 0xf0, 0x07, 0x00, | - |
| 91 | 0x00, 0xe0, 0x03, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x80, 0x00, 0x00, | - |
| 92 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 93 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; | - |
| 94 | static const uint8_t hsplit_bits[] = { | - |
| 95 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 96 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 97 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x02, 0x00, 0x00, 0x40, 0x02, 0x00, | - |
| 98 | 0x00, 0x40, 0x02, 0x00, 0x00, 0x40, 0x02, 0x00, 0x00, 0x40, 0x02, 0x00, | - |
| 99 | 0x00, 0x41, 0x82, 0x00, 0x80, 0x41, 0x82, 0x01, 0xc0, 0x7f, 0xfe, 0x03, | - |
| 100 | 0x80, 0x41, 0x82, 0x01, 0x00, 0x41, 0x82, 0x00, 0x00, 0x40, 0x02, 0x00, | - |
| 101 | 0x00, 0x40, 0x02, 0x00, 0x00, 0x40, 0x02, 0x00, 0x00, 0x40, 0x02, 0x00, | - |
| 102 | 0x00, 0x40, 0x02, 0x00, 0x00, 0x40, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 103 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 104 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 105 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; | - |
| 106 | static const uint8_t hsplitm_bits[] = { | - |
| 107 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 108 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 109 | 0x00, 0xe0, 0x07, 0x00, 0x00, 0xe0, 0x07, 0x00, 0x00, 0xe0, 0x07, 0x00, | - |
| 110 | 0x00, 0xe0, 0x07, 0x00, 0x00, 0xe2, 0x47, 0x00, 0x00, 0xe3, 0xc7, 0x00, | - |
| 111 | 0x80, 0xe3, 0xc7, 0x01, 0xc0, 0xff, 0xff, 0x03, 0xe0, 0xff, 0xff, 0x07, | - |
| 112 | 0xc0, 0xff, 0xff, 0x03, 0x80, 0xe3, 0xc7, 0x01, 0x00, 0xe3, 0xc7, 0x00, | - |
| 113 | 0x00, 0xe2, 0x47, 0x00, 0x00, 0xe0, 0x07, 0x00, 0x00, 0xe0, 0x07, 0x00, | - |
| 114 | 0x00, 0xe0, 0x07, 0x00, 0x00, 0xe0, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 115 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 116 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 117 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; | - |
| 118 | static const uint8_t whatsthis_bits[] = { | - |
| 119 | 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x05, 0xf0, 0x07, 0x00, | - |
| 120 | 0x09, 0x18, 0x0e, 0x00, 0x11, 0x1c, 0x0e, 0x00, 0x21, 0x1c, 0x0e, 0x00, | - |
| 121 | 0x41, 0x1c, 0x0e, 0x00, 0x81, 0x1c, 0x0e, 0x00, 0x01, 0x01, 0x07, 0x00, | - |
| 122 | 0x01, 0x82, 0x03, 0x00, 0xc1, 0xc7, 0x01, 0x00, 0x49, 0xc0, 0x01, 0x00, | - |
| 123 | 0x95, 0xc0, 0x01, 0x00, 0x93, 0xc0, 0x01, 0x00, 0x21, 0x01, 0x00, 0x00, | - |
| 124 | 0x20, 0xc1, 0x01, 0x00, 0x40, 0xc2, 0x01, 0x00, 0x40, 0x02, 0x00, 0x00, | - |
| 125 | 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 126 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 127 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 128 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 129 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; | - |
| 130 | static const uint8_t whatsthism_bits[] = { | - |
| 131 | 0x01, 0x00, 0x00, 0x00, 0x03, 0xf0, 0x07, 0x00, 0x07, 0xf8, 0x0f, 0x00, | - |
| 132 | 0x0f, 0xfc, 0x1f, 0x00, 0x1f, 0x3e, 0x1f, 0x00, 0x3f, 0x3e, 0x1f, 0x00, | - |
| 133 | 0x7f, 0x3e, 0x1f, 0x00, 0xff, 0x3e, 0x1f, 0x00, 0xff, 0x9d, 0x0f, 0x00, | - |
| 134 | 0xff, 0xc3, 0x07, 0x00, 0xff, 0xe7, 0x03, 0x00, 0x7f, 0xe0, 0x03, 0x00, | - |
| 135 | 0xf7, 0xe0, 0x03, 0x00, 0xf3, 0xe0, 0x03, 0x00, 0xe1, 0xe1, 0x03, 0x00, | - |
| 136 | 0xe0, 0xe1, 0x03, 0x00, 0xc0, 0xe3, 0x03, 0x00, 0xc0, 0xe3, 0x03, 0x00, | - |
| 137 | 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 138 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 139 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 140 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 141 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; | - |
| 142 | static const uint8_t busy_bits[] = { | - |
| 143 | 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, | - |
| 144 | 0x09, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, | - |
| 145 | 0x41, 0xe0, 0xff, 0x00, 0x81, 0x20, 0x80, 0x00, 0x01, 0xe1, 0xff, 0x00, | - |
| 146 | 0x01, 0x42, 0x40, 0x00, 0xc1, 0x47, 0x40, 0x00, 0x49, 0x40, 0x55, 0x00, | - |
| 147 | 0x95, 0x80, 0x2a, 0x00, 0x93, 0x00, 0x15, 0x00, 0x21, 0x01, 0x0a, 0x00, | - |
| 148 | 0x20, 0x01, 0x11, 0x00, 0x40, 0x82, 0x20, 0x00, 0x40, 0x42, 0x44, 0x00, | - |
| 149 | 0x80, 0x41, 0x4a, 0x00, 0x00, 0x40, 0x55, 0x00, 0x00, 0xe0, 0xff, 0x00, | - |
| 150 | 0x00, 0x20, 0x80, 0x00, 0x00, 0xe0, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 151 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 152 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 153 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; | - |
| 154 | static const uint8_t busym_bits[] = { | - |
| 155 | 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, | - |
| 156 | 0x0f, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x00, | - |
| 157 | 0x7f, 0xe0, 0xff, 0x00, 0xff, 0xe0, 0xff, 0x00, 0xff, 0xe1, 0xff, 0x00, | - |
| 158 | 0xff, 0xc3, 0x7f, 0x00, 0xff, 0xc7, 0x7f, 0x00, 0x7f, 0xc0, 0x7f, 0x00, | - |
| 159 | 0xf7, 0x80, 0x3f, 0x00, 0xf3, 0x00, 0x1f, 0x00, 0xe1, 0x01, 0x0e, 0x00, | - |
| 160 | 0xe0, 0x01, 0x1f, 0x00, 0xc0, 0x83, 0x3f, 0x00, 0xc0, 0xc3, 0x7f, 0x00, | - |
| 161 | 0x80, 0xc1, 0x7f, 0x00, 0x00, 0xc0, 0x7f, 0x00, 0x00, 0xe0, 0xff, 0x00, | - |
| 162 | 0x00, 0xe0, 0xff, 0x00, 0x00, 0xe0, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 163 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 164 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | - |
| 165 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; | - |
| 166 | | - |
| 167 | static const uint8_t * const cursor_bits32[] = { | - |
| 168 | vsplit_bits, vsplitm_bits, hsplit_bits, hsplitm_bits, | - |
| 169 | 0, 0, 0, 0, whatsthis_bits, whatsthism_bits, busy_bits, busym_bits | - |
| 170 | }; | - |
| 171 | | - |
| 172 | static const uint8_t forbidden_bits[] = { | - |
| 173 | 0x00,0x00,0x00,0x80,0x1f,0x00,0xe0,0x7f,0x00,0xf0,0xf0,0x00,0x38,0xc0,0x01, | - |
| 174 | 0x7c,0x80,0x03,0xec,0x00,0x03,0xce,0x01,0x07,0x86,0x03,0x06,0x06,0x07,0x06, | - |
| 175 | 0x06,0x0e,0x06,0x06,0x1c,0x06,0x0e,0x38,0x07,0x0c,0x70,0x03,0x1c,0xe0,0x03, | - |
| 176 | 0x38,0xc0,0x01,0xf0,0xe0,0x00,0xe0,0x7f,0x00,0x80,0x1f,0x00,0x00,0x00,0x00 }; | - |
| 177 | | - |
| 178 | static const uint8_t forbiddenm_bits[] = { | - |
| 179 | 0x80,0x1f,0x00,0xe0,0x7f,0x00,0xf0,0xff,0x00,0xf8,0xff,0x01,0xfc,0xf0,0x03, | - |
| 180 | 0xfe,0xc0,0x07,0xfe,0x81,0x07,0xff,0x83,0x0f,0xcf,0x07,0x0f,0x8f,0x0f,0x0f, | - |
| 181 | 0x0f,0x1f,0x0f,0x0f,0x3e,0x0f,0x1f,0xfc,0x0f,0x1e,0xf8,0x07,0x3e,0xf0,0x07, | - |
| 182 | 0xfc,0xe0,0x03,0xf8,0xff,0x01,0xf0,0xff,0x00,0xe0,0x7f,0x00,0x80,0x1f,0x00}; | - |
| 183 | | - |
| 184 | static const uint8_t openhand_bits[] = { | - |
| 185 | 0x80,0x01,0x58,0x0e,0x64,0x12,0x64,0x52,0x48,0xb2,0x48,0x92, | - |
| 186 | 0x16,0x90,0x19,0x80,0x11,0x40,0x02,0x40,0x04,0x40,0x04,0x20, | - |
| 187 | 0x08,0x20,0x10,0x10,0x20,0x10,0x00,0x00}; | - |
| 188 | static const uint8_t openhandm_bits[] = { | - |
| 189 | 0x80,0x01,0xd8,0x0f,0xfc,0x1f,0xfc,0x5f,0xf8,0xff,0xf8,0xff, | - |
| 190 | 0xf6,0xff,0xff,0xff,0xff,0x7f,0xfe,0x7f,0xfc,0x7f,0xfc,0x3f, | - |
| 191 | 0xf8,0x3f,0xf0,0x1f,0xe0,0x1f,0x00,0x00}; | - |
| 192 | static const uint8_t closedhand_bits[] = { | - |
| 193 | 0x00,0x00,0x00,0x00,0x00,0x00,0xb0,0x0d,0x48,0x32,0x08,0x50, | - |
| 194 | 0x10,0x40,0x18,0x40,0x04,0x40,0x04,0x20,0x08,0x20,0x10,0x10, | - |
| 195 | 0x20,0x10,0x20,0x10,0x00,0x00,0x00,0x00}; | - |
| 196 | static const uint8_t closedhandm_bits[] = { | - |
| 197 | 0x00,0x00,0x00,0x00,0x00,0x00,0xb0,0x0d,0xf8,0x3f,0xf8,0x7f, | - |
| 198 | 0xf0,0x7f,0xf8,0x7f,0xfc,0x7f,0xfc,0x3f,0xf8,0x3f,0xf0,0x1f, | - |
| 199 | 0xe0,0x1f,0xe0,0x1f,0x00,0x00,0x00,0x00}; | - |
| 200 | | - |
| 201 | static const uint8_t * const cursor_bits20[] = { | - |
| 202 | forbidden_bits, forbiddenm_bits | - |
| 203 | }; | - |
| 204 | | - |
| 205 | static const char * const cursorNames[] = { | - |
| 206 | "left_ptr", | - |
| 207 | "up_arrow", | - |
| 208 | "cross", | - |
| 209 | "wait", | - |
| 210 | "ibeam", | - |
| 211 | "size_ver", | - |
| 212 | "size_hor", | - |
| 213 | "size_bdiag", | - |
| 214 | "size_fdiag", | - |
| 215 | "size_all", | - |
| 216 | "blank", | - |
| 217 | "split_v", | - |
| 218 | "split_h", | - |
| 219 | "pointing_hand", | - |
| 220 | "forbidden", | - |
| 221 | "whats_this", | - |
| 222 | "left_ptr_watch", | - |
| 223 | "openhand", | - |
| 224 | "closedhand", | - |
| 225 | "copy", | - |
| 226 | "move", | - |
| 227 | "link" | - |
| 228 | }; | - |
| 229 | | - |
| 230 | | - |
| 231 | | - |
| 232 | QXcbCursorCacheKey::QXcbCursorCacheKey(const QCursor &c) | - |
| 233 | : shape(c.shape()), bitmapCacheKey(0), maskCacheKey(0) | - |
| 234 | { | - |
| 235 | if (shape == Qt::BitmapCursor| TRUE | never evaluated | | FALSE | evaluated 7781 times by 114 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
) { | 0-7781 |
| 236 | const qint64 pixmapCacheKey = c.pixmap().cacheKey(); | - |
| 237 | if (pixmapCacheKey| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 238 | bitmapCacheKey = pixmapCacheKey; | - |
| 239 | } never executed: end of block else { | 0 |
| 240 | ((!(c.bitmap())) ? qt_assert("c.bitmap()",__FILE__,289) : qt_noop()); | - |
| 241 | ((!(c.mask())) ? qt_assert("c.mask()",__FILE__,290) : qt_noop()); | - |
| 242 | bitmapCacheKey = c.bitmap()->cacheKey(); | - |
| 243 | maskCacheKey = c.mask()->cacheKey(); | - |
| 244 | } never executed: end of block | 0 |
| 245 | } | - |
| 246 | }executed 7781 times by 114 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_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 7781 |
| 247 | | - |
| 248 | | - |
| 249 | | - |
| 250 | QXcbCursor::QXcbCursor(QXcbConnection *conn, QXcbScreen *screen) | - |
| 251 | : QXcbObject(conn), m_screen(screen), m_gtkCursorThemeInitialized(false) | - |
| 252 | { | - |
| 253 | if (cursorCount++| TRUE | never evaluated | | FALSE | evaluated 135 times by 5 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_qapplication - unknown status
- tst_qprocess - unknown status
- tst_selftests - unknown status
|
) | 0-135 |
| 254 | return; never executed: return; | 0 |
| 255 | | - |
| 256 | cursorFont = xcb_generate_id(xcb_connection()); | - |
| 257 | const char *cursorStr = "cursor"; | - |
| 258 | xcb_open_font(xcb_connection(), cursorFont, strlen(cursorStr), cursorStr); | - |
| 259 | | - |
| 260 | | - |
| 261 | static bool function_ptrs_not_initialized = true; | - |
| 262 | if (function_ptrs_not_initialized| TRUE | evaluated 33 times by 5 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_qapplication - unknown status
- tst_qprocess - unknown status
- tst_selftests - unknown status
| | FALSE | evaluated 102 times by 2 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
|
) { | 33-102 |
| 263 | QLibrary xcursorLib(QLatin1String("Xcursor"), 1); | - |
| 264 | bool xcursorFound = xcursorLib.load(); | - |
| 265 | if (!xcursorFound| TRUE | never evaluated | | FALSE | evaluated 33 times by 5 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_qapplication - unknown status
- tst_qprocess - unknown status
- tst_selftests - unknown status
|
) { | 0-33 |
| 266 | xcursorLib.setFileName(QLatin1String("Xcursor")); | - |
| 267 | xcursorFound = xcursorLib.load(); | - |
| 268 | } never executed: end of block | 0 |
| 269 | if (xcursorFound| TRUE | evaluated 33 times by 5 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_qapplication - unknown status
- tst_qprocess - unknown status
- tst_selftests - unknown status
| | FALSE | never evaluated |
) { | 0-33 |
| 270 | ptrXcursorLibraryLoadCursor = | - |
| 271 | (PtrXcursorLibraryLoadCursor) xcursorLib.resolve("XcursorLibraryLoadCursor"); | - |
| 272 | ptrXcursorLibraryGetTheme = | - |
| 273 | (PtrXcursorLibraryGetTheme) xcursorLib.resolve("XcursorGetTheme"); | - |
| 274 | ptrXcursorLibrarySetTheme = | - |
| 275 | (PtrXcursorLibrarySetTheme) xcursorLib.resolve("XcursorSetTheme"); | - |
| 276 | ptrXcursorLibraryGetDefaultSize = | - |
| 277 | (PtrXcursorLibraryGetDefaultSize) xcursorLib.resolve("XcursorGetDefaultSize"); | - |
| 278 | }executed 33 times by 5 tests: end of blockExecuted by:- tst_QApplication
- tst_QGuiApplication
- tst_qapplication - unknown status
- tst_qprocess - unknown status
- tst_selftests - unknown status
| 33 |
| 279 | function_ptrs_not_initialized = false; | - |
| 280 | }executed 33 times by 5 tests: end of blockExecuted by:- tst_QApplication
- tst_QGuiApplication
- tst_qapplication - unknown status
- tst_qprocess - unknown status
- tst_selftests - unknown status
| 33 |
| 281 | | - |
| 282 | | - |
| 283 | }executed 135 times by 5 tests: end of blockExecuted by:- tst_QApplication
- tst_QGuiApplication
- tst_qapplication - unknown status
- tst_qprocess - unknown status
- tst_selftests - unknown status
| 135 |
| 284 | | - |
| 285 | QXcbCursor::~QXcbCursor() | - |
| 286 | { | - |
| 287 | xcb_connection_t *conn = xcb_connection(); | - |
| 288 | | - |
| 289 | if (m_gtkCursorThemeInitialized| TRUE | evaluated 19 times by 19 testsEvaluated by:- tst_qaccessibility - unknown status
- tst_qcompleter - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qgraphicsitem - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qgraphicsview - unknown status
- tst_qgraphicswidget - unknown status
- tst_qitemview - unknown status
- tst_qlineedit - unknown status
- tst_qmainwindow - unknown status
- tst_qmdiarea - unknown status
- tst_qprinter - unknown status
- tst_qsizegrip - unknown status
- tst_qstackedlayout - unknown status
- tst_qstylesheetstyle - unknown status
- tst_qtableview - unknown status
- tst_qtextbrowser - unknown status
- tst_qwidget - unknown status
| | FALSE | evaluated 328 times by 200 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaction - unknown status
- tst_qactiongroup - unknown status
- tst_qapplication - unknown status
- tst_qbackingstore - unknown status
- tst_qboxlayout - unknown status
- tst_qbrush - unknown status
- tst_qbuttongroup - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcheckbox - unknown status
- tst_qclipboard - unknown status
- tst_qcolor - unknown status
- ...
|
) { | 19-328 |
| 290 | m_screen->xSettings()->removeCallbackForHandle(this); | - |
| 291 | }executed 19 times by 19 tests: end of blockExecuted by:- tst_qaccessibility - unknown status
- tst_qcompleter - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qgraphicsitem - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qgraphicsview - unknown status
- tst_qgraphicswidget - unknown status
- tst_qitemview - unknown status
- tst_qlineedit - unknown status
- tst_qmainwindow - unknown status
- tst_qmdiarea - unknown status
- tst_qprinter - unknown status
- tst_qsizegrip - unknown status
- tst_qstackedlayout - unknown status
- tst_qstylesheetstyle - unknown status
- tst_qtableview - unknown status
- tst_qtextbrowser - unknown status
- tst_qwidget - unknown status
| 19 |
| 292 | | - |
| 293 | if (!--cursorCount| TRUE | evaluated 347 times by 219 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaccessibility - unknown status
- tst_qaction - unknown status
- tst_qactiongroup - unknown status
- tst_qapplication - unknown status
- tst_qbackingstore - unknown status
- tst_qboxlayout - unknown status
- tst_qbrush - unknown status
- tst_qbuttongroup - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcheckbox - unknown status
- tst_qclipboard - unknown status
- ...
| | FALSE | never evaluated |
) | 0-347 |
| 294 | xcb_close_font(conn, cursorFont);executed 347 times by 219 tests: xcb_close_font(conn, cursorFont);Executed by:- tst_QApplication
- tst_QGuiApplication
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaccessibility - unknown status
- tst_qaction - unknown status
- tst_qactiongroup - unknown status
- tst_qapplication - unknown status
- tst_qbackingstore - unknown status
- tst_qboxlayout - unknown status
- tst_qbrush - unknown status
- tst_qbuttongroup - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcheckbox - unknown status
- tst_qclipboard - unknown status
- ...
| 347 |
| 295 | | - |
| 296 | | - |
| 297 | for (xcb_cursor_t cursor : qAsConst(m_cursorHash)) | - |
| 298 | xcb_free_cursor(conn, cursor);executed 164 times by 114 tests: xcb_free_cursor(conn, cursor);Executed by:- tst_QApplication
- tst_gestures - unknown status
- tst_languagechange - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractspinbox - unknown status
- tst_qaccessibility - unknown status
- tst_qaction - unknown status
- tst_qactiongroup - unknown status
- tst_qapplication - unknown status
- tst_qboxlayout - unknown status
- tst_qbuttongroup - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcheckbox - unknown status
- tst_qcolordialog - unknown status
- tst_qcolumnview - unknown status
- tst_qcombobox - unknown status
- tst_qcommandlinkbutton - unknown status
- tst_qcompleter - unknown status
- tst_qdatawidgetmapper - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdesktopwidget - unknown status
- tst_qdial - unknown status
- ...
| 164 |
| 299 | | - |
| 300 | }executed 347 times by 219 tests: end of blockExecuted by:- tst_QApplication
- tst_QGuiApplication
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaccessibility - unknown status
- tst_qaction - unknown status
- tst_qactiongroup - unknown status
- tst_qapplication - unknown status
- tst_qbackingstore - unknown status
- tst_qboxlayout - unknown status
- tst_qbrush - unknown status
- tst_qbuttongroup - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcheckbox - unknown status
- tst_qclipboard - unknown status
- ...
| 347 |
| 301 | | - |
| 302 | | - |
| 303 | void QXcbCursor::changeCursor(QCursor *cursor, QWindow *widget) | - |
| 304 | { | - |
| 305 | QXcbWindow *w = 0; | - |
| 306 | if (widget| TRUE | evaluated 7794 times by 114 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| | FALSE | never evaluated |
&& widget->handle()| TRUE | evaluated 7794 times by 114 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| | FALSE | never evaluated |
) | 0-7794 |
| 307 | w = static_cast<QXcbWindow *>(widget->handle());executed 7794 times by 114 tests: w = static_cast<QXcbWindow *>(widget->handle());Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 7794 |
| 308 | else | - |
| 309 | | - |
| 310 | return; never executed: return; | 0 |
| 311 | | - |
| 312 | xcb_cursor_t c = XCB_CURSOR_NONE; | - |
| 313 | bool isBitmapCursor = false; | - |
| 314 | | - |
| 315 | if (cursor| TRUE | evaluated 7781 times by 114 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| | FALSE | evaluated 13 times by 6 testsEvaluated by:- tst_QAbstractButton
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QScrollBar
- tst_QStyleSheetStyle
- tst_QWidget
|
) { | 13-7781 |
| 316 | const Qt::CursorShape shape = cursor->shape(); | - |
| 317 | isBitmapCursor = shape == Qt::BitmapCursor; | - |
| 318 | | - |
| 319 | if (!isBitmapCursor| TRUE | evaluated 7781 times by 114 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| | FALSE | never evaluated |
) { | 0-7781 |
| 320 | const QXcbCursorCacheKey key(*cursor); | - |
| 321 | CursorHash::iterator it = m_cursorHash.find(key); | - |
| 322 | if (it == m_cursorHash.end()| TRUE | evaluated 166 times by 114 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| | FALSE | evaluated 7615 times by 114 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
) { | 166-7615 |
| 323 | it = m_cursorHash.insert(key, createFontCursor(shape)); | - |
| 324 | }executed 166 times by 114 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_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 166 |
| 325 | c = it.value(); | - |
| 326 | }executed 7781 times by 114 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_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
else { | 7781 |
| 327 | | - |
| 328 | | - |
| 329 | c = createBitmapCursor(cursor); | - |
| 330 | } never executed: end of block | 0 |
| 331 | } | - |
| 332 | | - |
| 333 | w->setCursor(c, isBitmapCursor); | - |
| 334 | }executed 7794 times by 114 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_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 7794 |
| 335 | | - |
| 336 | static int cursorIdForShape(int cshape) | - |
| 337 | { | - |
| 338 | int cursorId = 0; | - |
| 339 | switch (cshape) { | - |
| 340 | caseexecuted 137 times by 114 tests: case Qt::ArrowCursor:Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
Qt::ArrowCursor:executed 137 times by 114 tests: case Qt::ArrowCursor:Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 137 |
| 341 | cursorId = 68; | - |
| 342 | break;executed 137 times by 114 tests: break;Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 137 |
| 343 | case never executed: case Qt::UpArrowCursor: Qt::UpArrowCursor:never executed: case Qt::UpArrowCursor: | 0 |
| 344 | cursorId = 22; | - |
| 345 | break; never executed: break; | 0 |
| 346 | case never executed: case Qt::CrossCursor: Qt::CrossCursor:never executed: case Qt::CrossCursor: | 0 |
| 347 | cursorId = 34; | - |
| 348 | break; never executed: break; | 0 |
| 349 | caseexecuted 3 times by 3 tests: case Qt::WaitCursor:Executed by:- tst_QMainWindow
- tst_QTextBrowser
- tst_QWidget
Qt::WaitCursor:executed 3 times by 3 tests: case Qt::WaitCursor:Executed by:- tst_QMainWindow
- tst_QTextBrowser
- tst_QWidget
| 3 |
| 350 | cursorId = 150; | - |
| 351 | break;executed 3 times by 3 tests: break;Executed by:- tst_QMainWindow
- tst_QTextBrowser
- tst_QWidget
| 3 |
| 352 | caseexecuted 14 times by 14 tests: case Qt::IBeamCursor:Executed by:- tst_QAccessibility
- tst_QCompleter
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QItemView
- tst_QLineEdit
- tst_QMdiArea
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QWidget
Qt::IBeamCursor:executed 14 times by 14 tests: case Qt::IBeamCursor:Executed by:- tst_QAccessibility
- tst_QCompleter
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QItemView
- tst_QLineEdit
- tst_QMdiArea
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QWidget
| 14 |
| 353 | cursorId = 152; | - |
| 354 | break;executed 14 times by 14 tests: break;Executed by:- tst_QAccessibility
- tst_QCompleter
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QItemView
- tst_QLineEdit
- tst_QMdiArea
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QWidget
| 14 |
| 355 | caseexecuted 2 times by 2 tests: case Qt::SizeAllCursor:Executed by:- tst_QGraphicsView
- tst_QMainWindow
Qt::SizeAllCursor:executed 2 times by 2 tests: case Qt::SizeAllCursor:Executed by:- tst_QGraphicsView
- tst_QMainWindow
| 2 |
| 356 | cursorId = 52; | - |
| 357 | break;executed 2 times by 2 tests: break;Executed by:- tst_QGraphicsView
- tst_QMainWindow
| 2 |
| 358 | caseexecuted 2 times by 2 tests: case Qt::PointingHandCursor:Executed by:- tst_QGraphicsItem
- tst_QGraphicsView
Qt::PointingHandCursor:executed 2 times by 2 tests: case Qt::PointingHandCursor:Executed by:- tst_QGraphicsItem
- tst_QGraphicsView
| 2 |
| 359 | cursorId = 60; | - |
| 360 | break;executed 2 times by 2 tests: break;Executed by:- tst_QGraphicsItem
- tst_QGraphicsView
| 2 |
| 361 | case never executed: case Qt::SizeBDiagCursor: Qt::SizeBDiagCursor:never executed: case Qt::SizeBDiagCursor: | 0 |
| 362 | cursorId = 136; | - |
| 363 | break; never executed: break; | 0 |
| 364 | caseexecuted 2 times by 2 tests: case Qt::SizeFDiagCursor:Executed by:- tst_QFileDialog2
- tst_QGraphicsWidget
Qt::SizeFDiagCursor:executed 2 times by 2 tests: case Qt::SizeFDiagCursor:Executed by:- tst_QFileDialog2
- tst_QGraphicsWidget
| 2 |
| 365 | cursorId = 14; | - |
| 366 | break;executed 2 times by 2 tests: break;Executed by:- tst_QFileDialog2
- tst_QGraphicsWidget
| 2 |
| 367 | case never executed: case Qt::SizeVerCursor: Qt::SizeVerCursor:never executed: case Qt::SizeVerCursor: | 0 |
| 368 | caseexecuted 1 time by 1 test: case Qt::SplitVCursor: Qt::SplitVCursor:executed 1 time by 1 test: case Qt::SplitVCursor: | 1 |
| 369 | cursorId = 116; | - |
| 370 | break;executed 1 time by 1 test: break; | 1 |
| 371 | case never executed: case Qt::SizeHorCursor: Qt::SizeHorCursor:never executed: case Qt::SizeHorCursor: | 0 |
| 372 | caseexecuted 1 time by 1 test: case Qt::SplitHCursor: Qt::SplitHCursor:executed 1 time by 1 test: case Qt::SplitHCursor: | 1 |
| 373 | cursorId = 108; | - |
| 374 | break;executed 1 time by 1 test: break; | 1 |
| 375 | case never executed: case Qt::WhatsThisCursor: Qt::WhatsThisCursor:never executed: case Qt::WhatsThisCursor: | 0 |
| 376 | cursorId = 92; | - |
| 377 | break; never executed: break; | 0 |
| 378 | case never executed: case Qt::ForbiddenCursor: Qt::ForbiddenCursor:never executed: case Qt::ForbiddenCursor: | 0 |
| 379 | cursorId = 24; | - |
| 380 | break; never executed: break; | 0 |
| 381 | case never executed: case Qt::BusyCursor: Qt::BusyCursor:never executed: case Qt::BusyCursor: | 0 |
| 382 | cursorId = 150; | - |
| 383 | break; never executed: break; | 0 |
| 384 | defaultexecuted 4 times by 3 tests: default:Executed by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
:executed 4 times by 3 tests: default:Executed by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
| 4 |
| 385 | break;executed 4 times by 3 tests: break;Executed by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
| 4 |
| 386 | } | - |
| 387 | returnexecuted 166 times by 114 tests: return cursorId;Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
cursorId;executed 166 times by 114 tests: return cursorId;Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 166 |
| 388 | } | - |
| 389 | | - |
| 390 | xcb_cursor_t QXcbCursor::createNonStandardCursor(int cshape) | - |
| 391 | { | - |
| 392 | xcb_cursor_t cursor = 0; | - |
| 393 | xcb_connection_t *conn = xcb_connection(); | - |
| 394 | | - |
| 395 | if (cshape == Qt::BlankCursor| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 3 times by 3 testsEvaluated by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
|
) { | 1-3 |
| 396 | xcb_pixmap_t cp = xcb_create_pixmap_from_bitmap_data(conn, m_screen->root(), cur_blank_bits, 16, 16, | - |
| 397 | 1, 0, 0, 0); | - |
| 398 | xcb_pixmap_t mp = xcb_create_pixmap_from_bitmap_data(conn, m_screen->root(), cur_blank_bits, 16, 16, | - |
| 399 | 1, 0, 0, 0); | - |
| 400 | cursor = xcb_generate_id(conn); | - |
| 401 | xcb_create_cursor(conn, cursor, cp, mp, 0, 0, 0, 0xFFFF, 0xFFFF, 0xFFFF, 8, 8); | - |
| 402 | }executed 1 time by 1 test: end of block else if (cshape >= Qt::SizeVerCursor| TRUE | evaluated 3 times by 3 testsEvaluated by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
| | FALSE | never evaluated |
&& cshape < Qt::SizeAllCursor| TRUE | never evaluated | | FALSE | evaluated 3 times by 3 testsEvaluated by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
|
) { | 0-3 |
| 403 | int i = (cshape - Qt::SizeVerCursor) * 2; | - |
| 404 | xcb_pixmap_t pm = xcb_create_pixmap_from_bitmap_data(conn, m_screen->root(), | - |
| 405 | const_cast<uint8_t*>(cursor_bits16[i]), | - |
| 406 | 16, 16, 1, 0, 0, 0); | - |
| 407 | xcb_pixmap_t pmm = xcb_create_pixmap_from_bitmap_data(conn, m_screen->root(), | - |
| 408 | const_cast<uint8_t*>(cursor_bits16[i + 1]), | - |
| 409 | 16, 16, 1, 0, 0, 0); | - |
| 410 | cursor = xcb_generate_id(conn); | - |
| 411 | xcb_create_cursor(conn, cursor, pm, pmm, 0, 0, 0, 0xFFFF, 0xFFFF, 0xFFFF, 8, 8); | - |
| 412 | } never executed: end of block else if ((cshape >= Qt::SplitVCursor| TRUE | evaluated 3 times by 3 testsEvaluated by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
| | FALSE | never evaluated |
&& cshape <= Qt::SplitHCursor| TRUE | never evaluated | | FALSE | evaluated 3 times by 3 testsEvaluated by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
|
) | 0-3 |
| 413 | || cshape == Qt::WhatsThisCursor| TRUE | never evaluated | | FALSE | evaluated 3 times by 3 testsEvaluated by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
|
|| cshape == Qt::BusyCursor| TRUE | never evaluated | | FALSE | evaluated 3 times by 3 testsEvaluated by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
|
) { | 0-3 |
| 414 | int i = (cshape - Qt::SplitVCursor) * 2; | - |
| 415 | xcb_pixmap_t pm = xcb_create_pixmap_from_bitmap_data(conn, m_screen->root(), | - |
| 416 | const_cast<uint8_t*>(cursor_bits32[i]), | - |
| 417 | 32, 32, 1, 0, 0, 0); | - |
| 418 | xcb_pixmap_t pmm = xcb_create_pixmap_from_bitmap_data(conn, m_screen->root(), | - |
| 419 | const_cast<uint8_t*>(cursor_bits32[i + 1]), | - |
| 420 | 32, 32, 1, 0, 0, 0); | - |
| 421 | int hs = (cshape == Qt::PointingHandCursor| TRUE | never evaluated | | FALSE | never evaluated |
|| cshape == Qt::WhatsThisCursor| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 422 | || cshape == Qt::BusyCursor| TRUE | never evaluated | | FALSE | never evaluated |
) ? 0 : 16; | 0 |
| 423 | cursor = xcb_generate_id(conn); | - |
| 424 | xcb_create_cursor(conn, cursor, pm, pmm, 0, 0, 0, 0xFFFF, 0xFFFF, 0xFFFF, hs, hs); | - |
| 425 | } never executed: end of block else if (cshape == Qt::ForbiddenCursor| TRUE | never evaluated | | FALSE | evaluated 3 times by 3 testsEvaluated by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
|
) { | 0-3 |
| 426 | int i = (cshape - Qt::ForbiddenCursor) * 2; | - |
| 427 | xcb_pixmap_t pm = xcb_create_pixmap_from_bitmap_data(conn, m_screen->root(), | - |
| 428 | const_cast<uint8_t*>(cursor_bits20[i]), | - |
| 429 | 20, 20, 1, 0, 0, 0); | - |
| 430 | xcb_pixmap_t pmm = xcb_create_pixmap_from_bitmap_data(conn, m_screen->root(), | - |
| 431 | const_cast<uint8_t*>(cursor_bits20[i + 1]), | - |
| 432 | 20, 20, 1, 0, 0, 0); | - |
| 433 | cursor = xcb_generate_id(conn); | - |
| 434 | xcb_create_cursor(conn, cursor, pm, pmm, 0, 0, 0, 0xFFFF, 0xFFFF, 0xFFFF, 10, 10); | - |
| 435 | } never executed: end of block else if (cshape == Qt::OpenHandCursor| TRUE | evaluated 3 times by 3 testsEvaluated by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
| | FALSE | never evaluated |
|| cshape == Qt::ClosedHandCursor| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0-3 |
| 436 | bool open = cshape == Qt::OpenHandCursor; | - |
| 437 | xcb_pixmap_t pm = xcb_create_pixmap_from_bitmap_data(conn, m_screen->root(), | - |
| 438 | const_cast<uint8_t*>(open ? openhand_bits : closedhand_bits), | - |
| 439 | 16, 16, 1, 0, 0, 0); | - |
| 440 | xcb_pixmap_t pmm = xcb_create_pixmap_from_bitmap_data(conn, m_screen->root(), | - |
| 441 | const_cast<uint8_t*>(open ? openhandm_bits : closedhandm_bits), | - |
| 442 | 16, 16, 1, 0, 0, 0); | - |
| 443 | cursor = xcb_generate_id(conn); | - |
| 444 | xcb_create_cursor(conn, cursor, pm, pmm, 0, 0, 0, 0xFFFF, 0xFFFF, 0xFFFF, 8, 8); | - |
| 445 | }executed 3 times by 3 tests: end of blockExecuted by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
else if (cshape == Qt::DragCopyCursor| TRUE | never evaluated | | FALSE | never evaluated |
|| cshape == Qt::DragMoveCursor| TRUE | never evaluated | | FALSE | never evaluated |
| 0-3 |
| 446 | || cshape == Qt::DragLinkCursor| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 447 | QImage image = QGuiApplicationPrivate::instance()->getPixmapCursor(static_cast<Qt::CursorShape>(cshape)).toImage(); | - |
| 448 | if (!image.isNull()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 449 | xcb_pixmap_t pm = qt_xcb_XPixmapFromBitmap(m_screen, image); | - |
| 450 | xcb_pixmap_t pmm = qt_xcb_XPixmapFromBitmap(m_screen, image.createAlphaMask()); | - |
| 451 | cursor = xcb_generate_id(conn); | - |
| 452 | xcb_create_cursor(conn, cursor, pm, pmm, 0, 0, 0, 0xFFFF, 0xFFFF, 0xFFFF, 8, 8); | - |
| 453 | xcb_free_pixmap(conn, pm); | - |
| 454 | xcb_free_pixmap(conn, pmm); | - |
| 455 | } never executed: end of block | 0 |
| 456 | } never executed: end of block | 0 |
| 457 | | - |
| 458 | returnexecuted 4 times by 3 tests: return cursor;Executed by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
cursor;executed 4 times by 3 tests: return cursor;Executed by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
| 4 |
| 459 | } | - |
| 460 | | - |
| 461 | | - |
| 462 | bool updateCursorTheme(void *dpy, const QByteArray &theme) { | - |
| 463 | if (!ptrXcursorLibraryGetTheme| TRUE | never evaluated | | FALSE | evaluated 19 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
| 0-19 |
| 464 | || !ptrXcursorLibrarySetTheme| TRUE | never evaluated | | FALSE | evaluated 19 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
) | 0-19 |
| 465 | return never executed: return false; false;never executed: return false; | 0 |
| 466 | QByteArray oldTheme = ptrXcursorLibraryGetTheme(dpy); | - |
| 467 | if (oldTheme == theme| TRUE | never evaluated | | FALSE | evaluated 19 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
) | 0-19 |
| 468 | return never executed: return false; false;never executed: return false; | 0 |
| 469 | | - |
| 470 | int setTheme = ptrXcursorLibrarySetTheme(dpy,theme.constData()); | - |
| 471 | returnexecuted 19 times by 19 tests: return setTheme;Executed by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
setTheme;executed 19 times by 19 tests: return setTheme;Executed by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| 19 |
| 472 | } | - |
| 473 | | - |
| 474 | void QXcbCursor::cursorThemePropertyChanged(QXcbVirtualDesktop *screen, const QByteArray &name, const QVariant &property, void *handle) | - |
| 475 | { | - |
| 476 | (void)screen;; | - |
| 477 | (void)name;; | - |
| 478 | QXcbCursor *self = static_cast<QXcbCursor *>(handle); | - |
| 479 | updateCursorTheme(self->connection()->xlib_display(),property.toByteArray()); | - |
| 480 | } never executed: end of block | 0 |
| 481 | | - |
| 482 | static xcb_cursor_t loadCursor(void *dpy, int cshape) | - |
| 483 | { | - |
| 484 | xcb_cursor_t cursor = 0L; | - |
| 485 | if (!ptrXcursorLibraryLoadCursor| TRUE | never evaluated | | FALSE | evaluated 185 times by 114 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
|| !dpy| TRUE | never evaluated | | FALSE | evaluated 185 times by 114 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
) | 0-185 |
| 486 | return never executed: return cursor; cursor;never executed: return cursor; | 0 |
| 487 | switch (cshape) { | - |
| 488 | case never executed: case Qt::DragCopyCursor: Qt::DragCopyCursor:never executed: case Qt::DragCopyCursor: | 0 |
| 489 | cursor = ptrXcursorLibraryLoadCursor(dpy, "dnd-copy"); | - |
| 490 | break; never executed: break; | 0 |
| 491 | case never executed: case Qt::DragMoveCursor: Qt::DragMoveCursor:never executed: case Qt::DragMoveCursor: | 0 |
| 492 | cursor = ptrXcursorLibraryLoadCursor(dpy, "dnd-move"); | - |
| 493 | break; never executed: break; | 0 |
| 494 | case never executed: case Qt::DragLinkCursor: Qt::DragLinkCursor:never executed: case Qt::DragLinkCursor: | 0 |
| 495 | cursor = ptrXcursorLibraryLoadCursor(dpy, "dnd-link"); | - |
| 496 | break; never executed: break; | 0 |
| 497 | defaultexecuted 185 times by 114 tests: default:Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
:executed 185 times by 114 tests: default:Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 185 |
| 498 | break;executed 185 times by 114 tests: break;Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 185 |
| 499 | } | - |
| 500 | if (!cursor| TRUE | evaluated 185 times by 114 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| | FALSE | never evaluated |
) { | 0-185 |
| 501 | cursor = ptrXcursorLibraryLoadCursor(dpy, cursorNames[cshape]); | - |
| 502 | }executed 185 times by 114 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_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 185 |
| 503 | returnexecuted 185 times by 114 tests: return cursor;Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
cursor;executed 185 times by 114 tests: return cursor;Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 185 |
| 504 | } | - |
| 505 | | - |
| 506 | | - |
| 507 | xcb_cursor_t QXcbCursor::createFontCursor(int cshape) | - |
| 508 | { | - |
| 509 | xcb_connection_t *conn = xcb_connection(); | - |
| 510 | int cursorId = cursorIdForShape(cshape); | - |
| 511 | xcb_cursor_t cursor = 0L; | - |
| 512 | | - |
| 513 | | - |
| 514 | | - |
| 515 | if (cshape >= 0| TRUE | evaluated 166 times by 114 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| | FALSE | never evaluated |
&& cshape <= Qt::LastCursor| TRUE | evaluated 166 times by 114 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| | FALSE | never evaluated |
) { | 0-166 |
| 516 | void *dpy = connection()->xlib_display(); | - |
| 517 | | - |
| 518 | cursor = loadCursor(dpy, cshape); | - |
| 519 | if (!cursor| TRUE | evaluated 29 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | evaluated 137 times by 114 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
&& !m_gtkCursorThemeInitialized| TRUE | evaluated 19 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | evaluated 10 times by 5 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsView
- tst_QItemView
- tst_QMainWindow
- tst_QWidget
|
&& m_screen->xSettings()->initialized()| TRUE | evaluated 19 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | never evaluated |
) { | 0-137 |
| 520 | QByteArray gtkCursorTheme = m_screen->xSettings()->setting("Gtk/CursorThemeName").toByteArray(); | - |
| 521 | m_screen->xSettings()->registerCallbackForProperty("Gtk/CursorThemeName",cursorThemePropertyChanged,this); | - |
| 522 | if (updateCursorTheme(dpy,gtkCursorTheme)| TRUE | evaluated 19 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | never evaluated |
) { | 0-19 |
| 523 | cursor = loadCursor(dpy, cshape); | - |
| 524 | }executed 19 times by 19 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| 19 |
| 525 | m_gtkCursorThemeInitialized = true; | - |
| 526 | }executed 19 times by 19 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| 19 |
| 527 | }executed 166 times by 114 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_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 166 |
| 528 | if (cursor| TRUE | evaluated 137 times by 114 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| | FALSE | evaluated 29 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
) | 29-137 |
| 529 | returnexecuted 137 times by 114 tests: return cursor;Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
cursor;executed 137 times by 114 tests: return cursor;Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 137 |
| 530 | if (!cursor| TRUE | evaluated 29 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | never evaluated |
&& cursorId| TRUE | evaluated 25 times by 18 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | evaluated 4 times by 3 testsEvaluated by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
|
) { | 0-29 |
| 531 | cursor = XCreateFontCursor(((Display *)(this->connection()->xlib_display())), cursorId); | - |
| 532 | if (cursor| TRUE | evaluated 25 times by 18 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | never evaluated |
) | 0-25 |
| 533 | returnexecuted 25 times by 18 tests: return cursor;Executed by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
cursor;executed 25 times by 18 tests: return cursor;Executed by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| 25 |
| 534 | } never executed: end of block | 0 |
| 535 | | - |
| 536 | | - |
| 537 | | - |
| 538 | | - |
| 539 | cursor = createNonStandardCursor(cshape); | - |
| 540 | | - |
| 541 | | - |
| 542 | if (!cursor| TRUE | never evaluated | | FALSE | evaluated 4 times by 3 testsEvaluated by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
|
&& cursorId| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0-4 |
| 543 | cursor = xcb_generate_id(conn); | - |
| 544 | xcb_create_glyph_cursor(conn, cursor, cursorFont, cursorFont, | - |
| 545 | cursorId, cursorId + 1, | - |
| 546 | 0xFFFF, 0xFFFF, 0xFFFF, 0, 0, 0); | - |
| 547 | } never executed: end of block | 0 |
| 548 | | - |
| 549 | if (cursor| TRUE | evaluated 4 times by 3 testsEvaluated by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
| | FALSE | never evaluated |
&& cshape >= 0| TRUE | evaluated 4 times by 3 testsEvaluated by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
| | FALSE | never evaluated |
&& cshape < Qt::LastCursor| TRUE | evaluated 4 times by 3 testsEvaluated by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
| | FALSE | never evaluated |
&& connection()->hasXFixes()| TRUE | evaluated 4 times by 3 testsEvaluated by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
| | FALSE | never evaluated |
) { | 0-4 |
| 550 | const char *name = cursorNames[cshape]; | - |
| 551 | xcb_xfixes_set_cursor_name(conn, cursor, strlen(name), name); | - |
| 552 | }executed 4 times by 3 tests: end of blockExecuted by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
| 4 |
| 553 | | - |
| 554 | returnexecuted 4 times by 3 tests: return cursor;Executed by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
cursor;executed 4 times by 3 tests: return cursor;Executed by:- tst_QGraphicsView
- tst_QPrinter
- tst_QWidget
| 4 |
| 555 | } | - |
| 556 | | - |
| 557 | xcb_cursor_t QXcbCursor::createBitmapCursor(QCursor *cursor) | - |
| 558 | { | - |
| 559 | xcb_connection_t *conn = xcb_connection(); | - |
| 560 | QPoint spot = cursor->hotSpot(); | - |
| 561 | xcb_cursor_t c = 0L; | - |
| 562 | if (cursor->pixmap().depth() > 1| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 563 | c = qt_xcb_createCursorXRender(m_screen, cursor->pixmap().toImage(), spot); never executed: c = qt_xcb_createCursorXRender(m_screen, cursor->pixmap().toImage(), spot); | 0 |
| 564 | if (!c| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 565 | xcb_pixmap_t cp = qt_xcb_XPixmapFromBitmap(m_screen, cursor->bitmap()->toImage()); | - |
| 566 | xcb_pixmap_t mp = qt_xcb_XPixmapFromBitmap(m_screen, cursor->mask()->toImage()); | - |
| 567 | c = xcb_generate_id(conn); | - |
| 568 | xcb_create_cursor(conn, c, cp, mp, 0, 0, 0, 0xFFFF, 0xFFFF, 0xFFFF, | - |
| 569 | spot.x(), spot.y()); | - |
| 570 | xcb_free_pixmap(conn, cp); | - |
| 571 | xcb_free_pixmap(conn, mp); | - |
| 572 | } never executed: end of block | 0 |
| 573 | return never executed: return c; c;never executed: return c; | 0 |
| 574 | } | - |
| 575 | | - |
| 576 | | - |
| 577 | void QXcbCursor::queryPointer(QXcbConnection *c, QXcbVirtualDesktop **virtualDesktop, QPoint *pos, int *keybMask) | - |
| 578 | { | - |
| 579 | if (pos| TRUE | evaluated 15518 times by 80 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDial
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- ...
| | FALSE | evaluated 722 times by 27 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDialog
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QItemView
- tst_QListWidget
- tst_QMdiSubWindow
- tst_QMenu
- tst_QMenuBar
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QToolTip
- tst_QWidget
- tst_QWindow
- tst_qapplication - unknown status
- ...
|
) | 722-15518 |
| 580 | *executed 15518 times by 80 tests: *pos = QPoint();Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDial
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- ...
pos = QPoint();executed 15518 times by 80 tests: *pos = QPoint();Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDial
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- ...
| 15518 |
| 581 | | - |
| 582 | xcb_window_t root = c->primaryVirtualDesktop()->root(); | - |
| 583 | xcb_query_pointer_cookie_t cookie = xcb_query_pointer(c->xcb_connection(), root); | - |
| 584 | xcb_generic_error_t *err = 0; | - |
| 585 | xcb_query_pointer_reply_t *reply = xcb_query_pointer_reply(c->xcb_connection(), cookie, &err); | - |
| 586 | if (!err| TRUE | evaluated 16240 times by 83 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDial
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- ...
| | FALSE | never evaluated |
&& reply| TRUE | evaluated 16240 times by 83 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDial
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- ...
| | FALSE | never evaluated |
) { | 0-16240 |
| 587 | if (virtualDesktop| TRUE | evaluated 722 times by 27 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDialog
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QItemView
- tst_QListWidget
- tst_QMdiSubWindow
- tst_QMenu
- tst_QMenuBar
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QToolTip
- tst_QWidget
- tst_QWindow
- tst_qapplication - unknown status
- ...
| | FALSE | evaluated 15518 times by 80 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDial
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- ...
|
) { | 722-15518 |
| 588 | const auto virtualDesktops = c->virtualDesktops(); | - |
| 589 | for (QXcbVirtualDesktop *vd : virtualDesktops) { | - |
| 590 | if (vd->root() == reply->root| TRUE | evaluated 722 times by 27 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDialog
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QItemView
- tst_QListWidget
- tst_QMdiSubWindow
- tst_QMenu
- tst_QMenuBar
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QToolTip
- tst_QWidget
- tst_QWindow
- tst_qapplication - unknown status
- ...
| | FALSE | never evaluated |
) { | 0-722 |
| 591 | *virtualDesktop = vd; | - |
| 592 | break;executed 722 times by 27 tests: break;Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDialog
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QItemView
- tst_QListWidget
- tst_QMdiSubWindow
- tst_QMenu
- tst_QMenuBar
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QToolTip
- tst_QWidget
- tst_QWindow
- tst_qapplication - unknown status
- ...
| 722 |
| 593 | } | - |
| 594 | } never executed: end of block | 0 |
| 595 | }executed 722 times by 27 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDialog
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QItemView
- tst_QListWidget
- tst_QMdiSubWindow
- tst_QMenu
- tst_QMenuBar
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QToolTip
- tst_QWidget
- tst_QWindow
- tst_qapplication - unknown status
- ...
| 722 |
| 596 | if (pos| TRUE | evaluated 15518 times by 80 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDial
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- ...
| | FALSE | evaluated 722 times by 27 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDialog
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QItemView
- tst_QListWidget
- tst_QMdiSubWindow
- tst_QMenu
- tst_QMenuBar
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QToolTip
- tst_QWidget
- tst_QWindow
- tst_qapplication - unknown status
- ...
|
) | 722-15518 |
| 597 | *executed 15518 times by 80 tests: *pos = QPoint(reply->root_x, reply->root_y);Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDial
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- ...
pos = QPoint(reply->root_x, reply->root_y);executed 15518 times by 80 tests: *pos = QPoint(reply->root_x, reply->root_y);Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDial
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- ...
| 15518 |
| 598 | if (keybMask| TRUE | never evaluated | | FALSE | evaluated 16240 times by 83 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDial
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- ...
|
) | 0-16240 |
| 599 | * never executed: *keybMask = reply->mask; keybMask = reply->mask;never executed: *keybMask = reply->mask; | 0 |
| 600 | free(reply); | - |
| 601 | return;executed 16240 times by 83 tests: return;Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDial
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- ...
| 16240 |
| 602 | } | - |
| 603 | free(err); | - |
| 604 | free(reply); | - |
| 605 | } never executed: end of block | 0 |
| 606 | | - |
| 607 | QPoint QXcbCursor::pos() const | - |
| 608 | { | - |
| 609 | QPoint p; | - |
| 610 | queryPointer(connection(), 0, &p); | - |
| 611 | returnexecuted 15518 times by 80 tests: return p;Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDial
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- ...
p;executed 15518 times by 80 tests: return p;Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDial
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- ...
| 15518 |
| 612 | } | - |
| 613 | | - |
| 614 | void QXcbCursor::setPos(const QPoint &pos) | - |
| 615 | { | - |
| 616 | QXcbVirtualDesktop *virtualDesktop = nullptr; | - |
| 617 | queryPointer(connection(), &virtualDesktop, 0); | - |
| 618 | xcb_warp_pointer(xcb_connection(), 0L, virtualDesktop->root(), 0, 0, 0, 0, pos.x(), pos.y()); | - |
| 619 | xcb_flush(xcb_connection()); | - |
| 620 | }executed 587 times by 23 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDialog
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QItemView
- tst_QListWidget
- tst_QMdiSubWindow
- tst_QMenu
- tst_QMenuBar
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QToolTip
- tst_QWidget
- tst_QWindow
| 587 |
| 621 | | - |
| 622 | | - |
| | |