Removed usage of set intersects function and replaced it with actual set intersection for older Qt versions

This commit is contained in:
Jordan Sherer 2019-07-05 13:23:06 -04:00
parent 33c26a5f05
commit 2c28d6f6f7

View File

@ -11551,7 +11551,8 @@ void MainWindow::displayBandActivity() {
}
}
if (!text.isEmpty() && m_config.highlight_words().intersects(QSet<QString>::fromList(text.last().replace(":", " ").replace(">"," ").split(" ")))){
auto matchingWords = m_config.highlight_words() & QSet<QString>::fromList(joined.replace(":", " ").replace(">"," ").split(" "));
if (!text.isEmpty() && !matchingWords.isEmpty()){
for(int i = 0; i < ui->tableWidgetRXAll->columnCount(); i++){
ui->tableWidgetRXAll->item(row, i)->setBackground(QBrush(m_config.color_CQ()));
}