]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Makefile.am
Cleanup private part of Layout Box on destructor (probably not really an
[lyx.git] / src / frontends / qt4 / Makefile.am
index e1129162701548d3c01db26bfbd6332d35a2128b..4923ba3d857433c5de6a84a2a244ff44bdaf9d90 100644 (file)
@@ -16,9 +16,12 @@ ui_%.h: ui/%.ui
 
 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
 
+QT_VERSION = $(shell IFS=.; set -- `echo $(QT4_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)$(MOC4) -o $@ $<
+       $(AM_V_GEN)$(MOC4) -DQT_VERSION=$(QT_VERSION) -o $@ $<
 
 Resources.qrc: Makefile
        $(AM_V_GEN)echo "<!DOCTYPE RCC><RCC version='1.0'><qresource>" > $@ ; \