mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-30 20:28:05 -06:00
Raise minimum supported Qt version to 5.12
This commit is contained in:
committed by
sledgehammer999
parent
8cae8ad5c5
commit
4037143f4e
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user