+QT_VERSION = $(shell IFS=.; set -- `echo $(QTLIB_VERSION)`; \
+ echo 0x0`echo "obase=16; $$1*65536+$$2*256+$$3" | bc`)
+
+# The moc_%.cpp pattern must match the filter in ../../../po/Rules-lyx
+moc_%.cpp: %.h
+ $(AM_V_GEN)$(QT_MOC) -DQT_VERSION=$(QT_VERSION) -o $@ $<