qt: Replace QFontMetrics::width() with TextWidth()
This commit is contained in:
parent
d8fc997913
commit
8b6f5aabb9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue