lyricsmanager: parse time string by ourselves

QTime::fromString() can lead a crash when build with icu-enabled
Qt 6.8.0, see QTBUG-130597. Anyway let's workaround this issue
by simply implement it by ourselves.
This commit is contained in:
2024-10-26 19:38:04 +08:00
parent a3bc60c977
commit b2eb29ab5d
2 changed files with 20 additions and 2 deletions

View File

@ -25,6 +25,8 @@ public:
QString lyrics(int lineOffset = 0) const;
double maskPercent(int curTimeMs);
static int parseTimeToMilliseconds(const QString& timeString);
protected: