If-def for Qt compat forwards and backwards.
This commit is contained in:
parent
f009c54773
commit
bc4a2b3ab7
1 changed files with 4 additions and 0 deletions
|
@ -46,7 +46,11 @@ void AircraftProxyModel::setAircraftFilterString(QString s)
|
|||
|
||||
m_filterProps = new SGPropertyNode;
|
||||
int index = 0;
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
|
||||
Q_FOREACH(QString term, s.split(QRegExp("\\W+"), Qt::SkipEmptyParts)) {
|
||||
#else
|
||||
Q_FOREACH(QString term, s.split(QRegExp("\\W+"), QString::SkipEmptyParts)) {
|
||||
#endif
|
||||
m_filterProps->getNode("all-of/text", index++, true)->setStringValue(term.toStdString());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue