MCPcopy Create free account
hub / github.com/KDE/kwin / pointerAxis

Method pointerAxis

src/debug_console.cpp:240–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240void DebugConsoleFilter::pointerAxis(PointerAxisEvent *event)
241{
242 QString text = s_hr;
243 text.append(s_tableStart);
244 text.append(tableHeaderRow(i18nc("A mouse pointer axis (wheel) event", "Pointer Axis")));
245 text.append(deviceRow(event->device));
246 text.append(timestampRow(event->timestamp));
247 text.append(tableRow(i18nc("The orientation of a pointer axis event", "Orientation"),
248 event->orientation == Qt::Horizontal ? i18nc("An orientation of a pointer axis event", "Horizontal")
249 : i18nc("An orientation of a pointer axis event", "Vertical")));
250 text.append(tableRow(i18nc("The angle delta of a pointer axis event", "Delta"), event->delta));
251 text.append(tableRow(i18nc("The normalized V120 angle delta of a pointer axis event. V120 is a technical term and shouldn't be changed.", "Delta (V120)"), event->deltaV120));
252 text.append(s_tableEnd);
253
254 m_textEdit->insertHtml(text);
255 m_textEdit->ensureCursorVisible();
256}
257
258void DebugConsoleFilter::keyboardKey(KeyboardKeyEvent *event)
259{

Callers

nothing calls this directly

Calls 5

tableHeaderRowFunction · 0.85
deviceRowFunction · 0.85
timestampRowFunction · 0.85
tableRowFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected