Raise minimum supported Qt version to 5.12

This commit is contained in:
Vladimir Golovnev (Glassez)
2021-02-18 11:51:00 +03:00
committed by sledgehammer999
parent 8cae8ad5c5
commit 4037143f4e
20 changed files with 42 additions and 148 deletions

View File

@@ -46,11 +46,7 @@ namespace
int horizontalAdvance(const QFontMetrics &fontMetrics, const QString &text)
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 11, 0))
return fontMetrics.horizontalAdvance(text);
#else
return fontMetrics.width(text);
#endif
}
QString logText(const QModelIndex &index)