mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
DolphinQt: Remove another usage of QFontMetrics::width
QFontMetrics::width breaks building with CMake on Windows, due to a deprecation warning which gets promoted to an error.
This commit is contained in:
parent
30b166e3b1
commit
f87e32840f
5 changed files with 32 additions and 13 deletions
|
@ -17,6 +17,7 @@
|
|||
#include "Core/PowerPC/MMU.h"
|
||||
#include "Core/PowerPC/PowerPC.h"
|
||||
#include "DolphinQt/Host.h"
|
||||
#include "DolphinQt/QtUtils/FontMetricsHelper.h"
|
||||
#include "DolphinQt/Settings.h"
|
||||
|
||||
ThreadWidget::ThreadWidget(QWidget* parent) : QDockWidget(parent)
|
||||
|
@ -133,7 +134,8 @@ QLineEdit* ThreadWidget::CreateLineEdit() const
|
|||
{
|
||||
QLineEdit* line_edit = new QLineEdit(QLatin1Literal("00000000"));
|
||||
line_edit->setReadOnly(true);
|
||||
line_edit->setFixedWidth(line_edit->fontMetrics().width(QLatin1Literal(" 00000000 ")));
|
||||
line_edit->setFixedWidth(
|
||||
FontMetricsWidth(line_edit->fontMetrics(), QLatin1Literal(" 00000000 ")));
|
||||
return line_edit;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue