mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-29 13:45:51 +00:00
DolphinQt: assume QT_VERSION_CHECK >= 6.0.0
This commit is contained in:
parent
ce9413e549
commit
258cf0ff28
4 changed files with 2 additions and 27 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue