adjust to Qt 5.14.x; remove compiler warnings.

This commit is contained in:
2020-12-22 22:36:07 +01:00
parent 56917d3fec
commit a9a61f5518
25 changed files with 948 additions and 28 deletions

View File

@@ -331,7 +331,11 @@ QStringList PGetMusrFTOptionsDialog::getMusrFTOptions()
// histo list
if (fHistoList_lineEdit->text().length() > 0) {
cmd << "--histo";
#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0))
strList = fHistoList_lineEdit->text().split(" ", QString::SkipEmptyParts);
#else
strList = fHistoList_lineEdit->text().split(" ", Qt::SkipEmptyParts);
#endif
for (int i=0; i<strList.size(); i++)
cmd << strList[i];
}
@@ -347,7 +351,11 @@ QStringList PGetMusrFTOptionsDialog::getMusrFTOptions()
// t0 list
if (fT0_lineEdit->text().length() > 0) {
cmd << "--t0";
#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0))
strList = fT0_lineEdit->text().split(" ", QString::SkipEmptyParts);
#else
strList = fT0_lineEdit->text().split(" ", Qt::SkipEmptyParts);
#endif
for (int i=0; i<strList.size(); i++)
cmd << strList[i];
}