[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: MOC Generation and #preprocessor fields
From: Michael Buesch <mbuesch () freenet ! de>
Date: 2005-06-20 8:20:23
Message-ID: 200506201020.23217.mbuesch () freenet ! de
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Quoting Nicolas Ternisien <nicolas.ternisien@gmail.com>:
> Yes, this is a good idea, but the problem is that the parameter
> signature itselft is new in KDE 3.4.
>
> It's connected to this signal :
>
> activated (KAction::ActivationReason reason, Qt::ButtonState state)
>
> in KAction, and ActivationReason is new in KDE 3.4
>
> Thanks for your fast answer!
You could try to use typedef (I think moc should support that,
as QByteArray is a typedef in QT3 for example).
#ifdef VER1
typedef KAction::ActivationReason ActivatedParam1;
typedef Qt::ButtonState ActivatedParam2;
#else
typedef int ActivatedParam1;
typedef int ActivatedParam2;
#endif
....
slots:
void activated(ActivatedParam1, ActivatedParam2);
Ah, I like those messy hacks. 8-}
--
Greetings, Michael
[Attachment #5 (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic