Status bar presentation of server round-trip health.
More...
#include <latency_status_widget.h>
|
| bool | eventFilter (QObject *watched, QEvent *event) override |
Status bar presentation of server round-trip health.
Combines the textual "Ping" readout with a small LatencyGraphWidget sparkline of the rolling sample window. Clicking anywhere in the area opens a popup with a larger graph and the numeric statistics. It closes on any outside click. Stays hidden while disconnected or before any samples exist. Owns all latency display state so MainWindow only needs to forward one signal here.
◆ LatencyStatusWidget()
| LatencyStatusWidget::LatencyStatusWidget |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
◆ eventFilter()
| bool LatencyStatusWidget::eventFilter |
( |
QObject * | watched, |
|
|
QEvent * | event ) |
|
overrideprotected |
◆ statsText()
◆ togglePopup()
| void LatencyStatusWidget::togglePopup |
( |
| ) |
|
|
private |
◆ updateData
| void LatencyStatusWidget::updateData |
( |
const LatencyTracker::Stats & | stats, |
|
|
const QList< int > & | samplesMs ) |
|
slot |
◆ detailGraph
◆ detailLabel
| QLabel* LatencyStatusWidget::detailLabel = nullptr |
|
private |
◆ latencyGraph
◆ latestSamples
| QList<int> LatencyStatusWidget::latestSamples |
|
private |
◆ pingLabel
| QLabel* LatencyStatusWidget::pingLabel = nullptr |
|
private |
◆ popup
| QWidget* LatencyStatusWidget::popup = nullptr |
|
private |
The documentation for this class was generated from the following files: