mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-08-01 13:42:39 -04:00
Fix a compatibility issue with Qt 5.12.
This commit is contained in:
parent
157642d7cb
commit
467451e37d
@ -567,11 +567,11 @@ void DisplayText::setHighlightedHoundText(QString t) {
|
|||||||
set_colours(m_config, &bg, &fg, types);
|
set_colours(m_config, &bg, &fg, types);
|
||||||
// t is multiple lines of text, each line is a hound calling
|
// t is multiple lines of text, each line is a hound calling
|
||||||
// iterate through each line and highlight the callsign
|
// iterate through each line and highlight the callsign
|
||||||
auto lines = t.split(QChar('\n'), Qt::SkipEmptyParts);
|
auto lines = t.split(QChar('\n'), SkipEmptyParts);
|
||||||
clear();
|
clear();
|
||||||
foreach (auto line, lines)
|
foreach (auto line, lines)
|
||||||
{
|
{
|
||||||
auto fields = line.split(QChar(' '), Qt::SkipEmptyParts);
|
auto fields = line.split(QChar(' '), SkipEmptyParts);
|
||||||
insertText(line, bg, fg, fields.first(), QString{});
|
insertText(line, bg, fg, fields.first(), QString{});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user