first use of kde3.4-only functionality
Melchior FRANZ
mfranz at kde.org
Thu Apr 28 08:09:29 CEST 2005
* 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.
More information about the kimageshop
mailing list