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

List:       kde-core-devel
Subject:    Re: private slots
From:       Simon Hausmann <hausmann () kde ! org>
Date:       2007-01-04 10:27:50
Message-ID: 200701041127.51185.hausmann () kde ! org
[Download RAW message or body]


On Thursday 04 January 2007 10:48, Tobias Koenig wrote:
> On Wed, Jan 03, 2007 at 04:05:49PM +0100, Simon Hausmann wrote:
> > Hi,
>
> Hi Simon,
>
> > If that moc generated code is included from within the .cpp file (like we
> > fortunately do most of the time in KDE) d is well-defined and the
> > compiler can call your private slot, which is now just a member function
> > of your d pointer.
>
> I tried this approach in a qmake based project and it didn't work since
> qmake always creates moc_foo.cpp instead of foo.moc, so during the
> compilation of moc_foo.cpp gcc complains about the unknown class 'd'.
>
> Any idea how to fix this issue?

Including "foo.moc" should work.

Simon

[Attachment #3 (application/pgp-signature)]

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

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