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

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

parent fac5ea40
......@@ -106,10 +106,10 @@ $(UIH): %.h: %.ui
mkdir -p -- ui
@echo "$(UIC) $< -> $@"
rm -f $@
echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@
$(UIC) -tr "Q_" $< >> $@
sed -i -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@
echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@.uih-tmp
$(UIC) -tr "Q_" $< >> $@.uih-tmp
sed -i -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@.uih-tmp
mv $@.uih.tmp $@
SOURCES_qt4 = qt4.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