Skip to content

Commit 8b6f5aa

Browse files
committed
qt: Replace QFontMetrics::width() with TextWidth()
1 parent d8fc997 commit 8b6f5aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/guiutil.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ void PolishProgressDialog(QProgressDialog* dialog)
947947
{
948948
#ifdef Q_OS_MAC
949949
// Workaround for macOS-only Qt bug; see: QTBUG-65750, QTBUG-70357.
950-
const int margin = dialog->fontMetrics().width("X");
950+
const int margin = TextWidth(dialog->fontMetrics(), ("X"));
951951
dialog->resize(dialog->width() + 2 * margin, dialog->height());
952952
dialog->show();
953953
#else

0 commit comments

Comments
 (0)