diff options
| author | Christoph Berg <christoph.berg@credativ.de> | 2020-06-26 09:28:37 +0200 |
|---|---|---|
| committer | Christoph Berg <christoph.berg@credativ.de> | 2020-06-26 09:28:37 +0200 |
| commit | 28f34ff4908a90b1a7323b2988c33cdb1779fa06 (patch) | |
| tree | 441994b458ea44a1c1019a365d4ec379c34da04f /logbook | |
| parent | ee0e1a654b7e64accea78a5aa66ec1e62bd352c8 (diff) | |
New upstream version 2.2.2+repackupstream/2.2.2+repack
Diffstat (limited to 'logbook')
| -rw-r--r-- | logbook/WorkedBefore.cpp | 16 | ||||
| -rw-r--r-- | logbook/logbook.cpp | 16 |
2 files changed, 28 insertions, 4 deletions
diff --git a/logbook/WorkedBefore.cpp b/logbook/WorkedBefore.cpp index a1d774e4..438243d4 100644 --- a/logbook/WorkedBefore.cpp +++ b/logbook/WorkedBefore.cpp @@ -442,9 +442,21 @@ bool WorkedBefore::add (QString const& call QTextStream out {&file}; if (!file.size ()) { - out << "WSJT-X ADIF Export<eoh>" << endl; // new file + out << "WSJT-X ADIF Export<eh>" << // new file +#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) + endl +#else + Qt::endl +#endif + ; } - out << ADIF_record << " <eor>" << endl; + out << ADIF_record << " <eor>" << +#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) + endl +#else + Qt::endl +#endif + ; } m_->worked_.emplace (call.toUpper (), grid.left (4).toUpper (), band.toUpper (), mode.toUpper () , entity.entity_name, entity.continent, entity.CQ_zone, entity.ITU_zone); diff --git a/logbook/logbook.cpp b/logbook/logbook.cpp index 96a8cb8e..316901f9 100644 --- a/logbook/logbook.cpp +++ b/logbook/logbook.cpp @@ -103,7 +103,13 @@ QByteArray LogBook::QSOToADIF (QString const& hisCall, QString const& hisGrid, Q if(operator_call!="") t+=" <operator:" + QString::number(operator_call.size()) + ">" + operator_call; if (xSent.size ()) { - auto words = xSent.split (' ', QString::SkipEmptyParts); + auto words = xSent.split (' ' +#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) + , QString::SkipEmptyParts +#else + , Qt::SkipEmptyParts +#endif + ); if (words.size () > 1) { if (words.back ().toUInt ()) @@ -126,7 +132,13 @@ QByteArray LogBook::QSOToADIF (QString const& hisCall, QString const& hisGrid, Q } } if (xRcvd.size ()) { - auto words = xRcvd.split (' ', QString::SkipEmptyParts); + auto words = xRcvd.split (' ' +#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) + , QString::SkipEmptyParts +#else + , Qt::SkipEmptyParts +#endif + ); if (words.size () == 2) { if (words.at (1).toUInt ()) |
