Commit fc30a7a5 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Enable word wrapping of the labels

This allows the dialog to shrink horizontally, so that it fits on the
screen even with large magnification without requiring a horizontal
scroll bar.

GnuPG-bug-id: 5969
parent b9b2b9e4
......@@ -85,6 +85,7 @@ public:
? i18n("Enter a name and an email address to use for the user ID.")
: i18n("Enter a name and/or an email address to use for the user ID.");
auto label = new QLabel{infoText, q};
label->setWordWrap(true);
mainLayout->addWidget(label);
}
......@@ -167,6 +168,7 @@ public:
{
ui.resultLabel = new HtmlLabel{q};
ui.resultLabel->setWordWrap(true);
ui.resultLabel->setFocusPolicy(Qt::ClickFocus);
labelHelper.addLabel(ui.resultLabel);
scrollAreaLayout->addWidget(ui.resultLabel);
......
Supports Markdown
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