| 859 | } |
| 860 | |
| 861 | void WaveformWidget::drawNoAudio(QPainter& painter, |
| 862 | const QRectF& plotRect, |
| 863 | const QString& source) const |
| 864 | { |
| 865 | painter.save(); |
| 866 | QFont f = font(); |
| 867 | f.setPointSizeF(std::max(8.0, f.pointSizeF() - 1.0)); |
| 868 | painter.setFont(f); |
| 869 | painter.setPen(kMutedLabel()); |
| 870 | const QString message = source == QStringLiteral("RX") |
| 871 | ? QStringLiteral("Enable PC Audio") |
| 872 | : QStringLiteral("no %1 audio").arg(source); |
| 873 | painter.drawText(plotRect, Qt::AlignCenter, message); |
| 874 | painter.restore(); |
| 875 | } |
| 876 | |
| 877 | void WaveformWidget::drawPausedBadge(QPainter& painter, const QRectF& footerRect) const |
| 878 | { |
nothing calls this directly
no test coverage detected