From 88455247a432bfef8563b3d04b96a284562e2fe4 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Sun, 2 Jun 2019 13:25:31 -0400 Subject: [PATCH] Updated N3FJP integration to send the correct data --- Configuration.ui | 14 +++++++------- logqso.cpp | 1 + mainwindow.cpp | 8 ++++++-- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Configuration.ui b/Configuration.ui index 6a66f95..d8b0ff9 100644 --- a/Configuration.ui +++ b/Configuration.ui @@ -23,7 +23,7 @@ Select tab to change configuration parameters. - 3 + 0 @@ -36,7 +36,7 @@ - 1 + 0 @@ -62,8 +62,8 @@ 0 0 - 587 - 303 + 738 + 453 @@ -4291,11 +4291,11 @@ soundcard changes - - - + + + diff --git a/logqso.cpp b/logqso.cpp index 097c9d7..2239793 100644 --- a/logqso.cpp +++ b/logqso.cpp @@ -87,6 +87,7 @@ void LogQSO::initLogQSO(QString const& hisCall, QString const& hisGrid, QString bool toDATA, bool dBtoComments, bool bFox, QString const& opCall, QString const& comments) { if(!isHidden()) return; + ui->call->setFocus(); ui->call->setText(hisCall); ui->grid->setText(hisGrid); ui->name->setText(""); diff --git a/mainwindow.cpp b/mainwindow.cpp index 73215e8..8e8c379 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -6669,13 +6669,15 @@ void MainWindow::acceptQSO (QDateTime const& QSO_date_off, QString const& call, "%1" "%2" "%3" - "%4" + "%4" "%5" "%6" "JS8" "%7" "%8" "%9" + "%10" + "%11" ""); data = data.arg(QSO_date_on.toString("yyyy/MM/dd")); @@ -6687,13 +6689,15 @@ void MainWindow::acceptQSO (QDateTime const& QSO_date_off, QString const& call, data = data.arg(operator_call); data = data.arg(name); data = data.arg(comments); + data = data.arg(rpt_sent); + data = data.arg(rpt_received); auto host = m_config.n3fjp_server_name(); auto port = m_config.n3fjp_server_port(); m_n3fjpClient->sendNetworkMessage(host, port, data.toLocal8Bit()); - QTimer::singleShot(1000, this, [this, host, port](){ + QTimer::singleShot(300, this, [this, host, port](){ m_n3fjpClient->sendNetworkMessage(host, port, ""); m_n3fjpClient->sendNetworkMessage(host, port, "\r\n"); });