require qt 5.9

This commit is contained in:
Damien Elmes 2017-06-06 14:33:53 +10:00
parent ca08b742fa
commit c24f122d6e

View File

@ -38,8 +38,5 @@ qtmajor = (QT_VERSION & 0xff0000) >> 16
qtminor = (QT_VERSION & 0x00ff00) >> 8 qtminor = (QT_VERSION & 0x00ff00) >> 8
qtpoint = QT_VERSION & 0xff qtpoint = QT_VERSION & 0xff
if ((qtmajor == 5 and qtminor == 7 and qtpoint == 0) or if qtmajor < 5 or (qtmajor == 5 and qtminor < 9):
(qtmajor == 5 and qtminor == 8 and qtpoint == 0)): raise Exception("Anki requires Qt 5.9.0+")
raise Exception("Your Qt version is known to be broken.")
elif qtmajor <= 5 and qtminor < 7:
raise Exception("Anki requires Qt 5.7.1+")