KDE/kdelibs/kdeui

David Faure faure at kde.org
Fri Oct 5 19:51:04 CEST 2007


On Friday 05 October 2007, Christian Ehrlicher wrote:
> Tobias Koenig schrieb:
> > On Fri, Oct 05, 2007 at 06:39:11PM +0200, Christian Ehrlicher wrote:
> >> Christian Ehrlicher schrieb:
> > Hi Christian,
> > 
> >>> I don't know why it works with gcc:
> >>> kgesturemap.h:
> >>> private:
> >>>     friend class KApplication;
> >>> but I get an error in kapplication.cpp:600 because it's 
> >>> KApplication::Private and not KApplication which want's to access to 
> >>> KGesturemap::installEventFilterOnMe()
> >> You won. msvc8 sp1 compiles everything fine.
> >>
> >> So we've a new lowest allowed compiler version for msvc -> msvc8 sp1
> >> But maybe it works with msvc7.1 too - Jaroslaw?
> > Add KApplication::Private as friend class otherwise.
> > 
> No, that does not work for various reasons -> KApplication::Private is 
> private, ...

Yes, this is a reason for renaming it to KApplicationPrivate (no "::").
Then you can add it as a friend much more easily.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).



More information about the Kde-windows mailing list