merge bitcoin#16758: Replace QFontMetrics::width() with TextWidth()

This commit is contained in:
Kittywhiskers Van Gogh 2019-08-29 19:13:19 +03:00
parent d4a1decb73
commit 4c85471e6d

View File

@ -1863,7 +1863,7 @@ void PolishProgressDialog(QProgressDialog* dialog)
{ {
#ifdef Q_OS_MAC #ifdef Q_OS_MAC
// Workaround for macOS-only Qt bug; see: QTBUG-65750, QTBUG-70357. // 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->resize(dialog->width() + 2 * margin, dialog->height());
dialog->show(); dialog->show();
#else #else