Browse Source

QGroundControlQmlGlobal: Do not use deprecated QString enum with Qt 5.15.0

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
QGC4.4
Patrick José Pereira 5 years ago
parent
commit
f42faf1a22
  1. 5
      src/QmlControls/ParameterEditorController.cc

5
src/QmlControls/ParameterEditorController.cc

@ -168,7 +168,12 @@ bool ParameterEditorController::_shouldShow(Fact* fact) @@ -168,7 +168,12 @@ bool ParameterEditorController::_shouldShow(Fact* fact)
void ParameterEditorController::_updateParameters(void)
{
QObjectList newParameterList;
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
QStringList searchItems = _searchText.split(' ', QString::SkipEmptyParts);
#else
QStringList searchItems = _searchText.split(' ', Qt::SkipEmptyParts);
#endif
if (searchItems.isEmpty() && !_showModifiedOnly) {
int compId = _parameterMgr->getComponentId(_currentCategory);

Loading…
Cancel
Save