1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-05-14 05:12:09 -04:00

Position overlay so it's where the frequencyValue widget was.

This commit is contained in:
Jon Beniston 2026-04-19 21:56:51 +01:00
parent 19cc426948
commit dc960c2dfd

View File

@ -593,9 +593,9 @@ void FreqDisplayGUI::applyTransparency()
this, &FreqDisplayGUI::onExitTransparentMode);
connect(m_overlay, &FreqDisplayOverlay::resized,
this, &FreqDisplayGUI::updateFrequencyFont);
// Position the overlay at the current screen position of FreqDisplayGUI.
m_overlay->move(mapToGlobal(QPoint(0, 0)));
m_overlay->resize(size());
// Position the overlay at the current screen position of frequencyValue widget.
m_overlay->move(ui->frequencyValue->mapToGlobal(QPoint(0, 0)));
m_overlay->resize(ui->frequencyValue->size());
applyTextColor();
m_overlay->show();
}