[Kmymoney-devel] Line break in the page widget

Thomas Baumgart thb at net-bembel.de
Sat Feb 20 10:54:06 CET 2010


Hi,

on Saturday 20 February 2010 Alvaro Soliverez wrote:


> 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"));

Just did a visual inspection, but it looks good to me. Can't use the patch 
from the mail because of line breaks in the mail. You need to attach the 
patches as text file for them to work properly on long lines.

Just go ahead and apply it to SVN. In the rare case that it does not work, 
we'll fix it there.

-- 


Regards

Thomas Baumgart

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
"I'd like to buy Windows." "Are you crazy?" "Is this part of the licence
agreement?" "Not really, but it might ease the usage ..."
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 224 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kmymoney-devel/attachments/20100220/371e8051/attachment.sig 


More information about the KMyMoney-devel mailing list