DolphinQt: assume QT_VERSION_CHECK >= 6.0.0

This commit is contained in:
Shawn Hoffman
2023-04-19 12:48:20 -07:00
parent ce9413e549
commit 258cf0ff28
4 changed files with 2 additions and 27 deletions

View File

@ -212,11 +212,7 @@ void MemoryViewWidget::UpdateFont()
// BoundingRect is too unpredictable, a custom one would be needed for each view type. Different
// fonts have wildly different spacing between two characters and horizontalAdvance includes
// spacing.
#if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0)
m_font_width = fm.horizontalAdvance(QLatin1Char('0'));
#else
m_font_width = fm.width(QLatin1Char('0'));
#endif
m_table->setFont(Settings::Instance().GetDebugFont());
CreateTable();