From 28f34ff4908a90b1a7323b2988c33cdb1779fa06 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Fri, 26 Jun 2020 09:28:37 +0200 Subject: New upstream version 2.2.2+repack --- logbook/logbook.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'logbook/logbook.cpp') 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_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 ()) -- cgit v1.2.3