Commit 34fb52f0 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Avoid uic errors - Patch by stw - Closes #1002

parent fac5ea40
...@@ -106,10 +106,10 @@ $(UIH): %.h: %.ui ...@@ -106,10 +106,10 @@ $(UIH): %.h: %.ui
mkdir -p -- ui mkdir -p -- ui
@echo "$(UIC) $< -> $@" @echo "$(UIC) $< -> $@"
rm -f $@ rm -f $@
echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@ echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@.uih-tmp
$(UIC) -tr "Q_" $< >> $@ $(UIC) -tr "Q_" $< >> $@.uih-tmp
sed -i -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@ sed -i -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@.uih-tmp
mv $@.uih.tmp $@
SOURCES_qt4 = qt4.cpp \ SOURCES_qt4 = qt4.cpp \
menus.cpp \ menus.cpp \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment