summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2020-05-18 00:19:41 +0100
committerGitHub <noreply@github.com>2020-05-18 00:19:41 +0100
commitabe125aea7ff4f01b50b54c976e478ad5dfbdd5f (patch)
tree1b7d0095245f06fd6309513487175fb58060398d /Source/Core/DolphinQt/Debugger/ThreadWidget.cpp
parent8e55ae8006b3fba55e75b019592f22525d261df6 (diff)
parentf87e32840f3dd425a0ffd0eb7120a4a6e70aeaf4 (diff)
Merge pull request #8816 from JosJuice/qfontmetrics-width
DolphinQt: Remove another usage of QFontMetrics::width
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/ThreadWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/ThreadWidget.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp b/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp
index 3d943b2f0c..d222e89942 100644
--- a/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp
@@ -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;
}