[Kmymoney-devel] Line break in the page widget
Alvaro Soliverez
asoliverez at gmail.com
Sat Feb 20 02:46:53 CET 2010
On Thu, Feb 18, 2010 at 12:22 PM, Thomas Baumgart <thb at net-bembel.de> wrote:
>
> Do we have another choice? I don't think so. I kind of remember it's
>
> #include <kdeversion.h>
>
> #if KDE_IS_VERSION(4,4,0)
> #endif
>
Ok, can you try this?
Index: kmymoney/views/kmymoneyview.cpp
===================================================================
--- kmymoney/views/kmymoneyview.cpp (revisión: 1092456)
+++ kmymoney/views/kmymoneyview.cpp (copia de trabajo)
@@ -56,6 +56,7 @@
#include <kpushbutton.h>
#include <kapplication.h>
#include <kdebug.h>
+#include <kdeversion.h>
// ----------------------------------------------------------------------------
// Project Includes
@@ -173,7 +174,12 @@
// Page 3
m_scheduledView = new KScheduledView();
+//this is to solve the way long strings are handled differently among
versions of KPageWidget
+#if KDE_IS_VERSION(4,4,0)
+ m_scheduleViewFrame = m_model->addPage(m_scheduledView,
i18n("Scheduled transactions"));
+#else
m_scheduleViewFrame = m_model->addPage(m_scheduledView,
i18n("Scheduled\ntransactions"));
+#endif
m_scheduleViewFrame->setIcon(KIcon("view-pim-calendar"));
m_scheduleViewFrame->setHeader(QString(""));
addTitleBar(m_scheduledView, i18n("Scheduled transactions"));
More information about the KMyMoney-devel
mailing list