Description: Fix the layout and line break In some cases, text was being cut off from the prompt and was not visible. Author: Tsu Jan Origin: upstream Bug: https://github.com/lxqt/lxqt/issues/1505 Applied-Upstream: commit:01c23a5 Last-Update: 2018-08-20 --- a/passworddialog.cpp +++ b/passworddialog.cpp @@ -41,7 +41,7 @@ PasswordDialog::PasswordDialog(QStringLi QString cmd; if (0 < argv.size()) cmd = argv[0]; - ui->descriptionL->setText(tr("%1 needs administrative privileges.\nPlease enter your password.").arg(cmd)); + ui->descriptionL->setText(tr("%1 needs administrative privileges.
Please enter your password.").arg(cmd)); ui->iconL->setPixmap(QIcon::fromTheme("dialog-password").pixmap(64, 64)); setWindowIcon(QIcon::fromTheme("security-high")); } --- a/passworddialog.ui +++ b/passworddialog.ui @@ -10,12 +10,6 @@ 200 - - - 0 - 0 - - LXQt sudo @@ -31,6 +25,12 @@ + + + 0 + 0 + +