mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-02-03 09:44:24 -05:00
Fix the UTC display on waterfall, for FT4 mode.
This commit is contained in:
parent
6d6e2e8314
commit
65398bbffa
@ -235,13 +235,15 @@ void CPlotter::draw(float swide[], bool bScroll, bool bRed)
|
||||
if(m_bReplot) return;
|
||||
|
||||
if(swide[0]>1.0e29) m_line=0;
|
||||
if(m_mode=="FT4" and m_line==34) m_line=0;
|
||||
if(m_line == painter1.fontMetrics ().height ()) {
|
||||
painter1.setPen(Qt::white);
|
||||
QString t;
|
||||
qint64 ms = QDateTime::currentMSecsSinceEpoch() % 86400000;
|
||||
int n=(ms/1000) % m_TRperiod;
|
||||
if(m_mode=="FT4") n=0;
|
||||
QDateTime t1=QDateTime::currentDateTimeUtc().addSecs(-n);
|
||||
if(m_TRperiod < 60) {
|
||||
if(m_TRperiod < 60 or m_mode=="FT4") {
|
||||
t=t1.toString("hh:mm:ss") + " " + m_rxBand;
|
||||
} else {
|
||||
t=t1.toString("hh:mm") + " " + m_rxBand;
|
||||
|
Loading…
Reference in New Issue
Block a user