[office/kmymoney] kmymoney/dialogs/settings: Keep the schedules settings page header on a single line
Thomas Baumgart <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 237d4cee509616823105f2dcf959b8b4d26720ff by Thomas Baumgart, on behalf of Simone Iori.
Committed on 27/07/2026 at 19:04.
Pushed by tbaumgart into branch 'master'.
Keep the schedules settings page header on a single line
The name of the schedules page in the settings dialog embeds a U+2028
LINE SEPARATOR so the icon list can show it on two lines. KPageView
falls back to the page name when no header is given, so the header
inherited that break: the title was drawn on two lines and pushed the
page contents down, unlike every other page.
KConfigDialog::addPage() already takes a header, so this passes the
same translated string with the separator replaced by a space. No new
message for translators, and it works for every language.
M +7 -1 kmymoney/dialogs/settings/ksettingskmymoney.cpp
https://invent.kde.org/office/kmymoney/-/commit/237d4cee509616823105f2dcf959b8b4d26720ff
diff --git a/kmymoney/dialogs/settings/ksettingskmymoney.cpp b/kmymoney/dialogs/settings/ksettingskmymoney.cpp
index 520e9f21f..0c711eeb0 100644
--- a/kmymoney/dialogs/settings/ksettingskmymoney.cpp
+++ b/kmymoney/dialogs/settings/ksettingskmymoney.cpp
@@ -53,7 +53,13 @@ KSettingsKMyMoney::KSettingsKMyMoney(QWidget* parent, const QString& name, KCore
addPage(generalPage, i18nc("General settings", "General"), Icons::get(Icon::PreferencesGeneral).name());
addPage(homePage, i18n("Home"), Icons::get(Icon::Home).name());
addPage(registerPage, i18nc("Ledger view settings", "Ledger"), Icons::get(Icon::Ledgers).name());
- addPage(schedulesPage, i18n("Scheduled\ntransactions").replace(QLatin1Char('\n'), QString::fromUtf8("\xe2\x80\xa8")), Icons::get(Icon::Schedule).name());
+ // the icon list shows the name on two lines by means of a line separator,
+ // but the page header shall keep it on a single line
+ const auto schedulesName = i18nc("@title Page name for schedules view", "Scheduled\ntransactions");
+ addPage(schedulesPage,
+ QString(schedulesName).replace(QLatin1Char('\n'), QString::fromUtf8("\xe2\x80\xa8")),
+ Icons::get(Icon::Schedule).name(),
+ QString(schedulesName).replace(QLatin1Char('\n'), QStringLiteral(" ")));
addPage(onlineQuotesPage, i18n("Online Quotes"), Icons::get(Icon::PreferencesNetwork).name());
addPage(colorsPage, i18n("Colors"), Icons::get(Icon::PreferencesColors).name());
addPage(fontsPage, i18n("Fonts"), Icons::get(Icon::PreferencesFonts).name());