kwin: break the rules dialog hints text into lines

this can be done automagically tho

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-05-14 13:13:23 +03:00
parent 5e9e7736c8
commit 0a5808cc21

View file

@ -709,12 +709,11 @@ Rules* RulesDialog::edit(Rules* r, WId window, bool show_hints)
void RulesDialog::displayHints()
{
QString str = "<qt><p>";
str += i18n("This configuration dialog allows altering settings only for the selected window"
" or application. Find the setting you want to affect, enable the setting using the checkbox,"
" select in what way the setting should be affected and to which value.");
#if 0 // maybe later
str += "</p><p>" + i18n("Consult the documentation for more details.");
#endif
str += i18n(
"This configuration dialog allows altering settings only for the selected window<br/>"
"or application. Find the setting you want to affect, enable the setting using the<br/>"
"checkbox, select in what way the setting should be affected and to which value.<br/>"
);
str += "</p></qt>";
KMessageBox::information(this, str, QString(), "displayhints");
}