hausmann at kde.org
Thu Jan 4 10:27:50 GMT 2007
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the kde-core-devel