MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / drawNoAudio

Method drawNoAudio

src/gui/WaveformWidget.cpp:861–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

859}
860
861void 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
877void WaveformWidget::drawPausedBadge(QPainter& painter, const QRectF& footerRect) const
878{

Callers

nothing calls this directly

Calls 3

drawTextMethod · 0.80
kMutedLabelFunction · 0.70
saveMethod · 0.45

Tested by

no test coverage detected