diff options
| author | Tilka <tilkax@gmail.com> | 2020-06-14 12:10:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-14 12:10:33 +0100 |
| commit | cb54fc754383a7e16dc3c2fe83d921d90d6d6c9a (patch) | |
| tree | 85fbc755273ec64ff1b881893bbcd45ddefd10b4 /Source/Core/DolphinQt/Debugger/ThreadWidget.cpp | |
| parent | d9e05559c9d213c12d1b1fd27832e01565883dd3 (diff) | |
| parent | 87330ae524dfabf323ff66aed599ea65deeb6950 (diff) | |
Merge pull request #8857 from JosJuice/qt-bounding-box-width
DolphinQt: Use QFontMetrics::boundingRect instead of QFontMetrics::width
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/ThreadWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/ThreadWidget.cpp | 3 |
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; } |
