mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +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
|
#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
|
||||||
|
Loading…
Reference in New Issue
Block a user