Changeset View
Changeset View
Standalone View
Standalone View
debug_console.cpp
Show First 20 Lines • Show All 293 Lines • ▼ Show 20 Line(s) | 246 | { | |||
---|---|---|---|---|---|
294 | text.append(tableRow(i18nc("The currently active modifiers", "Modifiers"), modifiersToString())); | 294 | text.append(tableRow(i18nc("The currently active modifiers", "Modifiers"), modifiersToString())); | ||
295 | 295 | | |||
296 | text.append(s_tableEnd); | 296 | text.append(s_tableEnd); | ||
297 | 297 | | |||
298 | m_textEdit->insertHtml(text); | 298 | m_textEdit->insertHtml(text); | ||
299 | m_textEdit->ensureCursorVisible(); | 299 | m_textEdit->ensureCursorVisible(); | ||
300 | } | 300 | } | ||
301 | 301 | | |||
302 | void DebugConsoleFilter::touchDown(quint32 id, const QPointF &pos, quint32 time) | 302 | void DebugConsoleFilter::touchDown(qint32 id, const QPointF &pos, quint32 time) | ||
303 | { | 303 | { | ||
304 | QString text = s_hr; | 304 | QString text = s_hr; | ||
305 | text.append(s_tableStart); | 305 | text.append(s_tableStart); | ||
306 | text.append(tableHeaderRow(i18nc("A touch down event", "Touch down"))); | 306 | text.append(tableHeaderRow(i18nc("A touch down event", "Touch down"))); | ||
307 | text.append(timestampRow(time)); | 307 | text.append(timestampRow(time)); | ||
308 | text.append(tableRow(i18nc("The id of the touch point in the touch event", "Point identifier"), id)); | 308 | text.append(tableRow(i18nc("The id of the touch point in the touch event", "Point identifier"), id)); | ||
309 | text.append(tableRow(i18nc("The global position of the touch point", "Global position"), | 309 | text.append(tableRow(i18nc("The global position of the touch point", "Global position"), | ||
310 | QStringLiteral("%1/%2").arg(pos.x()).arg(pos.y()))); | 310 | QStringLiteral("%1/%2").arg(pos.x()).arg(pos.y()))); | ||
311 | text.append(s_tableEnd); | 311 | text.append(s_tableEnd); | ||
312 | 312 | | |||
313 | m_textEdit->insertHtml(text); | 313 | m_textEdit->insertHtml(text); | ||
314 | m_textEdit->ensureCursorVisible(); | 314 | m_textEdit->ensureCursorVisible(); | ||
315 | } | 315 | } | ||
316 | 316 | | |||
317 | void DebugConsoleFilter::touchMotion(quint32 id, const QPointF &pos, quint32 time) | 317 | void DebugConsoleFilter::touchMotion(qint32 id, const QPointF &pos, quint32 time) | ||
318 | { | 318 | { | ||
319 | QString text = s_hr; | 319 | QString text = s_hr; | ||
320 | text.append(s_tableStart); | 320 | text.append(s_tableStart); | ||
321 | text.append(tableHeaderRow(i18nc("A touch motion event", "Touch Motion"))); | 321 | text.append(tableHeaderRow(i18nc("A touch motion event", "Touch Motion"))); | ||
322 | text.append(timestampRow(time)); | 322 | text.append(timestampRow(time)); | ||
323 | text.append(tableRow(i18nc("The id of the touch point in the touch event", "Point identifier"), id)); | 323 | text.append(tableRow(i18nc("The id of the touch point in the touch event", "Point identifier"), id)); | ||
324 | text.append(tableRow(i18nc("The global position of the touch point", "Global position"), | 324 | text.append(tableRow(i18nc("The global position of the touch point", "Global position"), | ||
325 | QStringLiteral("%1/%2").arg(pos.x()).arg(pos.y()))); | 325 | QStringLiteral("%1/%2").arg(pos.x()).arg(pos.y()))); | ||
326 | text.append(s_tableEnd); | 326 | text.append(s_tableEnd); | ||
327 | 327 | | |||
328 | m_textEdit->insertHtml(text); | 328 | m_textEdit->insertHtml(text); | ||
329 | m_textEdit->ensureCursorVisible(); | 329 | m_textEdit->ensureCursorVisible(); | ||
330 | } | 330 | } | ||
331 | 331 | | |||
332 | void DebugConsoleFilter::touchUp(quint32 id, quint32 time) | 332 | void DebugConsoleFilter::touchUp(qint32 id, quint32 time) | ||
333 | { | 333 | { | ||
334 | QString text = s_hr; | 334 | QString text = s_hr; | ||
335 | text.append(s_tableStart); | 335 | text.append(s_tableStart); | ||
336 | text.append(tableHeaderRow(i18nc("A touch up event", "Touch Up"))); | 336 | text.append(tableHeaderRow(i18nc("A touch up event", "Touch Up"))); | ||
337 | text.append(timestampRow(time)); | 337 | text.append(timestampRow(time)); | ||
338 | text.append(tableRow(i18nc("The id of the touch point in the touch event", "Point identifier"), id)); | 338 | text.append(tableRow(i18nc("The id of the touch point in the touch event", "Point identifier"), id)); | ||
339 | text.append(s_tableEnd); | 339 | text.append(s_tableEnd); | ||
340 | 340 | | |||
▲ Show 20 Lines • Show All 1188 Lines • Show Last 20 Lines |