Require Qt5.

This commit is contained in:
Leonardo Zide
2021-01-08 10:35:52 -08:00
parent e6397a98ac
commit b70fab3059
27 changed files with 38 additions and 232 deletions
-4
View File
@@ -81,11 +81,7 @@ void lcLight::CreateName(const lcArray<lcLight*>& Lights)
if (LightName.startsWith(Prefix))
{
bool Ok = false;
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
int LightNumber = LightName.midRef(Prefix.size()).toInt(&Ok);
#else
int LightNumber = LightName.mid((int)strlen(Prefix.latin1())).toInt(&Ok);
#endif
if (Ok && LightNumber > MaxLightNumber)
MaxLightNumber = LightNumber;