[office/kmymoney/5.2] 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 a6287155acd5168f9b352862db800d13ad261ecf by Thomas Baumgart.
Committed on 28/07/2026 at 06:11.
Pushed by tbaumgart into branch '5.2'.
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.
(cherry picked from commit 237d4cee509616823105f2dcf959b8b4d26720ff)
# Conflicts:
# kmymoney/dialogs/settings/ksettingskmymoney.cpp
M +6 -2 kmymoney/dialogs/settings/ksettingskmymoney.cpp
https://invent.kde.org/office/kmymoney/-/commit/a6287155acd5168f9b352862db800d13ad261ecf
diff --git a/kmymoney/dialogs/settings/ksettingskmymoney.cpp b/kmymoney/dialogs/settings/ksettingskmymoney.cpp
index 22dee526d..0c711eeb0 100644
--- a/kmymoney/dialogs/settings/ksettingskmymoney.cpp
+++ b/kmymoney/dialogs/settings/ksettingskmymoney.cpp
@@ -53,9 +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());
+ // 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(i18n("Scheduled\ntransactions")).replace(QLatin1Char('\n'), QString::fromUtf8("\xe2\x80\xa8")),
- Icons::get(Icon::Schedule).name());
+ 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());