| 211 | } |
| 212 | |
| 213 | void DebugConsoleFilter::pointerButton(PointerButtonEvent *event) |
| 214 | { |
| 215 | QString text = s_hr; |
| 216 | const QString timestamp = timestampRow(event->timestamp); |
| 217 | |
| 218 | text.append(s_tableStart); |
| 219 | if (event->state == PointerButtonState::Pressed) { |
| 220 | text.append(tableHeaderRow(i18nc("A mouse pointer button press event", "Pointer Button Press"))); |
| 221 | text.append(deviceRow(event->device)); |
| 222 | text.append(timestamp); |
| 223 | text.append(tableRow(i18nc("A button in a mouse press/release event", "Button"), buttonToString(event->button))); |
| 224 | text.append(tableRow(i18nc("A button in a mouse press/release event", "Native Button code"), event->nativeButton)); |
| 225 | text.append(tableRow(i18nc("All currently pressed buttons in a mouse press/release event", "Pressed Buttons"), buttonsToString(event->buttons))); |
| 226 | } else { |
| 227 | text.append(tableHeaderRow(i18nc("A mouse pointer button release event", "Pointer Button Release"))); |
| 228 | text.append(deviceRow(event->device)); |
| 229 | text.append(timestamp); |
| 230 | text.append(tableRow(i18nc("A button in a mouse press/release event", "Button"), buttonToString(event->button))); |
| 231 | text.append(tableRow(i18nc("A button in a mouse press/release event", "Native Button code"), event->nativeButton)); |
| 232 | text.append(tableRow(i18nc("All currently pressed buttons in a mouse press/release event", "Pressed Buttons"), buttonsToString(event->buttons))); |
| 233 | } |
| 234 | text.append(s_tableEnd); |
| 235 | |
| 236 | m_textEdit->insertHtml(text); |
| 237 | m_textEdit->ensureCursorVisible(); |
| 238 | } |
| 239 | |
| 240 | void DebugConsoleFilter::pointerAxis(PointerAxisEvent *event) |
| 241 | { |
nothing calls this directly
no test coverage detected