Commit d4c02ffe authored by Laurent Montel's avatar Laurent Montel 😁

Try to fix label width

parent cbdb7372
......@@ -243,7 +243,8 @@ void MailWebEngineAccessKey::makeAccessKeyLabel(QChar accessKey, const MessageVi
font.setBold(true);
label->setFont(font);
label->setText(accessKey);
qDebug()<<" accessKey"<<accessKey<< label->width();
QFontMetrics metric(label->font());
label->setFixedWidth(metric.width(QStringLiteral("WW")));
label->setPalette(QToolTip::palette());
label->setAutoFillBackground(true);
label->setFrameStyle(QFrame::Box | QFrame::Plain);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment