From ab7392fc81583251a17529c4d34e70f497a5f8e0 Mon Sep 17 00:00:00 2001 From: ea4k Date: Wed, 14 Aug 2024 17:32:16 +0200 Subject: [PATCH] message formatting --- src/mainwindow.cpp | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 6d9250ef..c708be52 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -5754,14 +5754,33 @@ bool MainWindow::askToAddQSOReceived(const QSO &_qso) { qDebug() << Q_FUNC_INFO << " - Start"; QMessageBox msgBox; - msgBox.setIcon(QMessageBox::Information); + msgBox.setIcon(QMessageBox::Question); msgBox.setWindowTitle(tr("KLog - QSO received - NEW")); msgBox.setTextFormat(Qt::RichText); msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No ); msgBox.setDefaultButton(QMessageBox::Yes); QSO qsoM(_qso); - QString aux = QString(tr("ASK-The following QSO data has been received from to be logged:\n\n" + QString aux = QString(tr("ASK-The following QSO data has been received from to be logged:\n\n" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "ยบ
Callsign:%1
Freq:%2
Mode:%3
Time On:%4
Time Off:%5
RST TX:%6
RST RX:%7
Comment:%8
DX-Grid:%9
Local-Grid:%10
Station Callsign:%11
Operator Callsign:%12
")).arg(qsoM.getCall(), QString::number(qsoM.getFreqTX()), qsoM.getMode(), + util->getADIFTimeFromQTime(qsoM.getTimeOn()), util->getADIFTimeFromQTime(qsoM.getTimeOff()), qsoM.getRSTTX(), qsoM.getRSTRX(), + qsoM.getComment(), qsoM.getGridSquare(), qsoM.getMyGridSquare(), + qsoM.getStationCallsign(), qsoM.getOperatorCallsign()); + +/* + "")).arg(qsoM.getCall(), QString::number(qsoM.getFreqTX()), qsoM.getMode(), util->getADIFTimeFromQTime(qsoM.getTimeOn()), util->getADIFTimeFromQTime(qsoM.getTimeOff()), qsoM.getRSTTX(), qsoM.getRSTRX(), qsoM.getComment(), qsoM.getGridSquare(), qsoM.getMyGridSquare(), qsoM.getStationCallsign(), qsoM.getOperatorCallsign()); - +*/ msgBox.setText(aux); int ret = msgBox.exec();