[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: spellCheckerReplaceAll symbol
From:       Nicolas Goutte <nicog () snafu ! de>
Date:       2002-04-21 21:41:48
[Download RAW message or body]

On Sunday 21 April 2002 13:48, Laurent Montel wrote:
> Le Sunday 21 April 2002 13:34, Thomas Zander a écrit :
> > Hi;
> >
(...)
> >
> > I don't know how to find out about the KDE_VERSION (since it should be in
> > kdecore/kapplication.h but it is not)
> > Oh; its in kdeversion, then why don't we include that instead of
> > kapplication... anyway. I use the BRANCH version of KDE and have version
> > 301 of kdelibs. Therefore the
> >     #if KDE_VERSION >= 305
> > fails for me.
> > But I start to think that moc does not do pre-processors, since the above
> > shows that the kwview.h file statement:
> > #if KDE_VERSION >= 305
> >     void spellCheckerReplaceAll( const QString &,  const QString &);
> > #endif
> >
> > seem to end up in the moc anyway..
> >
> > Could someone more knowledgable look into this? I don't simply want to
> > remove the checks around the actual function.
>
> Hi,
> I didn't test it in old kdelibs, but you can remove all #if KDE_VERSION >=
> 305 in kwview.cc/h ( where it's specific to kspell ) but not remove here :
> #if KDE_VERSION >= 305
>         m_doc->getKSpellConfig()->setReplaceAllList(m_spell.replaceAll);
> #endif
>
> I don't know if "moc" recognize #if KDE_VERSION >= ...

No, moc does *not* recognise #if. As far as I know, it does not even use the 
preprocessor at all.

> So for me no problem you can remove all these reference.
>
> Regards.

Have a nice day/evening/night!


_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic