summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2020-06-08 12:19:10 +0200
committerJosJuice <josjuice@gmail.com>2020-06-08 12:32:36 +0200
commit87330ae524dfabf323ff66aed599ea65deeb6950 (patch)
treeb27e3a7f35666421fb5406b0a0da034035fb43f6 /Source/Core/DolphinQt/Debugger/ThreadWidget.cpp
parentd89162c8adeced084c39059a399352723ae43d2d (diff)
DolphinQt: Use QFontMetrics::boundingRect instead of QFontMetrics::width
See https://kdepepo.wordpress.com/2019/08/05/about-deprecation-of-qfontmetricswidth/
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/ThreadWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/ThreadWidget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp b/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp
index d222e89942..18bb7af3fb 100644
--- a/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp
@@ -17,7 +17,6 @@
#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)
@@ -135,7 +134,7 @@ QLineEdit* ThreadWidget::CreateLineEdit() const
QLineEdit* line_edit = new QLineEdit(QLatin1Literal("00000000"));
line_edit->setReadOnly(true);
line_edit->setFixedWidth(
- FontMetricsWidth(line_edit->fontMetrics(), QLatin1Literal(" 00000000 ")));
+ line_edit->fontMetrics().boundingRect(QLatin1Literal(" 00000000 ")).width());
return line_edit;
}