first use of kde3.4-only functionality

Casper Boemann cbr at boemann.dk
Thu Apr 28 08:56:22 CEST 2005


Thanks

best regards / venlig hilsen
Casper Boemann
----- Original Message ----- 
From: "Melchior FRANZ" <mfranz at kde.org>
To: <kimageshop at kde.org>
Sent: Thursday, April 28, 2005 8:09 AM
Subject: Re: first use of kde3.4-only functionality


> * Adrian Page -- Thursday 28 April 2005 00:47:
> > We can check the KDE version with a #if KDE_IS_VERSION(...), so no need
> > for a configure check.
>
> I've committed the following case distinction and krita (still) works for
me
> under KDE-CVS/HEAD. Please test with older versions (or do whatever you
like
> to get your hands on the modifier state. :-)
>
> +#if KDE_IS_VERSION(3,4,0)
>         int state = kapp->keyboardMouseState() &
(Qt::ShiftButton|Qt::ControlButton|Qt::AltButton);
> +#else
> +       int state = kapp->keyboardModifiers() &
(Qt::ShiftButton|Qt::ControlButton|Qt::AltButton);
> +#endif
>
> m.
>
>
>
> _______________________________________________
> kimageshop mailing list
> kimageshop at kde.org
> https://mail.kde.org/mailman/listinfo/kimageshop
>




More information about the kimageshop mailing list