Add tooltip showing percentage of TX power when slider is moved

merge-requests/5/head
Phil Taylor 2021-06-12 08:57:52 +01:00
rodzic 0becc4508f
commit a7e0800508
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -79,6 +79,11 @@ wfmain::wfmain(const QString serialPortCL, const QString hostCL, const QString s
}
amTransmitting = false;
connect(ui->txPowerSlider, &QSlider::sliderMoved,
[&](int value) {
QToolTip::showText(QCursor::pos(), QString("%1").arg(value*100/255), nullptr);
});
}
wfmain::~wfmain()