aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2019-08-29 19:13:19 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2019-08-29 19:13:19 +0300
commit8b6f5aabb9b21bea875170ae0f49661a4e38dbd3 (patch)
tree4cbb9e37ea326391d0d0d2f6719d55a9c2da6a8b /src/qt/guiutil.cpp
parentd8fc9979130a268cf55b12c223b20fd7d4b9f67f (diff)
qt: Replace QFontMetrics::width() with TextWidth()
Diffstat (limited to 'src/qt/guiutil.cpp')
-rw-r--r--src/qt/guiutil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp
index bbe6e9bf87..59c7c0a44a 100644
--- a/src/qt/guiutil.cpp
+++ b/src/qt/guiutil.cpp
@@ -947,7 +947,7 @@ void PolishProgressDialog(QProgressDialog* dialog)
{
#ifdef Q_OS_MAC
// Workaround for macOS-only Qt bug; see: QTBUG-65750, QTBUG-70357.
- const int margin = dialog->fontMetrics().width("X");
+ const int margin = TextWidth(dialog->fontMetrics(), ("X"));
dialog->resize(dialog->width() + 2 * margin, dialog->height());
dialog->show();
#else