Qt v5.15 compatibility

This commit is contained in:
Bill Somerville
2020-06-13 16:04:41 +01:00
parent 4913929c99
commit 4e07c9abc1
27 changed files with 459 additions and 150 deletions
+3 -2
View File
@@ -3,6 +3,7 @@
#include <QStringList>
#include <QRegularExpression>
#include <QDebug>
#include "qt_helpers.hpp"
extern "C" {
bool stdmsg_(char const * msg, fortran_charlen_t);
@@ -58,7 +59,7 @@ QStringList DecodedText::messageWords () const
return words_re.match(t).capturedTexts();
}
// simple word split for free text messages
auto words = message_.split (' ', QString::SkipEmptyParts);
auto words = message_.split (' ', SkipEmptyParts);
// add whole message as item 0 to mimic RE capture list
words.prepend (message_);
return words;
@@ -122,7 +123,7 @@ bool DecodedText::report(QString const& myBaseCall, QString const& dxBaseCall, /
{
if (message_.size () < 1) return false;
QStringList const& w = message_.split(" ",QString::SkipEmptyParts);
QStringList const& w = message_.split(" ", Qt::SkipEmptyParts);
if (w.size ()
&& is_standard_ && (w[0] == myBaseCall
|| w[0].endsWith ("/" + myBaseCall)