mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
merge bitcoin#16758: Replace QFontMetrics::width() with TextWidth()
This commit is contained in:
parent
d4a1decb73
commit
4c85471e6d
@ -1863,7 +1863,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 New Issue
Block a user