MCPcopy Create free account
hub / github.com/clementgallet/libTAS / timerEvent

Method timerEvent

src/program/ui/InputEditorView.cpp:510–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510void InputEditorView::timerEvent(QTimerEvent* event)
511{
512 if (event->timerId() != markerTimerId)
513 return QTableView::timerEvent(event);
514
515 this->killTimer(markerTimerId);
516 markerTimerId = 0;
517
518 int x = columnViewportPosition(InputEditorModel::COLUMN_FRAME) + columnWidth(InputEditorModel::COLUMN_FRAME) / 2;
519 int y = rowViewportPosition(markerRow) + rowHeight(markerRow);
520 QPoint pos = QPoint(x, y);
521
522 BalloonTip::showBalloon("", QString(inputEditorModel->getMarkerText(markerRow).c_str()), this->mapToGlobal(pos), this);
523}
524
525void InputEditorView::hideEvent(QHideEvent* event)
526{

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.45
getMarkerTextMethod · 0.45

Tested by

no test coverage detected