Git commit c75953cdd7e2907896755edea3a855e8680c1e2d by Thomas Baumgart. Committed on 23/02/2018 at 17:48. Pushed by tbaumgart into branch '5.0'.
Break scheduled transactions string There is a bug in static int layoutText(QTextLayout *layout, int maxWidth) from kpageview_p.cpp from kwidgetsaddons. The method doesn't break strings that are too long. This patch workarounds this by using LINE SEPARATOR character which is accepted by QTextLayout::createLine(). GUI: (cherry picked from commit 15a24ce4e2bed0993e8b14fdd8c49ca87d155380) M +1 -1 kmymoney/views/kmymoneyview.cpp https://commits.kde.org/kmymoney/c75953cdd7e2907896755edea3a855e8680c1e2d diff --git a/kmymoney/views/kmymoneyview.cpp b/kmymoney/views/kmymoneyview.cpp index a8980077..82600540 100644 --- a/kmymoney/views/kmymoneyview.cpp +++ b/kmymoney/views/kmymoneyview.cpp @@ -176,7 +176,7 @@ KMyMoneyView::KMyMoneyView(KMyMoneyApp *kmymoney) // Page 3 m_scheduledView = new KScheduledView; //this is to solve the way long strings are handled differently among versions of KPageWidget - viewFrames[View::Schedules] = m_model->addPage(m_scheduledView, i18n("Scheduled transactions")); + viewFrames[View::Schedules] = m_model->addPage(m_scheduledView, i18nc("use \u2028 as line break", "Scheduled\u2028transactions")); viewFrames[View::Schedules]->setIcon(Icons::get(Icon::ViewSchedules)); connect(m_scheduledView, &KMyMoneyViewBase::aboutToShow, this, &KMyMoneyView::connectView); connect(m_scheduledView, &KMyMoneyViewBase::aboutToShow, this, &KMyMoneyView::resetViewSelection);