diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2019-08-29 19:13:19 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2019-08-29 19:13:19 +0300 |
commit | 8b6f5aabb9b21bea875170ae0f49661a4e38dbd3 (patch) | |
tree | 4cbb9e37ea326391d0d0d2f6719d55a9c2da6a8b /src/qt/guiutil.cpp | |
parent | d8fc9979130a268cf55b12c223b20fd7d4b9f67f (diff) |
qt: Replace QFontMetrics::width() with TextWidth()
Diffstat (limited to 'src/qt/guiutil.cpp')
-rw-r--r-- | src/qt/guiutil.cpp | 2 |
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 |