Verified Commit 4f67917a authored by Linus Jahn's avatar Linus Jahn 🍙

Fix Qt version check

Seems so before it was always using the Qt < 5.10 way.
parent 7d4c129b
Pipeline #250 passed with stage
in 2 minutes and 51 seconds
......@@ -277,7 +277,7 @@ QString Kaidan::fileNameFromUrl(QString url)
QString Kaidan::fileSizeFromUrl(QString url)
{
#if QT_VERSION >= 0x051000 // Qt 5.10 or later
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0) // Qt 5.10 or later
qint64 size = QFileInfo(QUrl(url).toLocalFile()).size();
return QLocale::system().formattedDataSize(size);
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment