| 190 | } |
| 191 | |
| 192 | void DebugConsoleFilter::pointerButton(PointerButtonEvent *event) |
| 193 | { |
| 194 | QString text = s_hr; |
| 195 | const QString timestamp = timestampRow(event->timestamp); |
| 196 | |
| 197 | text.append(s_tableStart); |
| 198 | if (event->state == PointerButtonState::Pressed) { |
| 199 | text.append(tableHeaderRow(i18nc("A mouse pointer button press event", "Pointer Button Press"))); |
| 200 | text.append(deviceRow(event->device)); |
| 201 | text.append(timestamp); |
| 202 | text.append(tableRow(i18nc("A button in a mouse press/release event", "Button"), buttonToString(event->button))); |
| 203 | text.append(tableRow(i18nc("A button in a mouse press/release event", "Native Button code"), event->nativeButton)); |
| 204 | text.append(tableRow(i18nc("All currently pressed buttons in a mouse press/release event", "Pressed Buttons"), buttonsToString(event->buttons))); |
| 205 | } else { |
| 206 | text.append(tableHeaderRow(i18nc("A mouse pointer button release event", "Pointer Button Release"))); |
| 207 | text.append(deviceRow(event->device)); |
| 208 | text.append(timestamp); |
| 209 | text.append(tableRow(i18nc("A button in a mouse press/release event", "Button"), buttonToString(event->button))); |
| 210 | text.append(tableRow(i18nc("A button in a mouse press/release event", "Native Button code"), event->nativeButton)); |
| 211 | text.append(tableRow(i18nc("All currently pressed buttons in a mouse press/release event", "Pressed Buttons"), buttonsToString(event->buttons))); |
| 212 | } |
| 213 | text.append(s_tableEnd); |
| 214 | |
| 215 | m_textEdit->insertHtml(text); |
| 216 | m_textEdit->ensureCursorVisible(); |
| 217 | } |
| 218 | |
| 219 | void DebugConsoleFilter::pointerAxis(PointerAxisEvent *event) |
| 220 | { |
nothing calls this directly
no test coverage detected