private slots
Simon Hausmann
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.
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070104/9d6b01f0/attachment.sig>
More information about the kde-core-devel
mailing list